|
|
1.1 ! root 1: /* ! 2: * Set Up screen. ! 3: */ ! 4: #include <scn.h> ! 5: ! 6: void ! 7: setUpScreen(lines, at) ! 8: int lines; /* Number of lines devoted to error window */ ! 9: int at; /* Top line number of error window */ ! 10: { ! 11: initscr(); /* init curses */ ! 12: if (lines) { ! 13: static char msg[] = "Cannot establish error window"; ! 14: ! 15: if ((lines + at) > LINES) ! 16: fatal(msg); ! 17: errWindow = newwin(lines, 80, at, 0); ! 18: if (NULL == errWindow) ! 19: fatal(msg); ! 20: } ! 21: raw(); ! 22: noecho(); ! 23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.