Scratch38-S0015
Some Deno code for TUIā¦stuff.
TUIAppFramework3
To run demonstration, try one of:
deno run --check=all helpdeno run --check=all hellodeno run --check=all clockdeno run --check=all --allow-read src\demo\ts\tuidemo3.ts wc README.md CHANGELOG.txtdeno run --check=all src\demo\ts\tuidemo3.ts wc -- This one reads data from stdin; recommendation is to pipe in a file
- You can also type text in but it will ālook messyā and youāll have to manually send EOF (Ctrl+z on Windows, Ctrl+d on Unixen) or Ctrl+c to quit.
Other stuff
For reading characters and escape codes as sent by terminals, use toCharishes from escapeparser.ts,
which will give you an AsyncIterable<Charish>, where Charish is either a number (for a regular character)
or an object representing the data contained in an escape sequence.
See charishdemo.ts for example.
Streams of charishes can in turn be translated into āinput eventsā. See eventreader.ts for example.
Thereās also some stuff about box drawing buried in here.
This project is currently ājust a bunch of codeā, isnāt very well organized, and may change drastically between versions.
See DEVLOG.md for stream of consciousness as I try to figure out what Iām trying to build.