Skip to content
Snippets Groups Projects
Commit d7417b36 authored by rswindell's avatar rswindell
Browse files

Added support for CIOLIB_MODE_CURSES_ASCII (and _IBM where missing).

parent 440aaed0
Branches
Tags
No related merge requests found
......@@ -330,6 +330,8 @@ js_conio_init(JSContext *cx, uintN argc, jsval *arglist)
ciolib_mode=CIOLIB_MODE_CURSES;
else if(!stricmp(mode,"CURSES_IBM"))
ciolib_mode=CIOLIB_MODE_CURSES_IBM;
else if(!stricmp(mode,"CURSES_ACSCII"))
ciolib_mode=CIOLIB_MODE_CURSES_ASCII;
else if(!stricmp(mode,"SDL"))
ciolib_mode=CIOLIB_MODE_SDL;
else if(!stricmp(mode,"SDL_FULLSCREEN"))
......@@ -1037,6 +1039,7 @@ static jsSyncMethodSpec js_functions[] = {
"<tr><td>\"CONIO_FULLSCREEN\"</td><td>Use the native conio library and request full-screen (full-screen does not work on all versions of Windows) (Windows only)</td></tr><tr><td>"
"<tr><td>\"CURSES\"</td><td>Use the curses terminal library (*nix only)</td></tr><tr><td>"
"<tr><td>\"CURSES_IBM\"</td><td>Use the curses terminal library and write extended ASCII characters directly as-is, assuming the terminal is using CP437. (*nix only)</td></tr><tr><td>"
"<tr><td>\"CURSES_ASCII\"</td><td>Use the curses terminal library and write US-ASCII characters only. (*nix only)</td></tr><tr><td>"
"<tr><td>\"SDL\"</td><td>Use the SDL library for output.</td></tr><tr><td>"
"<tr><td>\"SDL_FULLSCREEN\"</td><td>Use the SDL library for output (fullscreen).</td></tr><tr><td>"
"</table>"
......
......@@ -441,6 +441,10 @@ js_uifc_init(JSContext *cx, uintN argc, jsval *arglist)
ciolib_mode=CIOLIB_MODE_X;
else if(!stricmp(mode,"CURSES"))
ciolib_mode=CIOLIB_MODE_CURSES;
else if(!stricmp(mode,"CURSES_IBM"))
ciolib_mode=CIOLIB_MODE_CURSES_IBM;
else if(!stricmp(mode,"CURSES_ASCII"))
ciolib_mode=CIOLIB_MODE_CURSES_ASCII;
else if(!stricmp(mode,"ANSI"))
ciolib_mode=CIOLIB_MODE_ANSI;
else if(!stricmp(mode,"CONIO"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment