[kde-linux] Clear screen on konsole

Erbureth Erbureth at seznam.cz
Mon May 4 12:55:22 UTC 2009


>Erbureth escreveu:
>> 
>> Session numbering should start from 1
>> 
>> Issusing clear followed by dcop command in the same session worked for me
>> (tried it from both Konsole and Yakuake).
>
>It is working now... Sorry, I must have missed something ;-)
>
>Do you know a trick to get my own PID? if I have 2 konsoles opened, I 
>don't want to clear the wrong one...
>
The trick is in getting a pid of a parent of your own bash process, which you can get by simple
ps command with custom formating.

ps -o ppid,fname|grep bash|sed -e s/[^0-9]//g|head -n1

Erbureth



More information about the kde-linux mailing list