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/pmore.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/pmore.c')
-rw-r--r-- | mbbsd/pmore.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 06fecc05..8275290c 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -67,9 +67,12 @@ #define PMORE_LOG_SYSOP_EDIT // log whenever sysop uses E #define PMORE_OVERRIDE_TIME // override time format if possible -#ifndef EXP_PFTERM // pfterm is a good terminal system. +// if you are working with a terminal without ANSI control, +// you are using a poor term (define PMORE_USING_POOR_TERM). +#ifndef HAVE_PFTERM // pfterm is a good terminal system. +#define PMORE_USING_POOR_TERM #define PMORE_WORKAROUND_CLRTOEOL // try to work with poor terminal sys -#endif // EXP_PFTERM +#endif // HAVE_PFTERM // -------------------------------------------------------------- </FEATURES> // ----------------------------------------------------------- <LOCALIZATION> @@ -1049,14 +1052,14 @@ mf_display() #ifdef PMORE_USE_OPT_SCROLL -#if defined(PMORE_USE_ASCII_MOVIE) && !defined(PMORE_WORKAROUND_CLRTOEOL) +#if defined(PMORE_USE_ASCII_MOVIE) && !defined(PMORE_USING_POOR_TERM) // For movies, maybe clear() is better. // Let's enable for good terminals (which does not need workarounds) if (mfmovie.mode == MFDISP_MOVIE_PLAYING) { clear(); move(0, 0); } else -#endif // PMORE_USE_ASCII_MOVIE && (!PMORE_WORKAROUND_CLRTOEOL) +#endif // PMORE_USE_ASCII_MOVIE && (!PMORE_USING_POOR_TERM) /* process scrolling */ if (mf.oldlineno >= 0 && mf.oldlineno != mf.lineno) @@ -2515,9 +2518,9 @@ pmore_QuickRawModePref() { int ystart = b_lines -2; -#ifdef HAVE_SCREEN_GRAYOUT - grayout_lines(0, ystart, 0); -#endif // HAVE_SCREEN_GRAYOUT +#ifdef HAVE_GRAYOUT + grayout(0, ystart-1, GRAYOUT_DARK); +#endif // HAVE_GRAYOUT while(1) { @@ -2563,9 +2566,9 @@ pmore_Preference() // TODO even better pref navigation, like arrow keys // static int lastkey = '\\'; // default key -#ifdef HAVE_SCREEN_GRAYOUT - grayout_lines(0, ystart, 0); -#endif // HAVE_SCREEN_GRAYOUT +#ifdef HAVE_GRAYOUT + grayout(0, ystart-1, GRAYOUT_DARK); +#endif // HAVE_GRAYOUT while (1) { |