comparison mcabber/src/screen.c @ 30:4ea2df449381

[/trunk] Changeset 46 by mikael * s/roaster/roster/
author mikael
date Mon, 04 Apr 2005 08:11:50 +0000
parents 86837ff0554c
children a8ceaa3005fd
comparison
equal deleted inserted replaced
29:86837ff0554c 30:4ea2df449381
37 static PANEL *logPanel, *logPanel_border; 37 static PANEL *logPanel, *logPanel_border;
38 static int maxY, maxX; 38 static int maxY, maxX;
39 static window_entry_t *currentWindow; 39 static window_entry_t *currentWindow;
40 40
41 static int chatmode; 41 static int chatmode;
42 int update_roaster; 42 int update_roster;
43 43
44 static char inputLine[INPUTLINE_LENGTH+1]; 44 static char inputLine[INPUTLINE_LENGTH+1];
45 static char *ptr_inputline; 45 static char *ptr_inputline;
46 static short int inputline_offset; 46 static short int inputline_offset;
47 47
345 if (tmp != NULL) { 345 if (tmp != NULL) {
346 top_panel(tmp->panel); 346 top_panel(tmp->panel);
347 currentWindow = tmp; 347 currentWindow = tmp;
348 chatmode = TRUE; 348 chatmode = TRUE;
349 tmp->hidden_msg = FALSE; 349 tmp->hidden_msg = FALSE;
350 update_roaster = TRUE; 350 update_roster = TRUE;
351 width = scr_WindowHeight(tmp->win); 351 width = scr_WindowHeight(tmp->win);
352 for (n = 0; n < tmp->nlines; n++) { 352 for (n = 0; n < tmp->nlines; n++) {
353 mvwprintw(tmp->win, n + 1, 1, ""); 353 mvwprintw(tmp->win, n + 1, 1, "");
354 for (i = 0; i < width - 2; i++) 354 for (i = 0; i < width - 2; i++)
355 waddch(tmp->win, ' '); 355 waddch(tmp->win, ' ');
445 445
446 update_panels(); 446 update_panels();
447 doupdate(); 447 doupdate();
448 } else { 448 } else {
449 tmp->hidden_msg = TRUE; 449 tmp->hidden_msg = TRUE;
450 update_roaster = TRUE; 450 update_roster = TRUE;
451 } 451 }
452 } 452 }
453 453
454 void scr_InitCurses(void) 454 void scr_InitCurses(void)
455 { 455 {