This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Check getch() against ERR
master
sin
10 years ago
parent
c6614067e4
commit
ce599b8e6b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
noice.c
+ 1
- 1
noice.c
View File
@@ -359,7 +359,7 @@ readln(void)
getyx(stdscr, y, x);
x0 = x;
while (c = getch()) {
while (
(
c = getch()
) != ERR
) {
if (c == KEY_ENTER || c == '\r')
break;
if (c == KEY_BACKSPACE) {
Write
Preview
Loading…
Cancel
Save