diff options
Diffstat (limited to 'Kernel/TTY/VirtualConsole.cpp')
-rw-r--r-- | Kernel/TTY/VirtualConsole.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index ec7ad35c90..9a143918c2 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -102,6 +102,11 @@ void VirtualConsole::set_graphical(bool graphical) m_graphical = graphical; } +ErrorOr<NonnullOwnPtr<KString>> VirtualConsole::pseudo_name() const +{ + return KString::formatted("tty:{}", m_index); +} + UNMAP_AFTER_INIT NonnullRefPtr<VirtualConsole> VirtualConsole::create(size_t index) { auto virtual_console_or_error = DeviceManagement::try_create_device<VirtualConsole>(index); |