[Konsole-devel] Odd konsole behavior

Mun Johl Mun.Johl at Emulex.Com
Fri Apr 17 23:44:52 UTC 2009


Hi Robert,

Please see my comments below.

On Fri, Apr 17, 2009 at 02:45 AM PDT, Robert Knight wrote:
RK> 
RK> 
RK> > However, once the listing terminates, there is no text of the 'ls'
RK> > command on the terminal.  It all gets cleared out
RK> 
RK> Less output is displayed on the 'alternate screen' by default and when
RK> less closes, the terminal switches back to the 'primary screen'.  This
RK> behavior in less depends on the value of the environment variable TERM
RK> 
RK> In Konsole it is set to 'xterm' by default, resulting in the alternate
RK> screen being used for less, vim etc.  If you set TERM to 'linux' I
RK> think you'll get the behavior you expect.

Excellent, that did the trick!  Thanks very much.

Best regards,

-- 
Mun


RK> I'm not sure how environment variables are set in ksh but in bash this would be:
RK> 
RK> export TERM=linux
RK> 
RK> There is an option to change the default value for TERM in Settings ->
RK> Configure Konsole from the menu bar.  I'm not sure which tab this
RK> setting is on.  In KDE 4 (Konsole 2.x) you can change this by going to
RK> Settings -> Edit Current Profile and on the 'General' tab click the
RK> 'Edit...' button next to the 'Environment' label.
RK> 
RK> Regards,
RK> Robert.
RK> 
RK> 2009/4/16 Mun Johl <Mun.Johl at emulex.com>:
RK> > Hi,
RK> >
RK> > I'm new to KDE and have noticed something odd with Konsole v1.6.4 .  I
RK> > have 'ls' aliased to 'ls|less' in ksh and when I type 'ls' the output
RK> > looks as expected while 'less' has not reached the "end of file".
RK> > However, once the listing terminates, there is no text of the 'ls'
RK> > command on the terminal.  It all gets cleared out.  Any previous text on
RK> > the terminal window is still there, but not the output of 'ls|less'.
RK> >
RK> > Is there a configuration option of some sort to control this behavior?
RK> >
RK> > Thanks very much in advance.
RK> >
RK> > --
RK> > Mun
RK> > _______________________________________________
RK> > konsole-devel mailing list
RK> > konsole-devel at kde.org
RK> > https://mail.kde.org/mailman/listinfo/konsole-devel
RK> >




More information about the konsole-devel mailing list