/[machmon]/machmon/source/ncurses.c
ViewVC logotype

Diff of /machmon/source/ncurses.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pbastos, Tue Jul 2 05:40:11 2002 UTC revision 1.4 by pbastos, Tue Jul 2 05:50:57 2002 UTC
# Line 121  ncurses_start(void) Line 121  ncurses_start(void)
121      MAIN_WINDOW = (int) ncurses_mkwin(max_y, max_x, 0, 0, 1);      MAIN_WINDOW = (int) ncurses_mkwin(max_y, max_x, 0, 0, 1);
122      REAL_WINDOW = (int) ncurses_mkwin(max_y - 2, max_x - 2, 1, 1, 0);      REAL_WINDOW = (int) ncurses_mkwin(max_y - 2, max_x - 2, 1, 1, 0);
123    
124      (void) clearok(window[0], TRUE);      (void) clearok(window[MAIN_WINDOW], TRUE);
125      (void) leaveok(window[0], TRUE);      (void) leaveok(window[MAIN_WINDOW], TRUE);
126      (void) clearok(window[1], TRUE);      (void) clearok(window[REAL_WINDOW], TRUE);
127      (void) leaveok(window[1], TRUE);      (void) leaveok(window[REAL_WINDOW], TRUE);
128      (void) wmove(window[1], 0, 0);      (void) wmove(window[REAL_WINDOW], 0, 0);
129    
130      twin = window[REAL_WINDOW];      twin = window[REAL_WINDOW];
131    
# Line 215  output(const char *data, ...) Line 215  output(const char *data, ...)
215                                  (void) wattrset(twin, COLOR_PAIR(WHITE));                                  (void) wattrset(twin, COLOR_PAIR(WHITE));
216                                  break;                                  break;
217                          case WHITE_B_CHAR:                          case WHITE_B_CHAR:
218                                  (void) wattrset(twin, COLOR_PAIR(WHITE)|A_BOLD);                                  (void) wattrset(twin,
219                                    COLOR_PAIR(WHITE)|A_BOLD);
220                                  break;                                  break;
221                          case BLUE_CHAR:                          case BLUE_CHAR:
222                                  (void) wattrset(twin, COLOR_PAIR(BLUE));                                  (void) wattrset(twin, COLOR_PAIR(BLUE));
# Line 227  output(const char *data, ...) Line 228  output(const char *data, ...)
228                                  (void) wattrset(twin, COLOR_PAIR(GREEN));                                  (void) wattrset(twin, COLOR_PAIR(GREEN));
229                                  break;                                  break;
230                          case GREEN_B_CHAR:                          case GREEN_B_CHAR:
231                                  (void) wattrset(twin, COLOR_PAIR(GREEN)|A_BOLD);                                  (void) wattrset(twin,
232                                    COLOR_PAIR(GREEN)|A_BOLD);
233                                  break;                                  break;
234                          case RED_CHAR:                          case RED_CHAR:
235                                  (void) wattrset(twin, COLOR_PAIR(RED));                                  (void) wattrset(twin, COLOR_PAIR(RED));
# Line 239  output(const char *data, ...) Line 241  output(const char *data, ...)
241                                  (void) wattrset(twin, COLOR_PAIR(YELLOW));                                  (void) wattrset(twin, COLOR_PAIR(YELLOW));
242                                  break;                                  break;
243                          case YELLOW_B_CHAR:                          case YELLOW_B_CHAR:
244                                  (void) wattrset(twin, COLOR_PAIR(YELLOW)|A_BOLD);                                  (void) wattrset(twin,
245                                    COLOR_PAIR(YELLOW)|A_BOLD);
246                                  break;                                  break;
247                          case CYAN_CHAR:                          case CYAN_CHAR:
248                                  (void) wattrset(twin, COLOR_PAIR(CYAN));                                  (void) wattrset(twin, COLOR_PAIR(CYAN));
# Line 264  output(const char *data, ...) Line 267  output(const char *data, ...)
267  #endif  #endif
268    
269  #ifdef _E_DEBUG  #ifdef _E_DEBUG
   
270  void  void
271  output(const char *fmt, ...)  output(const char *fmt, ...)
272  {  {
273          return;          return;
274  }  }
   
275  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26