I want to clear the screen before exiting.
This is what I tried:
app.rerender(<Box />);
But it doesn't work.
If I try to print an empty line with app.rerender(<Box>{'\n'}</Box>); it works, but I don't need an empty line.
Could you please give me a piece of advice?
I'll add a clear method 馃憤
Implemented in https://github.com/vadimdemedes/ink/commit/fec1c4d62cdb1b988e967acfe91da007e5dff500, will be released as part of Ink 3.
Ink 3 is out with the fix for this issue included! Read the full announcement at https://vadimdemedes.com/posts/ink-3 :)
Oh man, this is huge! I will totally check this out 馃憤
Most helpful comment
I'll add a
clearmethod 馃憤