refactor(console): Enable astyle formatting

This commit is contained in:
Peter Marcisovsky
2024-04-29 16:12:51 +02:00
parent fe3fd4ae43
commit 0bfaf775c1
8 changed files with 36 additions and 37 deletions

View File

@@ -51,7 +51,7 @@ static void prepare_input_stream(void)
assert(tcgetattr(stdin_fileno, &s_orig_termios) == 0);
struct termios raw = s_orig_termios;
raw.c_iflag |= ICRNL; // we translate to NL because linenoise expects NL
raw.c_lflag &= ~(ECHO | ICANON); // turn off echo and cononical mode
raw.c_lflag &= ~(ECHO | ICANON); // turn off echo and canonical mode
assert(tcsetattr(stdin_fileno, TCSAFLUSH, &raw) == 0);
// Make sure user does not end up with a broken terminal