blaix / gren-tui

Write purely functional, type-safe, responsive terminal apps with Gren.
https://packages.gren-lang.org/package/blaix/gren-tui/version/latest/overview
BSD 3-Clause "New" or "Revised" License
16 stars 0 forks source link

Print error message when not running in an interactive shell #4

Open blaix opened 2 weeks ago

blaix commented 2 weeks ago

Currently if gren-tui gets Nothing from Terminal.initialize it will silently exit with status code 1. It should still do that, but print an error message first to explain the problem.

blaix commented 2 weeks ago

To trigger this error case, you can run a gren-tui app from child_process in a node repl.