Kernel: use termios c_cc values instead of hardcoded characters

This commit is contained in:
2025-06-02 15:54:11 +03:00
parent e473118ec8
commit fb466b5af7
5 changed files with 93 additions and 44 deletions

View File

@@ -12,6 +12,20 @@
namespace Kernel
{
#define TTY_DEFAULT_TERMIOS_CC { \
[VEOF] = '\x04', /* ctrl+D */ \
[VEOL] = '\0', \
[VERASE] = '\b', \
[VINTR] = '\x03', /* ctrl+C */ \
[VKILL] = '\x15', /* ctrl+U */ \
[VMIN] = 0, \
[VQUIT] = '\x1c', /* ctrl+\ */ \
[VSTART] = '\x11', /* ctrl+Q */ \
[VSTOP] = '\x13', /* ctrl+S */ \
[VSUSP] = '\x1a', /* ctrl+Z */ \
[VTIME] = 0 \
}
class TTY : public CharacterDevice
{
public: