Rev 1524 | Rev 1532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1524 | Rev 1528 | ||
|---|---|---|---|
| Line 95... | Line 95... | ||
| 95 | */ |
95 | */ |
| 96 | void |
96 | void |
| 97 | scr_clear(void) |
97 | scr_clear(void) |
| 98 | { |
98 | { |
| 99 | 99 | ||
| - | 100 | resume_normal(); |
|
| 100 | send_call(con_phone, CONSOLE_CLEAR, 0); |
101 | send_call(con_phone, CONSOLE_CLEAR, 0); |
| 101 | curscore = -1; |
102 | curscore = -1; |
| 102 | memset((char *)curscreen, 0, sizeof(curscreen)); |
103 | memset((char *)curscreen, 0, sizeof(curscreen)); |
| 103 | } |
104 | } |
| 104 | 105 | ||
| Line 184... | Line 185... | ||
| 184 | scr_end(); |
185 | scr_end(); |
| 185 | errx(1, "aborting: %s", why); |
186 | errx(1, "aborting: %s", why); |
| 186 | } |
187 | } |
| 187 | 188 | ||
| 188 | 189 | ||
| 189 | #if vax && !__GNUC__ |
- | |
| 190 | typedef int regcell; /* pcc is bad at `register char', etc */ |
- | |
| 191 | #else |
- | |
| 192 | typedef cell regcell; |
- | |
| 193 | #endif |
- | |
| 194 | - | ||
| 195 | /* |
190 | /* |
| 196 | * Update the screen. |
191 | * Update the screen. |
| 197 | */ |
192 | */ |
| 198 | void |
193 | void |
| 199 | scr_update(void) |
194 | scr_update(void) |
| 200 | { |
195 | { |
| 201 | cell *bp, *sp; |
196 | cell *bp, *sp; |
| 202 | regcell so, cur_so = 0; |
197 | cell so, cur_so = 0; |
| 203 | int i, ccol, j; |
198 | int i, ccol, j; |
| 204 | static const struct shape *lastshape; |
199 | static const struct shape *lastshape; |
| 205 | 200 | ||
| 206 | /* always leave cursor after last displayed point */ |
201 | /* always leave cursor after last displayed point */ |
| 207 | curscreen[D_LAST * B_COLS - 1] = -1; |
202 | curscreen[D_LAST * B_COLS - 1] = -1; |
| Line 297... | Line 292... | ||
| 297 | */ |
292 | */ |
| 298 | void |
293 | void |
| 299 | scr_msg(char *s, int set) |
294 | scr_msg(char *s, int set) |
| 300 | { |
295 | { |
| 301 | 296 | ||
| 302 | if (set || CEstr == NULL) { |
- | |
| 303 | int l = strlen(s); |
297 | int l = strlen(s); |
| 304 | 298 | ||
| 305 | moveto(Rows - 2, ((Cols - l) >> 1) - 1); |
299 | moveto(Rows - 2, ((Cols - l) >> 1) - 1); |
| 306 | if (set) |
300 | if (set) |
| 307 | putstr(s); |
301 | putstr(s); |
| 308 | else |
302 | else |
| 309 | while (--l >= 0) |
303 | while (--l >= 0) |
| 310 | (void) putchar(' '); |
304 | (void) putchar(' '); |
| 311 | } else { |
- | |
| 312 | moveto(Rows - 2, 0); |
- | |
| 313 | putpad(CEstr); |
- | |
| 314 | } |
- | |
| 315 | } |
305 | } |