ladybird/VirtualFileSystem/CharacterDevice.cpp
Andreas Kling 7a7956a595 Virtual consoles kinda work!
We now make three VirtualConsoles at boot: tty0, tty1, and tty2.
We launch an instance of /bin/sh in each one.
You switch between them with Alt+1/2/3

How very very cool :^)
2018-10-30 15:33:37 +01:00

10 lines
187 B
C++

#include "CharacterDevice.h"
CharacterDevice::~CharacterDevice()
{
}
OwnPtr<FileHandle> CharacterDevice::open(int options)
{
return VirtualFileSystem::the().open(*this, options);
}