summaryrefslogtreecommitdiff
path: root/fluid/alignment_panel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/alignment_panel.cxx')
-rw-r--r--fluid/alignment_panel.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx
index 323c04cf3..f9f093e94 100644
--- a/fluid/alignment_panel.cxx
+++ b/fluid/alignment_panel.cxx
@@ -1697,6 +1697,10 @@ Fl_Double_Window *shell_run_window=(Fl_Double_Window *)0;
Fl_Simple_Terminal *shell_run_terminal=(Fl_Simple_Terminal *)0;
+static void cb_Clear(Fl_Button*, void*) {
+ shell_run_terminal->clear();
+}
+
Fl_Return_Button *shell_run_button=(Fl_Return_Button *)0;
static void cb_shell_run_button(Fl_Return_Button*, void*) {
@@ -1713,9 +1717,13 @@ Fl_Double_Window* make_shell_window() {
shell_run_window->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
{ shell_run_terminal = new Fl_Simple_Terminal(10, 10, 535, 375);
Fl_Group::current()->resizable(shell_run_terminal);
+ shell_run_terminal->ansi(1);
} // Fl_Simple_Terminal* shell_run_terminal
{ Fl_Group* o = new Fl_Group(10, 395, 535, 25);
- { Fl_Box* o = new Fl_Box(10, 395, 435, 25);
+ { Fl_Button* o = new Fl_Button(10, 395, 94, 25, "Clear");
+ o->callback((Fl_Callback*)cb_Clear);
+ } // Fl_Button* o
+ { Fl_Box* o = new Fl_Box(104, 395, 341, 25);
o->hide();
Fl_Group::current()->resizable(o);
} // Fl_Box* o