mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
Add a /bin/tty command that prints the current tty.
Also fix ttyname() syscall to include "/dev/" in the name.
This commit is contained in:
@@ -400,7 +400,7 @@ void VirtualConsole::onTTYWrite(byte ch)
|
||||
|
||||
String VirtualConsole::ttyName() const
|
||||
{
|
||||
char buf[8];
|
||||
ksprintf(buf, "tty%u", m_index);
|
||||
char buf[16];
|
||||
ksprintf(buf, "/dev/tty%u", m_index);
|
||||
return String(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user