diff options
author | Ronan Collobert <ronan@collobert.com> | 2014-02-15 16:54:27 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2014-02-15 16:54:27 +0400 |
commit | fddc0f9c8645dba9b5a3463abb085f393a3bb27d (patch) | |
tree | e5592512ceb1d85f85e4f1c57c634644ea5c91a3 | |
parent | 07167e20db9bfdfea12ce54e89d33387c624e167 (diff) |
luajit: logo + prompt customization for torchreadline
-rw-r--r-- | luajit/src/luaconf.h | 4 | ||||
-rw-r--r-- | luajit/src/luajit.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/luajit/src/luaconf.h b/luajit/src/luaconf.h index 2cb4c16..d884a7e 100644 --- a/luajit/src/luaconf.h +++ b/luajit/src/luaconf.h @@ -99,8 +99,8 @@ /* Configuration for the frontend (the luajit executable). */ #if defined(luajit_c) #define LUA_PROGNAME "luajit" /* Fallback frontend name. */ -#define LUA_PROMPT "> " /* Interactive prompt. */ -#define LUA_PROMPT2 ">> " /* Continuation prompt. */ +#define LUA_PROMPT "th> " /* Interactive prompt. */ +#define LUA_PROMPT2 "th>> " /* Continuation prompt. */ #define LUA_MAXINPUT 512 /* Max. input line length. */ #endif diff --git a/luajit/src/luajit.c b/luajit/src/luajit.c index a42434a..3be170f 100644 --- a/luajit/src/luajit.c +++ b/luajit/src/luajit.c @@ -411,6 +411,14 @@ static int docall(lua_State *L, int narg, int clear) static void print_version(void) { fputs(LUAJIT_VERSION " -- " LUAJIT_COPYRIGHT ". " LUAJIT_URL "\n", stdout); + fputs("\n", stdout); + fputs(" _____ _ \n", stdout); + fputs("|_ _| | | \n", stdout); + fputs(" | | ___ _ __ ___| |__ \n", stdout); + fputs(" | |/ _ \\| '__/ __| '_ \\ \n", stdout); + fputs(" | | (_) | | | (__| | | |\n", stdout); + fputs(" \\_/\\___/|_| \\___|_| |_|\n", stdout); + fputs("\n", stdout); } static void print_jit_status(lua_State *L) |