summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-30 22:11:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-30 23:00:35 +0200
commit165f69023b73898e424949a8c6a2a9de86077cfd (patch)
tree09a530abee47e218e8fa604f122968d6501ea2de /Kernel
parente263dc8427aff08307faa02e1278d13c4901e810 (diff)
downloadserenity-165f69023b73898e424949a8c6a2a9de86077cfd.zip
LibVT: Allow updating the window progress via an escape sequence
You can now request an update of the terminal's window progress by sending this escape sequence: <esc>]9;<value>;<max_value>;<escape><backslash> I'm sure we can find many interesting uses for this! :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp5
-rw-r--r--Kernel/TTY/VirtualConsole.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 3716421bfe..f7cb4a376e 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -307,6 +307,11 @@ void VirtualConsole::set_window_title(const StringView&)
// Do nothing.
}
+void VirtualConsole::set_window_progress(int, int)
+{
+ // Do nothing.
+}
+
void VirtualConsole::terminal_did_resize(u16 columns, u16 rows)
{
ASSERT(columns == 80);
diff --git a/Kernel/TTY/VirtualConsole.h b/Kernel/TTY/VirtualConsole.h
index db9c9b8b01..44ef39d682 100644
--- a/Kernel/TTY/VirtualConsole.h
+++ b/Kernel/TTY/VirtualConsole.h
@@ -59,6 +59,7 @@ private:
// ^TerminalClient
virtual void beep() override;
virtual void set_window_title(const StringView&) override;
+ virtual void set_window_progress(int, int) override;
virtual void terminal_did_resize(u16 columns, u16 rows) override;
virtual void terminal_history_changed() override;
virtual void emit(const u8*, size_t) override;