version 1.42, 2003/07/07 12:30:22 |
version 1.43, 2003/07/10 13:36:48 |
|
|
/* from here on out, we take tty signals ourselves */ |
/* from here on out, we take tty signals ourselves */ |
ttysig_forward = 0; |
ttysig_forward = 0; |
|
|
(void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &tt); |
reset_prog_mode(); |
|
|
if (WIFEXITED(status)) { |
if (WIFEXITED(status)) { |
*errstr = "command failed"; |
*errstr = "command failed"; |
Line 476 run_prog(int flags, msg errmsg, const ch |
|
Line 476 run_prog(int flags, msg errmsg, const ch |
|
if (**aps != '\0') |
if (**aps != '\0') |
++aps; |
++aps; |
|
|
|
/* Make curses save tty settings */ |
|
def_prog_mode(); |
|
|
(void)ioctl(STDIN_FILENO, TIOCGWINSZ, &win); |
(void)ioctl(STDIN_FILENO, TIOCGWINSZ, &win); |
/* Apparently, we sometimes get 0x0 back, and that's not useful */ |
/* Apparently, we sometimes get 0x0 back, and that's not useful */ |
if (win.ws_row == 0) |
if (win.ws_row == 0) |
|
|
ret = launch_subwin(NULL, args, &win, flags, &errstr); |
ret = launch_subwin(NULL, args, &win, flags, &errstr); |
} |
} |
va_end(ap); |
va_end(ap); |
|
/* restore tty setting we saved earlier */ |
|
reset_prog_mode(); |
if ((flags & RUN_FATAL) != 0 && ret != 0) |
if ((flags & RUN_FATAL) != 0 && ret != 0) |
exit(ret); |
exit(ret); |
if (ret && errmsg != MSG_NONE) { |
if (ret && errmsg != MSG_NONE) { |