| Summary: | Need DCOP function to check whether konsole has some command typed in | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Sasha Unspecified <sasha2048> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.6.6 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Actually "to provide a DCOP function to change current directory of session" is even better -- if it is possible, of course. Anyway, thanks (for Konsole, and for reading the wishes). > But when Konsole already has a command typed in
Konsole does not 'understand' in any sense the content that is displayed in the terminal. That is, it does not know whether there is a command currently entered in the shell or not. It does not even know whether the program running is a shell or something else.
Unfortunately I think you will have to find a different solution to your problem.
|
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.