From 91b3570414cfdb4d4751e28006bf373d626d372a Mon Sep 17 00:00:00 2001 From: wlodekm Date: Sun, 10 Nov 2024 20:07:33 +0200 Subject: ok v1.0 --- main.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.ts') 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 -- cgit 1.4.1-2-gfad0