📝 rename lexical tokens

This commit is contained in:
ValKmjolnir
2024-05-21 23:31:21 +08:00
parent 2c851613ce
commit 77a14699f4
9 changed files with 564 additions and 489 deletions

View File

@@ -34,7 +34,8 @@ public:
tcgetattr(0, &init_termios);
new_termios = init_termios;
new_termios.c_lflag &= ~(ICANON|ECHO|ECHONL|ECHOE);
// vmin=0 is nonblock input, but in wsl there is a bug that will block input
// vmin = 0 is nonblock input,
// but in wsl1 there is a bug that will block input
// so we use fcntl to write the nonblock input
new_termios.c_cc[VMIN] = 1;
new_termios.c_cc[VTIME] = 0;