[Konsole-devel] [Bug 162402] New: Need DCOP function to check whether konsole has some command typed in

sasha1024 at safe-mail.net sasha1024 at safe-mail.net
Wed May 21 12:29:32 UTC 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162402         
           Summary: Need DCOP function to check whether konsole has some
                    command typed in
           Product: konsole
           Version: 1.6.6
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel kde org
        ReportedBy: sasha1024 safe-mail net


Version:           1.6.6 (using 3.5.9, Kubuntu (hardy) 4:3.5.9-0ubuntu7.1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.24-16-generic

I want the following DCOP function for every session (when "--script" option used):
bool hasCommandTypedIn().

For example:
"user host:~$ " -- returns false
"user host:~$ sed 's/^.+/(" -- returns true


Why do I need this?
Krusader sends "cd DIR" to Konsole each time panel is changed (that's useful). But when Konsole already has a command typed in, this leads to execution of malformed command: e.g. "sed 's/^.+/( cd /etc/httpd". If hasCommandTypedIn() function were available, then Krusader would be able to check whether something is typed in Konsole, and send "cd DIR" only if nothing is already typed.


Or, another possible solution:
to provide a DCOP function to change current directory of some session.



More information about the konsole-devel mailing list