Resize locking #19551
Replies: 10 comments 17 replies
-
You may be happy to learn that the alternate screen buffer (which is recommended for use by applications that want to control the entire screen buffer!) does not wrap in pretty much any terminal emulator that supports wrapping. It does, however, suppress scrollback. That may be a deal breaker!
I wish we had this documented in a nice and easily-consumable format. We have a source generator that tries to divine what's supported based on some code comments, but there is nothing definitive and nobody has taken the time to profile it. Yet. On a lark, I ran that tool to see what it produced. I can already tell you that it's wrong (it didn't detect DECOM, LNM, DSR (CPR), many of the ID functions, etc. Still perhaps academically interesting. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@DHowett - The alternate buffer is promising, the wrap has gone but it erases text so that when we widen it again the text is lost.
narrow it:
rewiden it
Conceivably we could redraw the fields but that means running a thread/timer to detect window with changes, not impossible but again a real drag. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, I was viewing this in an outdated tab and didn't see the lengthy discussion. Because of this I opened #19552 to discuss this as a feature suggestion. |
Beta Was this translation helpful? Give feedback.
-
|
I just discovered that we can disable line wrap easily by using an escape sequence! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is already implemented in vtm and can be used directly in Windows Terminal.
(list of the vtm's private control sequences) You can play around with this functionality and decide whether it's worth it.
Supporting unwrapped lines of text in the terminal is much more difficult than wrapping lines, as the entire functionality of the terminal and terminal applications is oriented toward wrapping lines, making it nearly impossible to make this compatible with the terminal world. |
Beta Was this translation helpful? Give feedback.
-
|
Is it recommended these days to not use stuff like |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.















Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to request that the programmatic ability to suspend terminal window resizing be considered. Currently if an app draws something on the screen, that layout is destroyed and can become unreadable if the window size gets adjusted.
Line wrapping seems to be forced upon us, so when a window gets narrowed stuff that was laid out on the right wraps horribly.
There's no way to programmatically "undraw" and redraw stuff either to even attempt to compensate (and that compensation relies on an ability to detect resize which only seems possible some kind of timer polling and looking for height/width changes)
Perhaps new escape codes could be supported
lock-resizeor perhapslock-widthandunlock-widthand so on, so an app could set that and then restore it when it exits so the user who wants to resize can, except when that app is running.I'm replicating a command line interface I used to use on some minicomputers in times gone by, truly very helpful. In that setup though we used true dumb terminals so resizing the dimensions never came up (width was was often 80, but could be 132 but this was physical terminal fonts size preference not something somebody would do very often).
Back then dumb terminals often had their own specific escape sequences for whichever manufacturer made them, on the minis I worked on we had an abstraction (text file) that mapped system (ANSI standard) generic codes to terminal specific codes, so a VT100 might have a different escape sequence for position-cursor-x-y to say a Televideo V102 (actually a Televideo 955 with special memory option) or V103 and so on.
I don't care what the width/height actually are, I just need to prevent them changing while app is executing.
As a side question where can I find the definitive complete list of all supported escape sequences for the Terminal app?
Beta Was this translation helpful? Give feedback.
All reactions