| 34 | static char BIOSgetch(void); |
| 35 | |
| 36 | int |
| 37 | tgetch() |
| 38 | { |
| 39 | char ch; |
| 40 | |
| 41 | /* BIOSgetch can use the numeric key pad on IBM compatibles. */ |
| 42 | if (iflags.BIOS) |
| 43 | ch = BIOSgetch(); |
| 44 | else |
| 45 | ch = DOSgetch(); |
| 46 | return ((ch == '\r') ? '\n' : ch); |
| 47 | } |
| 48 | |
| 49 | /* |
| 50 | * Keyboard translation tables. |
no test coverage detected