3 ms·
Previous summer I've toyed with trying to write an "async prompt" a-la Erlang's shell with output scrolling and line-editing (see e.g. [0] for example of what I
by Joker_vD 2y ago
Previous summer I've toyed with trying to write an "async prompt" a-la Erlang's shell with output scrolling and line-editing (see e.g. [0] for example of what I am talking about), but it is so bloody difficult to do correctly, especially when the input spans several lines and there are some full-width characters on the screen, that I've abandoned it.
[0] https://asciinema.org/a/s2vmkOfj6XtJkQDzeM6g2RbPZ https://asciinema.org/a/s2vmkOfj6XtJkQDzeM6g2RbPZ