summaryrefslogtreecommitdiff
path: root/fluid/shell_command.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-12-16 18:53:01 +0100
committerMatthias Melcher <github@matthiasm.com>2023-12-16 18:53:01 +0100
commit638e762d3ebdb0b2e736e1deecaa7d86529fc1e5 (patch)
tree4ea8e8eb2cdd3c90970adafa7aa11d3b35ace564 /fluid/shell_command.cxx
parent5f3bea461495f13e1a5088b2f95d274e027c6641 (diff)
#674: FLUID: Scrolls shell script terminal to the bottom on every run
Diffstat (limited to 'fluid/shell_command.cxx')
-rw-r--r--fluid/shell_command.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/shell_command.cxx b/fluid/shell_command.cxx
index 28382636b..525f58141 100644
--- a/fluid/shell_command.cxx
+++ b/fluid/shell_command.cxx
@@ -427,6 +427,7 @@ void run_shell_command(const Fl_String &cmd, int flags) {
shell_run_terminal->printf("\033[2J\033[H");
if (flags & Fd_Shell_Command::CLEAR_HISTORY)
shell_run_terminal->printf("\033[3J");
+ shell_run_terminal->scrollbar->value(0);
shell_run_terminal->printf("\033[0;32m%s\033[0m\n", expanded_cmd.c_str());
shell_run_window->label(expanded_cmd.c_str());