diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/syscalls.txt | 2 | ||||
-rw-r--r-- | doc/terminal.txt | 14 |
2 files changed, 16 insertions, 0 deletions
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. |