[kde-linux] Clear screen on konsole

Erbureth Erbureth at seznam.cz
Sat May 2 21:22:37 UTC 2009


>Esben Mose Hansen escreveu:
>> On Thursday 30 April 2009 18:37:25 Alain M. wrote:
>>> Hi,
>>>
>>> if I issue clear om a konsole windows, it only issues a lot o new-lines,
>>> but if I roll up with <ctrl+PgUp> or the mouse, the old text is there
>>>
>>> How can I clear all the text in a konsole window???
>> 
>> 
>> You probably want the "clear scrollback&reset" command, ctrl-shift-x by 
>> default or from the scrollback menu.
>
>Yeees, that exaclty what I want, but I need to put it in a SCRIPT

>One of the reasosn of using Linux is to stop clicking at things :)
>This has to be done from within the script...

You can use DCOP interface, for example
$ clear
$ dcop konsole-[pid] session-[session#] clearHistory
works for me

Erbureth



More information about the kde-linux mailing list