diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-04-28 19:02:23 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-04-28 19:02:23 -0300 |
commit | 2a883e94dd75b0d40eae11a08d3df6951e5c6758 (patch) | |
tree | 2c2ae99b95b6d1725f294ace44df2e312b93fc5a /src/exec.c | |
parent | c00342ef22c3155611bcc28ddef33e341aa990c8 (diff) |
Renamed plot files. Fix when pausing and resuming ncurses ui.
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -17,18 +17,13 @@ int exec_cmd (char * line) { #ifdef NCURSES int waitres; - def_prog_mode(); - endwin(); - - system("reset"); - //reset_shell_mode(); + ui_pause(); int my_pipe[2]; if (pipe(my_pipe) == -1) { sc_error("Error creating pipe"); getchar(); - reset_prog_mode(); - refresh(); + ui_resume(); ui_update(TRUE); return -1; } @@ -37,8 +32,7 @@ int exec_cmd (char * line) { if (child_id == -1) { sc_error("Fork error"); getchar(); - reset_prog_mode(); - refresh(); + ui_resume(); ui_update(TRUE); return -1; } @@ -81,8 +75,7 @@ int exec_cmd (char * line) { } getchar(); - reset_prog_mode(); - refresh(); + ui_resume(); ui_update(TRUE); } #endif |