diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-05 16:46:17 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-05 16:46:17 +0800 |
commit | 13688af3996212fc902503787999a79439fd8b9b (patch) | |
tree | 1287b8e848aa1a49810a29a774aff378b69a5e83 /mbbsd | |
parent | 1f9c5436f6b966d4fbaaa591ec71bda0df590a9a (diff) | |
download | pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar.gz pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar.bz2 pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar.lz pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar.xz pttbbs-13688af3996212fc902503787999a79439fd8b9b.tar.zst pttbbs-13688af3996212fc902503787999a79439fd8b9b.zip |
- bbslua: fixed compilation error if not using BBS-Lua
- bbslua: fix key names
- sample conf: add description for guest dbcs intresc option
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3793 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbslua.c | 4 | ||||
-rw-r--r-- | mbbsd/more.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index b7736c65..4059791a 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -120,7 +120,7 @@ bl_k2s(lua_State* L, int v) lua_pushstring(L, "TAB"); else if (v == '\b' || v == 0x7F) lua_pushstring(L, "BS"); - else if (v == '\n') + else if (v == '\n' || v == '\r' || v == Ctrl('M')) lua_pushstring(L, "ENTER"); else if (v < ' ') lua_pushfstring(L, "^%c", v-1+'A'); @@ -294,10 +294,10 @@ static void bbsluaRegConst(lua_State *L, const char *globName) { lua_getglobal(L, globName); - lua_pushstring(L, "ESC"); lua_pushstring(L, ESC_STR); lua_settable(L, -3); + lua_getglobal(L, globName); lua_pushstring(L, "ANSI_RESET"); lua_pushstring(L, ANSI_RESET); lua_settable(L, -3); diff --git a/mbbsd/more.c b/mbbsd/more.c index 2d4fec8d..6c5c1428 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -32,10 +32,12 @@ int more(char *fpath, int promptend) ChessReplayGame(fpath); break; +#if defined(USE_BBSLUA) case RET_DOBBSLUA: r = FULLUPDATE; bbslua(fpath); break; +#endif } return r; |