summary refs log tree commit diff
path: root/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.ts b/main.ts
index 3a05a48..435e4af 100644
--- a/main.ts
+++ b/main.ts
@@ -1,3 +1,9 @@
 import LoginScreen from "./v2/screen/login.ts";
 import { build } from "./v2/screenbuilder.ts";
+import readline from 'node:readline';
+
+readline.emitKeypressEvents(process.stdin);
+
+if (process.stdin.isTTY) process.stdin.setRawMode(true); // makes the terminal send stdin without the user pressing enter
+
 build(LoginScreen)
\ No newline at end of file