diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx index 8b806ab5a..1d92d0233 100644 --- a/fluid/alignment_panel.cxx +++ b/fluid/alignment_panel.cxx @@ -3032,7 +3032,8 @@ Fl_Double_Window *shell_run_window=(Fl_Double_Window *)0; Fl_Terminal *shell_run_terminal=(Fl_Terminal *)0; static void cb_Clear(Fl_Button*, void*) { - shell_run_terminal->append("\033[2J\033[H"); + // clear screen, clear scrollback, home cursor + shell_run_terminal->append("\033[2J\033[3J\033[H"); } Fl_Return_Button *shell_run_button=(Fl_Return_Button *)0; diff --git a/fluid/alignment_panel.fl b/fluid/alignment_panel.fl index 1d9cd78d2..4f6a388e2 100644 --- a/fluid/alignment_panel.fl +++ b/fluid/alignment_panel.fl @@ -1584,7 +1584,8 @@ Function {make_shell_window()} {open } { Fl_Button {} { label Clear - callback {shell_run_terminal->append("\\033[2J\\033[H");} + callback {// clear screen, clear scrollback, home cursor +shell_run_terminal->append("\\033[2J\\033[3J\\033[H");} xywh {10 395 94 25} } Fl_Box {} {