some tuning...
This commit is contained in:
@@ -68,7 +68,7 @@ return 0; /* this is not a magic number */
|
||||
int blast_error_message(char *txt, int violence, int unused)
|
||||
{
|
||||
int line, foo;
|
||||
char buff[60];
|
||||
char buff[80];
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "--> %s ( '%s' %d %d )\n", __func__,
|
||||
@@ -82,20 +82,36 @@ if (verbosity > 3) {
|
||||
}
|
||||
|
||||
standout();
|
||||
|
||||
// clear our part of screen
|
||||
// setup our part of screen
|
||||
for (foo=0; foo<COLS; foo++) {
|
||||
mvaddch(line, foo, '_');
|
||||
mvaddch(line, foo, '|');
|
||||
}
|
||||
|
||||
mvaddstr(line, 0, "SYS$MSG_ ");
|
||||
mvaddstr(line, 9, txt);
|
||||
mvaddstr(line, 0, "SYS$MSG_| ");
|
||||
mvaddstr(line, 10, txt);
|
||||
standend();
|
||||
refresh();
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* ----------------------------------------------------------------- */
|
||||
int erase_error_message(int ascii)
|
||||
{
|
||||
int foo;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "--> %s ( '%c' )\n", __func__, ascii);
|
||||
#endif
|
||||
|
||||
standout();
|
||||
// clear our part of screen
|
||||
for (foo=0; foo<COLS; foo++) {
|
||||
mvaddch(LINES-1, foo, ascii);
|
||||
}
|
||||
standend(); refresh();
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* ----------------------------------------------------------------- */
|
||||
/* warning: only use the bit 0 of the 'state' arg */
|
||||
|
||||
int draw_a_button(WINDOW *w, int lig, int col, char *txt, int state)
|
||||
|
||||
@@ -9,6 +9,7 @@ void endcurses(int p);
|
||||
|
||||
int draw_main_screen(char *title, int unused);
|
||||
int blast_error_message(char *txt, int violence, int unused);
|
||||
int erase_error_message(int ascii);
|
||||
|
||||
/* warning: only use the bit 0 of the 'state' arg */
|
||||
int draw_a_button(WINDOW *w, int lig, int col, char *txt, int state);
|
||||
|
||||
Reference in New Issue
Block a user