Skip to content

Commit f57c6e9

Browse files
committed
Add a nice colour prompt.
1 parent 3e08bdc commit f57c6e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

luaconf.h

+9
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,15 @@
559559
#undef lua_number2str
560560
#undef l_mathop
561561

562+
#if defined(LUA_USE_READLINE)
563+
#define LUA_PROMPT "\x01\x1b[1;95m\x02zepto8\x01\x1b[0m\x02> "
564+
#define LUA_PROMPT2 "\x01\x1b[1;95m\x02zepto8\x01\x1b[0m\x02>> "
565+
#else
566+
#define LUA_PROMPT "zepto8> "
567+
#define LUA_PROMPT2 "zepto8>> "
568+
#endif
569+
570+
#define LUA_PROGNAME "z8lua"
562571
#define LUA_INTEGER int16_t
563572
#define LUA_NUMBER z8::fix32
564573
#define LUAI_UACNUMBER z8::fix32

0 commit comments

Comments
 (0)