summary refs log tree commit diff
path: root/main.ts
blob: 435e4af6024a3fe6327e2c51deb9b872a539a6aa (plain)
1
2
3
4
5
6
7
8
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)