From 7b466345af0d3a7dc5622617ce443a90c64e34a4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 19 May 2012 09:23:48 +0200 Subject: Added ANSI support, minimal readline-like library. --- doc/syscalls.txt | 2 ++ doc/terminal.txt | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 doc/terminal.txt (limited to 'doc') diff --git a/doc/syscalls.txt b/doc/syscalls.txt index 833041a..6b54fb8 100644 --- a/doc/syscalls.txt +++ b/doc/syscalls.txt @@ -23,7 +23,9 @@ id=eax Name Parameters Description 14 run ebx: char* filename spans a new process and run the executable filename ecx: char** args + edx: file zero_fd 15 waitpid ebx: int pid wait for a process to exit, returns retval. + ecx: block 20 open ebx: char* filename open a file, returns a descriptor ecx: mode diff --git a/doc/terminal.txt b/doc/terminal.txt new file mode 100644 index 0000000..ebdc898 --- /dev/null +++ b/doc/terminal.txt @@ -0,0 +1,14 @@ +The virtual terminals support some ANSI escape sequences. + +By default, the keyboard input is NOT echoed to the screen. +Keyboard echoing can be enabled by sending 0x1b[e and disabled by sending 0x1b[h. + +When keyboard echo is enabled: +- what is written to keyboard is echoed ONLY IF A PROCESS IS CURRENTLY READING THE INPUT +- escape sequences are ignored (arrows, commands, etc.) +- backspaces are taken into account, so that they don't need post-processing +- read returns when a newline is read from keyboard +When keyboard echo is disabled: +- what is written to keyboard is NEVER ECHOED +- read returns after each keystroke (can also be an escape sequence) +Default is keyboard echo disabled. -- cgit v1.2.3