diff options
| author | Lua Team <team@lua.org> | 2004-12-30 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2004-12-30 12:00:00 +0000 |
| commit | e2493a40ee611d5a718fd2a81fe67e24c04c91a0 (patch) | |
| tree | 0dca96133b3cd52d262dfa2592ad076fc0ea7852 /etc/saconfig.c | |
| parent | 226f7859b5392b6680b7e703f9cc7f7f101fd365 (diff) | |
| download | lua-github-5.1-work4.tar.gz | |
Lua 5.1-work45.1-work4
Diffstat (limited to 'etc/saconfig.c')
| -rw-r--r-- | etc/saconfig.c | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/etc/saconfig.c b/etc/saconfig.c index 6c07cce1..676b38e1 100644 --- a/etc/saconfig.c +++ b/etc/saconfig.c @@ -6,39 +6,17 @@ * *** Line editing and history: * #define USE_READLINE to use the GNU readline library. +* Add "-lreadline -ltermcap" to MYLIBS. * * To use another library for this, use the code below as a start. * Make sure you #define lua_readline and lua_saveline accordingly. +* * If you do not #define lua_readline, you'll get a version based on fgets * that uses a static buffer of size MAXINPUT. -* -* -*** Static Lua libraries to be loaded at startup: -* #define lua_userinit(L) to a Lua function that loads libraries; typically -* #define lua_userinit(L) openstdlibs(L);myinit(L) -* or -* #define lua_userinit(L) myinit(L) -* -* Another way is to add the prototypes of the init functions here and -* #define LUA_EXTRALIBS accordingly. For example, -* #define LUA_EXTRALIBS {"mylib","luaopen_mylib"}, -* Note the ending comma! -* -* -*** Prompts: -* The stand-alone Lua interpreter uses two prompts: PROMPT and PROMPT2. -* PROMPT is the primary prompt, shown when the intepreter is ready to receive -* a new statement. PROMPT2 is the secondary prompt, shown while a statement -* is being entered but is still incomplete. -* -* -*** Program name: -* Error messages usually show argv[0] as a program name. In systems that do -* not give a valid string as argv[0], error messages show PROGNAME instead. -* -* */ +#define USE_READLINE + #ifdef USE_READLINE /* * This section implements of lua_readline and lua_saveline for lua.c using |
