aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/pending/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/getty.c b/toys/pending/getty.c
index a3f665d8..0cfd750c 100644
--- a/toys/pending/getty.c
+++ b/toys/pending/getty.c
@@ -165,7 +165,7 @@ static void termios_init(void)
TT.termios.c_cc[VEOF] = CTL('D');
TT.termios.c_cc[VEOL] = '\n';
TT.termios.c_cc[VKILL] = CTL('U');
- TT.termios.c_cc[VERASE] = CERASE;
+ TT.termios.c_cc[VERASE] = 127; // CERASE
TT.termios.c_iflag = ICRNL|IXON|IXOFF;
// set non-zero baud rate. Zero baud rate left it unchanged.
if (TT.speeds[0] != B0) cfsetspeed(&TT.termios, TT.speeds[0]);