Changeset 8ae2de9
- Timestamp:
- Mar 2, 2010, 9:14:44 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- b928b3a
- Parents:
- be1ae91
- git-author:
- David Benjamin <davidben@mit.edu> (10/30/09 14:31:56)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/02/10 21:14:44)
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r1a0874f r8ae2de9 2662 2662 owl_editwin_fullclear(e); 2663 2663 owl_global_set_needrefresh(&g); 2664 wnoutrefresh(owl_editwin_get_curswin(e));2664 update_panels(); 2665 2665 owl_global_set_typwin_inactive(&g); 2666 2666 owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL); … … 2730 2730 owl_free(cmd); 2731 2731 2732 wnoutrefresh(owl_editwin_get_curswin(e));2732 update_panels(); 2733 2733 owl_global_set_needrefresh(&g); 2734 2734 … … 2747 2747 owl_global_pop_context(&g); 2748 2748 owl_editwin_fullclear(e); 2749 wnoutrefresh(owl_editwin_get_curswin(e));2749 update_panels(); 2750 2750 owl_global_set_needrefresh(&g); 2751 2751 } … … 2765 2765 owl_global_pop_context(&g); 2766 2766 owl_global_set_needrefresh(&g); 2767 wnoutrefresh(owl_editwin_get_curswin(e));2767 update_panels(); 2768 2768 } 2769 2769 -
editwin.c
rd41f773 r8ae2de9 567 567 e->cursorx = x; 568 568 569 wnoutrefresh(e->curswin);569 update_panels(); 570 570 if (update == 1) 571 571 doupdate(); -
functions.c
r91634ec r8ae2de9 218 218 owl_popwin_refresh(owl_global_get_popwin(&g)); 219 219 } 220 wnoutrefresh(owl_global_get_curs_recwin(&g));220 update_panels(); 221 221 owl_global_set_needrefresh(&g); 222 222 } … … 1252 1252 void owl_function_set_cursor(WINDOW *win) 1253 1253 { 1254 /* Be careful that this window is actually empty, otherwise panels get confused */ 1254 1255 wnoutrefresh(win); 1255 1256 } … … 1265 1266 redrawwin(owl_global_get_curs_msgwin(&g)); 1266 1267 1267 wnoutrefresh(owl_global_get_curs_recwin(&g)); 1268 wnoutrefresh(owl_global_get_curs_sepwin(&g)); 1269 wnoutrefresh(owl_global_get_curs_typwin(&g)); 1270 wnoutrefresh(owl_global_get_curs_msgwin(&g)); 1268 update_panels(); 1271 1269 1272 1270 if (owl_popwin_is_active(owl_global_get_popwin(&g))) { … … 3404 3402 owl_function_debugmsg("makemsg: %s", buff); 3405 3403 waddstr(owl_global_get_curs_msgwin(&g), buff); 3406 wnoutrefresh(owl_global_get_curs_msgwin(&g));3404 update_panels(); 3407 3405 owl_global_set_needrefresh(&g); 3408 3406 va_end(ap); -
global.c
r516c27e r8ae2de9 126 126 } 127 127 128 /* If *pan does not exist, we create a new panel, otherwise we replace the 129 window in *pan with win. 130 131 libpanel PANEL objects cannot exist without owner a valid window. This 132 maintains the invariant for _owl_global_setup_windows. */ 133 void _owl_panel_set_window(PANEL **pan, WINDOW *win) 134 { 135 WINDOW *oldwin; 136 if (*pan) { 137 oldwin = panel_window(*pan); 138 replace_panel(*pan, win); 139 delwin(oldwin); 140 } else { 141 *pan = new_panel(win); 142 } 143 } 144 128 145 void _owl_global_setup_windows(owl_global *g) { 129 146 int cols, typwin_lines; … … 142 159 143 160 /* create the new windows */ 144 g->recwin =newwin(g->recwinlines, cols, 0, 0);161 g->recwin = newwin(g->recwinlines, cols, 0, 0); 145 162 if (g->recwin==NULL) { 146 163 owl_function_debugmsg("_owl_global_setup_windows: newwin returned NULL\n"); … … 148 165 exit(50); 149 166 } 167 _owl_panel_set_window(&g->recpan, g->recwin); 150 168 151 g->sepwin=newwin(1, cols, g->recwinlines, 0); 152 g->msgwin=newwin(1, cols, g->recwinlines+1, 0); 153 g->typwin=newwin(typwin_lines, cols, g->recwinlines+2, 0); 169 g->sepwin = newwin(1, cols, g->recwinlines, 0); 170 _owl_panel_set_window(&g->seppan, g->sepwin); 171 g->msgwin = newwin(1, cols, g->recwinlines+1, 0); 172 _owl_panel_set_window(&g->msgpan, g->msgwin); 173 g->typwin = newwin(typwin_lines, cols, g->recwinlines+2, 0); 174 _owl_panel_set_window(&g->typpan, g->typwin); 154 175 155 176 owl_editwin_set_curswin(g->tw, g->typwin, typwin_lines, g->cols); … … 469 490 if (!g->resizepending) return; 470 491 471 /* delete the current windows */472 delwin(g->recwin);473 delwin(g->sepwin);474 delwin(g->msgwin);475 delwin(g->typwin);476 492 if (!isendwin()) { 477 493 endwin(); 478 494 } 479 480 refresh();481 495 482 496 /* get the new size */ -
mainwin.c
r129e609 r8ae2de9 43 43 mw->curtruncated=0; 44 44 mw->lastdisplayed=-1; 45 wnoutrefresh(recwin);45 update_panels(); 46 46 owl_global_set_needrefresh(&g); 47 47 return; … … 141 141 mw->lastdisplayed=i-1; 142 142 143 wnoutrefresh(recwin);143 update_panels(); 144 144 owl_global_set_needrefresh(&g); 145 145 } -
owl.c
r91634ec r8ae2de9 599 599 owl_function_source(NULL); 600 600 601 wrefresh(sepwin);601 update_panels(); 602 602 603 603 /* Set the default style */ … … 655 655 /* update the terminal if we need to */ 656 656 if (owl_global_is_needrefresh(&g)) { 657 /* ensure that panels are clean, so that set_cursor doesn't break things */ 658 update_panels(); 657 659 /* leave the cursor in the appropriate window */ 658 660 if (owl_global_is_typwin_active(&g)) { -
owl.h
rbe1ae91 r8ae2de9 394 394 typedef struct _owl_popwin { 395 395 WINDOW *borderwin; 396 PANEL *borderpanel; 396 397 WINDOW *popwin; 398 PANEL *poppanel; 397 399 int lines; 398 400 int cols; … … 556 558 owl_messagelist msglist; 557 559 WINDOW *recwin, *sepwin, *msgwin, *typwin; 560 PANEL *recpan, *seppan, *msgpan, *typpan; 558 561 int needrefresh; 559 562 int rightshift; -
popwin.c
r8240bce r8ae2de9 25 25 26 26 pw->borderwin=newwin(pw->lines, pw->cols, startline, startcol); 27 pw->borderpanel = new_panel(pw->borderwin); 27 28 pw->popwin=newwin(pw->lines-2, pw->cols-2, startline+1, startcol+1); 29 pw->poppanel = new_panel(pw->popwin); 28 30 pw->needsfirstrefresh=1; 29 31 … … 48 50 } 49 51 50 wnoutrefresh(pw->popwin); 51 wnoutrefresh(pw->borderwin); 52 update_panels(); 52 53 owl_global_set_needrefresh(&g); 53 54 pw->active=1; … … 57 58 int owl_popwin_close(owl_popwin *pw) 58 59 { 60 del_panel(pw->poppanel); 61 del_panel(pw->borderpanel); 59 62 delwin(pw->popwin); 60 63 delwin(pw->borderwin); … … 75 78 int owl_popwin_refresh(const owl_popwin *pw) 76 79 { 77 touchwin(pw->borderwin); 78 touchwin(pw->popwin); 79 80 wnoutrefresh(pw->borderwin); 81 wnoutrefresh(pw->popwin); 80 update_panels(); 82 81 owl_global_set_needrefresh(&g); 83 82 return(0); -
util.c
ra61daae r8ae2de9 120 120 wattroff(sepwin, A_BOLD); 121 121 wattroff(sepwin, A_REVERSE); 122 wnoutrefresh(sepwin);122 update_panels(); 123 123 } 124 124 -
viewwin.c
r3e55268 r8ae2de9 89 89 } 90 90 wattroff(v->curswin, A_REVERSE); 91 wnoutrefresh(v->curswin);91 update_panels(); 92 92 93 93 if (update==1) {
Note: See TracChangeset
for help on using the changeset viewer.