diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-20 12:16:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-20 12:16:27 +0800 |
commit | fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1 (patch) | |
tree | 0115024ce0ae06c7e304b9c5ae196e5954458803 /mbbsd/edit.c | |
parent | 3dff4118f19d96c1e38e0b6f2a6dc348de83ecae (diff) | |
download | pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.gz pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.bz2 pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.lz pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.xz pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.tar.zst pttbbs-fbc5dde7a03e9272a3ef0d9cc2eb70ee50b1acc1.zip |
- grayout: API change, from [y,end) to [y,end]
- feature names change: now HAVE_GRAYOUT
- edit ask() changed to vmsg to prevent standout()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3713 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 813bda39..35933b59 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -705,22 +705,6 @@ delete_line(textline_t * line, int saved) } } -static int -ask(const char *prompt) -{ - int ch; - - move(0, 0); - clrtoeol(); - standout(); - outs(prompt); - standend(); - ch = igetch(); - move(0, 0); - clrtoeol(); - return (ch); -} - /** * Return the indent space number according to CURRENT line and the FORMER * line. It'll be the first line contains non-space character. @@ -3060,7 +3044,8 @@ vedit2(char *fpath, int saveheader, int *islocal, int flags) curr_buf->oldcurrline = curr_buf->currline; break; case Ctrl('Q'): /* Quit without saving */ - ch = ask("結束但不儲存 (Y/N)? [N]: "); + grayout(0, b_lines-1, GRAYOUT_DARK); + ch = vmsg("結束但不儲存 [y/N]? "); if (ch == 'y' || ch == 'Y') { currutmp->mode = mode0; currutmp->destuid = destuid0; |