[kde-linux] Clear screen on konsole

Alain M. alainm at pobox.com
Sun May 3 20:42:19 UTC 2009


more info...

Alain M. escreveu:
> Hi Erbureth,
> 
> Erbureth escreveu:
>> You can use DCOP interface, for example
>> $ clear
>> $ dcop konsole-[pid] session-[session#] clearHistory
>> works for me
> 
> How do I get the session# ?? Geting the pid is no problem within a script...
> 
> I tried
>    dcop konsole-21746 session-0 clearHistory
>    dcop konsole-21746 session-1 clearHistory
> assuming that the first session should be 0 or 1, and the pid I got from 
> ps. But nothing happened, both from inside the session or from another 
> konsole

I just noticed that if I issue from another konsole, the history does 
get cleared, but not the screen. But the command is not accepted from 
within the same konsole (same ambient and same script)

it is easy to clear the screen with clear, but how can I issue that 
command from the seme script??

thanks again
Alain




More information about the kde-linux mailing list