Expose more TTY CALL shims

This commit is contained in:
Joshua Bell
2014-11-08 16:36:31 -08:00
parent e1d01b3706
commit b1fb46a5fa
3 changed files with 70 additions and 32 deletions

View File

@@ -468,6 +468,21 @@ this.basic = (function() {
0xD683: function() { // Clear stack
state.stack = [];
},
0xFBF4: function() { // Move cursor right
if (env.tty.cursorRight) { env.tty.cursorRight(); }
},
0xFC10: function() { // Move cursor left
if (env.tty.cursorLeft) { env.tty.cursorLeft(); }
},
0xFC1A: function() { // Move cursor up
if (env.tty.cursorUp) { env.tty.cursorUp(); }
},
0xFC42: function() { // Clear text from cursor to bottom
if (env.tty.clearEOS) { env.tty.clearEOS(); }
},
0xFC66: function() { // Move cursor down
if (env.tty.cursorDown) { env.tty.cursorDown(); }
},
0xFC9C: function() { // Clear from cursor to right
if (env.tty.clearEOL) { env.tty.clearEOL(); }
}