MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / lua_readline

Function lua_readline

src/lua.cpp:480–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478
479
480static char *lua_readline (char *buff, const char *prompt) {
481 if (l_readline != NULL) /* is there a 'readline'? */
482 return (*l_readline)(prompt); /* use it */
483 else { /* emulate 'readline' over 'buff' */
484 fputs(prompt, stdout);
485 fflush(stdout); /* show prompt */
486 return fgets(buff, LUA_MAXINPUT, stdin); /* read line */
487 }
488}
489
490
491static void lua_saveline (const char *line) {

Callers 1

pushlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected