diff options
author | wlodekm <[email protected]> | 2024-11-10 20:07:33 +0200 |
---|---|---|
committer | wlodekm <[email protected]> | 2024-11-10 20:07:33 +0200 |
commit | 91b3570414cfdb4d4751e28006bf373d626d372a (patch) | |
tree | baee5103f682977074b0e0c71f890fddf912df89 /main.ts | |
parent | 276b4f6553c8e14537899f75c0a60b11d14f148d (diff) |
ok v1.0
Diffstat (limited to 'main.ts')
-rw-r--r-- | main.ts | 6 |
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 |