From 1285196e59807a8c705f8f9111c0eb92317a0673 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 9 Apr 2010 16:07:11 -0400 Subject: [PATCH] [main] Use updated terminal attrs on crash In commit ea394383c54dda771dcf59e7ec11280fa945280b I changed the terminal settings used by ply-terminal. This commit puts those same settings into effect in the crash path. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index ebbc22b2..c8b8d8bd 100644 --- a/src/main.c +++ b/src/main.c @@ -1739,9 +1739,9 @@ on_crash (int signum) tcgetattr (fd, &term_attributes); - term_attributes.c_iflag |= IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON; + term_attributes.c_iflag |= BRKINT | IGNPAR | ISTRIP | ICRNL | IXON; term_attributes.c_oflag |= OPOST; - term_attributes.c_lflag |= ECHO | ECHONL | ICANON | ISIG | IEXTEN; + term_attributes.c_lflag |= ECHO | ICANON | ISIG | IEXTEN; tcsetattr (fd, TCSAFLUSH, &term_attributes);