| 31 | boolean colors_changed = FALSE; |
| 32 | |
| 33 | int |
| 34 | tgetch() |
| 35 | { |
| 36 | char ch; |
| 37 | |
| 38 | /* BIOSgetch can use the numeric key pad on IBM compatibles. */ |
| 39 | if (iflags.BIOS) |
| 40 | ch = BIOSgetch(); |
| 41 | else |
| 42 | ch = DOSgetch(); |
| 43 | return ((ch == '\r') ? '\n' : ch); |
| 44 | } |
| 45 | |
| 46 | /* |
| 47 | * Keyboard translation tables. |