-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe96b10
commit 10b907e
Showing
9 changed files
with
144 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
/* | ||
* Copyright (C) 1991, 1992, 1993, 2021, 2022, 2023 by Chris Thewalt ([email protected]) | ||
* Copyright (C) 1991, 1992, 1993, 2021, 2022, 2023, 2024 by Chris Thewalt ([email protected]) | ||
* | ||
* Permission to use, copy, modify, and distribute this software | ||
* for any purpose and without fee is hereby granted, provided | ||
|
@@ -199,13 +199,12 @@ namespace { | |
{ | ||
#ifdef __unix__ | ||
char ch; | ||
int c; | ||
while ((c = read(0, &ch, 1)) == -1) { | ||
while (read(0, &ch, 1) == -1) { | ||
if (errno != EINTR) { | ||
break; | ||
} | ||
} | ||
c = (ch <= 0) ? -1 : ch; | ||
int c = (ch <= 0) ? -1 : ch; | ||
#endif /* __unix__ */ | ||
#ifdef MSDOS | ||
int c = _bios_keybrd(_NKEYBRD_READ); | ||
|
Oops, something went wrong.