#860: FLUID: Increments Shell history to 1000 lines

This commit is contained in:
Matthias Melcher 2023-12-05 18:38:51 +01:00
parent 49dd9289b8
commit 68594ec7fa
2 changed files with 4 additions and 2 deletions

View File

@ -3052,6 +3052,7 @@ Fl_Double_Window* make_shell_window() {
{ shell_run_terminal = new Fl_Terminal(10, 10, 535, 375);
Fl_Group::current()->resizable(shell_run_terminal);
shell_run_terminal->ansi(1);
shell_run_terminal->history_lines(1000);
} // Fl_Terminal* shell_run_terminal
{ Fl_Group* o = new Fl_Group(10, 395, 535, 25);
{ Fl_Button* o = new Fl_Button(10, 395, 94, 25, "Clear");

View File

@ -1574,16 +1574,17 @@ Function {make_shell_window()} {open
label {Shell Command Output} open
xywh {769 585 555 430} type Double align 80 resizable visible
} {
Fl_Terminal shell_run_terminal {
Fl_Terminal shell_run_terminal {selected
xywh {10 10 535 375} resizable
code0 {shell_run_terminal->ansi(1);}
code1 {shell_run_terminal->history_lines(1000);}
}
Fl_Group {} {open
xywh {10 395 535 25}
} {
Fl_Button {} {
label Clear
callback {shell_run_terminal->append("\\033[2J\\033[H");} selected
callback {shell_run_terminal->append("\\033[2J\\033[H");}
xywh {10 395 94 25}
}
Fl_Box {} {