diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-22 16:01:49 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-22 16:01:49 +0200 |
| commit | 828d8a0e2b13ff0ae414ddae7f9ca1de1e2c8d88 (patch) | |
| tree | c5d4c6772f5e8d8a57fc9eafeb48916e20da6328 /fluid/alignment_panel.cxx | |
| parent | f0375d6213d67d585c9b8e5adc443d8c8adc280c (diff) | |
FLUID: shell code cleanup
Diffstat (limited to 'fluid/alignment_panel.cxx')
| -rw-r--r-- | fluid/alignment_panel.cxx | 10 |
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 |
