|
| Previous: 6.2.9 System | TOC | Index | Back | Next: 6.3 Miscellaneous |
| Procedure | Description |
|---|---|
| TTY.INIT() | Initialize the TTY interface |
| TTY.FINI() | Shutdown the TTY interface |
| TTY.CLEAR() | Clear the terminal screen |
| TTY.CLREOL() | Clear the current line starting at cursor position |
| TTY.COLOR(color) | Select COLOR for TTY writes |
| TTYCTL.B_BLACK TTYCTL.B_BLUE TTYCTL.B_CYAN TTYCTL.B_GREEN TTYCTL.B_GREY TTYCTL.B_MAGENTA TTYCTL.B_RED TTYCTL.B_YELLOW |
background colors |
| TTYCTL.F_BLACK TTYCTL.F_BLUE TTYCTL.F_CYAN TTYCTL.F_GREEN TTYCTL.F_GREY TTYCTL.F_MAGENTA TTYCTL.F_RED TTYCTL.F_YELLOW |
foreground colors |
| TTYCTL.F_BRIGHT | Foreground intensity flag |
| TTY.COLORS() | Return a flag indicating whether the terminal supports color |
| TTY.COLUMNS() | Return the number of characters per line on the connected TTY |
| TTY.MODE(r) | Select raw (R=1) or cooked (R=0) mode (where available) |
| TTY.MOVE(x, y) | Move the cursor to line Y, column X |
| TTY.LINES() | Return the number of lines per screen on the connected TTY |
| TTY.QUERY() | Check for pending characters in the keyboard buffer |
| TTY.READC() | Read a single character from the keyboard. Special keys return special codes listed here: |
| TTYCTL.K_BKSP TTYCTL.K_CR TTYCTL.K_DEL TTYCTL.K_DOWN TTYCTL.K_END TTYCTL.K_ESC TTYCTL.K_F1 TTYCTL.K_F2 TTYCTL.K_F3 TTYCTL.K_F4 TTYCTL.K_F5 TTYCTL.K_F6 TTYCTL.K_F7 TTYCTL.K_F8 TTYCTL.K_F9 TTYCTL.K_F10 TTYCTL.K_HOME TTYCTL.K_INS TTYCTL.K_KILL TTYCTL.K_LEFT TTYCTL.K_NEXT TTYCTL.K_PGDN TTYCTL.K_PGUP TTYCTL.K_PREV TTYCTL.K_RIGHT TTYCTL.K_UP |
Backspace Enter / CR / Return Delete Down arrow End Escape F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 Home Insert Kill, Erase line Left arrow Next, Page down Next, Page down Prev, Page up Prev, Page up Right arrow Up arrow |
| TTY.RSCROLL(top, bot) | Scroll down the lines from TOP to BOT |
| TTY.SCROLL(top, bot) | Scroll up the lines from TOP to BOT |
| TTY.WRITEC(char) | Write a single character to the screen |
| TTY.WRITES(string) | Write a string of characters to the screen |
| Previous: 6.2.9 System | TOC | Index | Back | Next: 6.3 Miscellaneous |