summaryrefslogtreecommitdiffstats
path: root/src/exec.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-04-28 19:02:23 -0300
committerandmarti1424 <andmarti@gmail.com>2017-04-28 19:02:23 -0300
commit2a883e94dd75b0d40eae11a08d3df6951e5c6758 (patch)
tree2c2ae99b95b6d1725f294ace44df2e312b93fc5a /src/exec.c
parentc00342ef22c3155611bcc28ddef33e341aa990c8 (diff)
Renamed plot files. Fix when pausing and resuming ncurses ui.
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/exec.c b/src/exec.c
index d7ddf42..a7b3e23 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -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