question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Respond and reflow with terminal resize events

See original GitHub issue

Listening to stdout.on('resize') is pretty straight-forward, but it looks like the ink renderer is instantiated at a fixed terminalWidth.

Is it feasible to reconfigure the renderer or to create a new renderer in response to terminal size changes?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vadimdemedescommented, Jun 18, 2020

Fix is in master, going to keep this issue open until Ink 3 release is out.

0reactions
vadimdemedescommented, Jul 27, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Force GNU screen to reflow to current terminal width on ...
Whenever I reattach a session, regardless of state when I detached it, it launches at 80 columns, resizing my terminal (PuTTY, in this...
Read more >
How to enable "rewrap text on resize" in Konsole? [closed]
It is possible to install and use gnome-terminal on a KDE based distribution. Share. Share a link to this answer.
Read more >
ResizeObserver: it's like document.onresize for elements
ResizeObserver notifies you when an element's content rectangle changes size so that you can react accordingly.
Read more >
Done Resizing Event - CSS-Tricks
You can fake it by setting a timeout to run the code you want to run when resizing stops. Then clear that timeout...
Read more >
Disabling responsive reflow during desktop window resize
For example, the application is coded using CSS media queries (max-size) settings and when the browser window is resized within a target media ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found