finalterm icon indicating copy to clipboard operation
finalterm copied to clipboard

Some programs assume the text does not reflow on resize

Open maandree opened this issue 11 years ago • 5 comments

Since some programs assume that the text does not reflow when the terminal shrinks, it could be useful with an escape sequence that disabled it.

Additionally if such a escape sequence is used, it could also allow outside the terminals width limits to only appear if the terminal gets wider. If this is implemented it is important to take escape sequences and zero width characters (such as control characters and combining diacritical marks) into account when determining how wide the text is.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

maandree avatar Aug 10 '13 18:08 maandree

Interesting... could you name a program which makes that assumption?

p-e-w avatar Aug 11 '13 06:08 p-e-w

Any graphical program that do not check for resize. One example, that could use the latter part: ponysay

maandree avatar Aug 11 '13 11:08 maandree

I see what you mean now... observe, though, that programs like ponysay will have their output wrapped by existing terminals if the terminal size is already smaller than the program's output width when the program is run. Other terminals will therefore distort the output as well, without the possibility to reflow to the expected output form. I therefore don't think this is actually a problem.

I also don't think getting a custom escape sequence included in every such program just for Final Term is a realistic option.

p-e-w avatar Aug 11 '13 12:08 p-e-w

Actually, ponysay truncates the output if it is wider then the terminal so that it is not wrapped and distorted.

Custom escape sequencies for controlling final term's special functions could be useful. If you develop a program you can use them when final term is used, and if a program needs it to run well in final term that it can be patch by someone how uses final term.

maandree avatar Aug 11 '13 14:08 maandree

Apologies, I was not aware of this. In this case, such a feature might indeed be useful. I'll keep it in mind!

p-e-w avatar Aug 13 '13 16:08 p-e-w