diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -953,7 +953,7 @@ treset(void) { | |||
| 953 | term.tabs[i] = 1; | 953 | term.tabs[i] = 1; |
| 954 | term.top = 0, term.bot = term.row - 1; | 954 | term.top = 0, term.bot = term.row - 1; |
| 955 | term.mode = MODE_WRAP; | 955 | term.mode = MODE_WRAP; |
| 956 | xclear(0, 0, xw.w, xw.h); | 956 | |
| 957 | tclearregion(0, 0, term.col-1, term.row-1); | 957 | tclearregion(0, 0, term.col-1, term.row-1); |
| 958 | } | 958 | } |
| 959 | 959 | ||
| @@ -1728,6 +1728,7 @@ tputc(char *c) { | |||
| 1728 | case 'c': /* RIS -- Reset to inital state */ | 1728 | case 'c': /* RIS -- Reset to inital state */ |
| 1729 | treset(); | 1729 | treset(); |
| 1730 | term.esc = 0; | 1730 | term.esc = 0; |
| 1731 | xclear(0, 0, xw.w, xw.h); | ||
| 1731 | xresettitle(); | 1732 | xresettitle(); |
| 1732 | break; | 1733 | break; |
| 1733 | case '=': /* DECPAM -- Application keypad */ | 1734 | case '=': /* DECPAM -- Application keypad */ |
| @@ -2456,9 +2457,9 @@ main(int argc, char *argv[]) { | |||
| 2456 | 2457 | ||
| 2457 | run: | 2458 | run: |
| 2458 | setlocale(LC_CTYPE, ""); | 2459 | setlocale(LC_CTYPE, ""); |
| 2459 | xinit(); | ||
| 2460 | tnew(80, 24); | 2460 | tnew(80, 24); |
| 2461 | ttynew(); | 2461 | ttynew(); |
| 2462 | xinit(); | ||
| 2462 | selinit(); | 2463 | selinit(); |
| 2463 | run(); | 2464 | run(); |
| 2464 | return 0; | 2465 | return 0; |
