Ink: Add `clear` method to clear output

Created on 22 Dec 2019  路  4Comments  路  Source: vadimdemedes/ink

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?

enhancement shipped in v3

Most helpful comment

I'll add a clear method 馃憤

All 4 comments

I'll add a clear method 馃憤

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 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gc picture gc  路  6Comments

nmehta6 picture nmehta6  路  3Comments

maticzav picture maticzav  路  6Comments

colinking picture colinking  路  6Comments

zkat picture zkat  路  7Comments