From d50a05a5668bc41935cf78062a3058dd1818ed19 Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Thu, 7 Jan 2021 14:43:35 -0800 Subject: [PATCH] Switched to cfmakeraw --- src/Console/Resources/getch.c | 5 +++-- src/Console/Resources/libgetch.so | Bin 16080 -> 16136 bytes 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Console/Resources/getch.c b/src/Console/Resources/getch.c index 5fc5211..eb21e46 100644 --- a/src/Console/Resources/getch.c +++ b/src/Console/Resources/getch.c @@ -9,8 +9,9 @@ int _getch(void) int ch; tcgetattr( STDIN_FILENO, &oldattr ); newattr = oldattr; - newattr.c_lflag &= ~( ICANON | ECHO ); - tcsetattr( STDIN_FILENO, TCSANOW, &newattr ); + cfmakeraw(&newattr); + //newattr.c_lflag &= ~( ICANON | ECHO ); + //tcsetattr( STDIN_FILENO, TCSANOW, &newattr ); ch = getchar(); tcsetattr( STDIN_FILENO, TCSANOW, &oldattr ); return ch; diff --git a/src/Console/Resources/libgetch.so b/src/Console/Resources/libgetch.so index a6bc39f6e356edd20e2773fee8379dfe3564096c..40fffa8abc246a5f75a2c3167d017bae6609d1b4 100755 GIT binary patch delta 1194 zcmY*ZT}TvB6ux(M#~gEOW=(cCELTF(es*@&UDs9CRwcX-3G0Iok%6meE)}S))I&d8 zVknC>c^(Q1(jJPXmt-IMfrJVQdnsRfiNGELgCHd$i)uU9nXx=@?{~g)&YXMhJ@?L= zvt#FUw=yM@Rf!ou#;#U}r3KMo3s;l3BqkUn4hsG1DMmtZ6yWftaf;aqw>e;&&>-GK zO@V1zLNCIg&`NK^yr9Ax!3_g~d(!5w1`KeLjikki3d&9cNCzUfk1B>?77p4@Z0+eg zkvP^nlsH9>_NIFJ6GJ4`bFw#;NTuMdt+S06CSWzZ9*SBP(cBK%l1w@Xv5}l<8{V3f zc=QwGTnZaaG=QYxg5Bluo6ED^<%^-m zDk1&+@IL8zl*(@8eY%m05H=CbqJd3_w>d;sQrlQY+zxl;J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