i'm, like, an expert on pseudo terminals, ansi sequences, terminal emulation, pipe buffering, and the select syscall. my life has gone in a strange direction.
the js terminal emulator I was using sucked so I had to roll my own which also sucks so whatever