Closed cpendery closed 1 month ago
Yes thats one of the quirk modes implemented in xterm.js - the last line of the normal (scrollback) buffer does not reflow automatically. The reason for this comes from how many shell versions treat their prompt line - on a resize event (SIGWINCH signal) they typically wipe their prompt and rewrite it with the new col size. Effectively this means, that the shell process does the reflow for the prompt line itself.
@Tyriar
We already had several discussions/requests regarding this (cant find them atm). To me it looks wrong to share reflow responsibility as it is currently done for many reasons (up to causing race conditions), but we cannot simply tell shells not to do it anymore. Thus I wonder if we should make this configurable via an option, and maybe also reserve a boolean under DECSET for reflow
. This way shells can query TEs for reflow capability and dont have to do it on their own anymore. And hopefully they would adopt to that over time.
I don't think xterm.js will ever know how to wrap likes properly as there can be line continuations, right prompts, etc. Are there any cases where someone would want this disabled? Right now we reflow all lines that are very unlikely to be touched unless old versions of conpty are being used.
Ah right - right prompts. :see_no_evil:
Unless I'm missing something I think we should close this by design
Details
30.0.2
Steps to reproduce
Public
should wrap to the next line