summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbslua.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/bbslua.c')
-rw-r--r--mbbsd/bbslua.c4
1 files changed, 2 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);