Skip to main content

TTY driver

this shit is pure magic but ima show you some of the functions

1. dev.tty.stdin.read

simply gets the input from the terminal

dev.tty.stdin.read([existingbuffer:string]):string

2. dev.tty.stdout.write

the name explains itself

(this is just a more raw version of print)

dev.tty.stdout.write(str:string)

3. dev.tty.setCursor

sets the cursor position

dev.tty.setCursor(x:number, y:number)

4. dev.tty.getCursor

simply gets the cursor position

dev.tty.getCursor():(number,number)

5. dev.tty.setFG

if you dont know this your a dumbasss

dev.tty.setFG(color:number)

6. dev.tty.setBG

if you dont know this aswell your a retard

dev.tty.setBG(color:number)