aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-02-11 12:43:47 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-02-11 12:43:47 +0100
commit852a3f5bc5a2efcfd7ff0a88fab8334d1eef2051 (patch)
tree7fc6df51005ba63192fdd4988bb7120d5dec62b6
parent5c5719ba54051fcee8a7a0e36ec65cc2f1a339b9 (diff)
fix newline behaviour
-rw-r--r--j1eforth/j1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/j1eforth/j1.c b/j1eforth/j1.c
index d0d5310..926adb5 100644
--- a/j1eforth/j1.c
+++ b/j1eforth/j1.c
@@ -11,7 +11,7 @@ int getch(void) { /* reads from keypress, doesn't echo */
int ch;
tcgetattr( STDIN_FILENO, &oldattr );
newattr = oldattr;
- newattr.c_iflag &= ~( ICRNL );
+ // newattr.c_iflag &= ~( ICRNL );
newattr.c_lflag &= ~( ICANON | ECHO );
tcsetattr( STDIN_FILENO, TCSANOW, &newattr );
ch = getchar();