mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +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:
parent
4605b549d6
commit
c7d5ce6b5a
6 changed files with 28 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ cp ../Userland/clear mnt/bin/clear
|
|||
cp ../Userland/tst mnt/bin/tst
|
||||
cp ../Userland/mm mnt/bin/mm
|
||||
cp ../Userland/kill mnt/bin/kill
|
||||
cp ../Userland/tty mnt/bin/tty
|
||||
sh sync-local.sh
|
||||
cp kernel.map mnt/
|
||||
umount mnt
|
Loading…
Add table
Add a link
Reference in a new issue