Bug 143227 - Konsole doesn't seem to support xterm's style titeInhibit option
Summary: Konsole doesn't seem to support xterm's style titeInhibit option
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 1.6.5
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 18:18 UTC by Jakub Turski
Modified: 2021-04-03 11:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Turski 2007-03-19 18:18:12 UTC
Version:           1.6.5 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3.1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17-11-generic

Konsole doesn't allow user to inhibit ti/te terminfo actions.

For quick and visual description of a problem (which appears also in gnome-terminal) visit this url:
http://fixlog.blogspot.com/2006/09/stop-gnome-terminal-screen-clear.html

For detailed description:
ti/te are capabilities of terminal that allow application to switch to 'alternate screen'. With this in effect, "previous" view of the terminal window is restored upon exiting less, man, vim, and many other programs. Xterm allowed user to disable this behaviour. Without this 'alternate screen', one was able to quickly view the file, scroll to some arbitrary view, quit less, and input commands using information from output of less command. Without possibility of inhibiting ti/te capabilities, terminal becomes a bit crippled for some users.

I'd like konsole devs to reconsider adding such option as 'titeInhibit'.

TIA,

KT.
Comment 1 Robert Knight 2007-03-20 14:47:48 UTC
If you use the "Linux Console" session type, man vim and less will exhibit the behaviour you after.

To start a new Linux Console session, go to Session -> New Linux Console

If you want to modify the other sessions to behave like this, go to Settings -> Configure Konsole -> Session tab.  Select the session type you are interested in ( "Shell" is the default ) and in the Properties section, set the "TERM" value to "linux" and click Apply.

You can get the same effect in most terminal programs by setting the TERM environment variable to "linux" and starting a new shell:

eg in gnome-terminal:

export TERM=linux
bash
man <some program>

An unfortunate side-effect is that the mouse is not enabled in Vim when TERM=linux.  
Comment 2 Jakub Turski 2007-03-20 15:31:45 UTC
On 20 Mar 2007 13:47:49 -0000, Robert Knight <robertknight@gmail.com> wrote:
> If you use the "Linux Console" session type, man vim
> and less will exhibit the behaviour you after.


Yup, that's one way of solving it :) But as you said, it removes mouse
support... so it would be best to have an option for it in Konsole.

For the time being, I solved my problem by recompiling 'xterm'
terminal description.

KT.
Comment 3 Göran Uddeborg 2021-04-03 06:37:56 UTC
I'm still missing this feature in Konsole 20.04.1. Unfortunately, the workaround from comment 1 does not seem to be available any more.
Comment 4 Göran Uddeborg 2021-04-03 07:18:12 UTC
To clarify, I can't find any "Sessions" tab in the settings. Using "linux" as "TERM" still works, but with it's drawbacks.
Comment 5 Ahmad Samir 2021-04-03 11:32:52 UTC
More workarounds:
With `less` you can use -X:
export LESS=$LESS-X
see the man page for details.

For vim:
http://vimdoc.sourceforge.net/htmldoc/term.html
https://www.shallowsky.com/linux/noaltscreen.html