vadimdemedes / goodness-squad

4 stars 0 forks source link

Responsive UI #6

Open vadimdemedes opened 3 years ago

vadimdemedes commented 3 years ago

See https://github.com/vadimdemedes/ink/issues/341.

Currently Ink's output UI breaks if you resize terminal window down (reduce its width). To fix that, you'd need to detect when window was resized down and calculate how many output lines need to be erased in https://github.com/vadimdemedes/ink/blob/master/src/log-update.ts, so that there are no lines left from the previous output, before we render a new one. This file is a fork of log-update, so you might be able to find some insights there.