diff options
Diffstat (limited to 'Kernel/TTY/VirtualConsole.cpp')
-rw-r--r-- | Kernel/TTY/VirtualConsole.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index 96d8eee7ce..995f9b2720 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -40,6 +40,7 @@ VirtualConsole::VirtualConsole(unsigned index, InitialContents initial_contents) : TTY(4, index) , m_index(index) { + m_tty_name = String::format("/dev/tty%u", m_index); set_size(80, 25); m_horizontal_tabs = static_cast<byte*>(kmalloc(columns())); for (unsigned i = 0; i < columns(); ++i) @@ -508,7 +509,7 @@ ssize_t VirtualConsole::on_tty_write(const byte* data, ssize_t size) String VirtualConsole::tty_name() const { - return String::format("/dev/tty%u", m_index); + return m_tty_name; } void VirtualConsole::set_vga_start_row(word row) |