Version: (using KDE KDE 3.5.0)
konsole misses dcop call to set the number of lines to be
kept in the history buffer.
The only call found related to history is:
> dcop konsole-11421 session-1 | grep -i Hi
Checked the dcop targets as well, as well as other strings
like lines and such. It would be handy if the history
buffer size could be changed by dcop.
Hmm, related to this; are dcop commands to read out the number of
lines in the buffer and the possibility to save the contents of buffer.
I can confirm that.
I'm also missing these dcop-calls
This feature is not implemented exactly in KDE 4.0, since there was a transition from D-Cop to D-Bus and the DBus interfaces have not been implemented.
However, what I presume is one of the use cases of this, changing the number of lines of history through a command-line script can be done using the konsoleprofile tool which emits a special escape sequence that konsole recognises.
Inside a Konsole tab will change the maximum lines of output recorded to <lines> in that tab.
Sounds good, but... how would the innocent konsole user know about
what konsoleprofile can change? konsoleprofile itself does not reveal
too much of the secrets either ;) :
> cat /usr/bin/konsoleprofile
/bin/echo -e "\033]50;$1\a"
> how would the innocent konsole user know about
> what konsoleprofile can change?
They wouldn't, until the documentation for Konsole/KDE 4 is written. At the moment the handbook is completely out of date.
Git commit 95b8d5551e9cf7dae76854b9f31d1374c5e3aee5 by Jekyll Wu.
Committed on 26/01/2012 at 12:04.
Pushed by jekyllwu into branch 'master'.
Add dbus method for setting and querying history size per session
M +28 -0 src/Session.cpp
M +17 -0 src/Session.h