summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 20:29:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 20:29:22 +0800
commit1c3f11034b11cb841f6188841d4b1222314d5757 (patch)
tree29cfc11ee809d008223dd4bfe46463073d97cfeb /mbbsd/read.c
parenta0644143f445ad0103809814f3b4e75356dadcc3 (diff)
downloadpttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.gz
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.bz2
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.lz
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.xz
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.zst
pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.zip
- make ZA system complete.
- elimiate minor warning git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r--mbbsd/read.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 257d8a3d..7c3b2ff0 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -664,6 +664,11 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
new_top = 10; // default 10
switch (ch) {
+ case Ctrl('Z'):
+ mode = FULLUPDATE;
+ if (ZA_Select())
+ mode = DOQUIT;
+ break;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
if( (num = search_num(ch, last_line)) != -1 )
@@ -1104,6 +1109,11 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
} // ch > 0 && ch <= onekey_size
break;
} // end switch
+
+ // ZA support
+ if (ZA_Waiting())
+ mode = DOQUIT;
+
} while (mode == DONOTHING);
return mode;
}
@@ -1318,7 +1328,7 @@ i_read(int cmdmode, const char *direct, void (*dotitle) (),
break;
} //end switch
mode = i_read_key(rcmdlist, locmem, currbid, bottom_line);
- } while (mode != DOQUIT);
+ } while (mode != DOQUIT && !ZA_Waiting());
#undef FHSZ
free(headers);