summaryrefslogtreecommitdiff
path: root/Kernel/Keyboard.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-30 15:33:37 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-30 15:33:37 +0100
commit7a7956a59526e21262675e7647a89c865d93d551 (patch)
treed906ffe5fe57904e1a78ed4b8965dfd85e2b9f16 /Kernel/Keyboard.h
parent68739dc43e6bc42f9cac79fe5cbec714ddeeb218 (diff)
downloadserenity-7a7956a59526e21262675e7647a89c865d93d551.zip
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 :^)
Diffstat (limited to 'Kernel/Keyboard.h')
-rw-r--r--Kernel/Keyboard.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Keyboard.h b/Kernel/Keyboard.h
index 21334cf714..3b8e75c747 100644
--- a/Kernel/Keyboard.h
+++ b/Kernel/Keyboard.h
@@ -19,7 +19,7 @@ public:
virtual ~Keyboard() override;
Keyboard();
- void setClient(KeyboardClient*);
+ void setClient(KeyboardClient* client) { m_client = client; }
private:
// ^IRQHandler
@@ -30,6 +30,8 @@ private:
virtual ssize_t write(const byte* buffer, size_t) override;
virtual bool hasDataAvailableForRead() const override;
+ void emit(byte);
+
KeyboardClient* m_client { nullptr };
CircularQueue<byte, 16> m_queue;
byte m_modifiers { 0 };