Ink: [v2] re-rendering devours previous lines?

Created on 20 Feb 2019  路  7Comments  路  Source: vadimdemedes/ink

This only seems to happen on Hyper for me, when using tmux with a log line and not all the time, but I managed to get a recording of it, and my npm pick-updates npm branch seems to reproduce it for me fairly often.

Repro Steps

  1. Get Hyper and tmux
  2. git clone https://github.com/npm/cli && cd cli
  3. make link
  4. npm pick-updates
  5. Move your cursor around.

Results

kapture 2019-02-20 at 11 42 23

Most helpful comment

After implementing 3 different functions for wrapping terminal output, I decided to try to patch wrap-ansi itself: https://github.com/chalk/wrap-ansi/pull/29. It still has one issue left to fix, but I thought it would be useful to give you an update and a way to track progress of this issue.

All 7 comments

Didn't see that before, will check it out today!

Reproduced this after resizing Hyper, it seems Hyper doesn't wrap terminal output correctly as you resize the window.

I was unable to fix it yet, but I do have some ideas that I'll try out tomorrow.

It seems I'll have to implement own wrapping of terminal output. I've tried wrap-ansi and terminal-kit, but no luck. If you know of any other packages that wrap output while handling ANSI escapes, please send me a link!

After implementing 3 different functions for wrapping terminal output, I decided to try to patch wrap-ansi itself: https://github.com/chalk/wrap-ansi/pull/29. It still has one issue left to fix, but I thought it would be useful to give you an update and a way to track progress of this issue.

Thanks a lot for looking into this! Hopefully they'll land your patch soon 馃挌

Fixed in 2.0.0-17!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

treshugart picture treshugart  路  4Comments

danikaze picture danikaze  路  5Comments

colinking picture colinking  路  6Comments

sindresorhus picture sindresorhus  路  7Comments

cometkim picture cometkim  路  3Comments