Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
15904db557d1
Commit
a9a07742
authored
Feb 26, 2016
by
a1ex
Browse files
Lua: added console.clear()
--HG-- branch : lua_fix
parent
97beaa220d8a
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/lua/lua_console.c
View file @
15904db5
...
...
@@ -32,6 +32,16 @@ static int luaCB_console_hide(lua_State * L)
return
0
;
}
/***
Clear the console contents
@function clear
*/
static
int
luaCB_console_clear
(
lua_State
*
L
)
{
console_clear
();
return
0
;
}
/***
Write some text to the console
@tparam string text the text to write
...
...
@@ -50,6 +60,7 @@ static const luaL_Reg consolelib[] =
{
{
"show"
,
luaCB_console_show
},
{
"hide"
,
luaCB_console_hide
},
{
"clear"
,
luaCB_console_clear
},
{
"write"
,
luaCB_console_write
},
{
NULL
,
NULL
}
};
...
...
src/console.h
View file @
15904db5
...
...
@@ -8,6 +8,7 @@ int console_printf( const char* fmt, ... );
void
console_show
();
void
console_hide
();
void
console_clear
();
void
console_draw_from_menu
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment