| 2138 | } |
| 2139 | |
| 2140 | int |
| 2141 | try_key_queue(char *bufp) |
| 2142 | { |
| 2143 | if (keyQueueCount) { |
| 2144 | char ch; |
| 2145 | for (ch = GetFromKeyQueue();; ch = GetFromKeyQueue()) { |
| 2146 | if (ch == CHAR_LF || ch == CHAR_CR) |
| 2147 | ch = 0; |
| 2148 | *bufp++ = ch; |
| 2149 | if (ch == 0) |
| 2150 | break; |
| 2151 | } |
| 2152 | return 1; |
| 2153 | } |
| 2154 | return 0; |
| 2155 | } |
| 2156 | |
| 2157 | /********************************************************************** |
| 2158 | * Base window |
no test coverage detected