[Konsole-devel] Extending TerminalInterface

Robert Knight robertknight at gmail.com
Fri Mar 27 12:38:53 UTC 2009


Hi,

> a signal, CWD to make dolphinview synchronize url
> a function that checks if any process running in terminal

We have facilities for this in Linux and OpenSolaris.  These usually
provide 'good enough' information about what is going on in the
terminal but they are not and will not be completely reliable.

> * a function that checks if there is any inputted text that not pressed enter yet.
>  (this is a major bug for dolphin that can cause data loss. see bug: https://bugs.kde.org/show_bug.cgi?id=161637)

I agree about not wanting to execute 'cd' if there is already
something else in the shell.  Do not class this as a 'data loss' bug -
just say that arbitrary commands entered BY THE USER could be invoked
accidentally.  There are a large number of ways to 'accidentally'
invoke some command which will result in data loss from the shell, the
majority of which have nothing to do with the terminal emulator.

Actually implementing so that it works all of the time is of course
not possible because we don't know how the shell handles input or even
which characters on the screen are output from the shell and which
were entered by the user.  The best we can do is some heuristics that
would tell Dolphin that the user might be at a command prompt and they
may have a command on the line typed which is waiting to be executed.
We cannot pretend that it will always work.

Regards,
Robert.

2009/3/26 rahman duran <rahman.duran at gmail.com>:
>
>
> On Thu, Mar 26, 2009 at 9:16 PM, Eike Hein <hein at kde.org> wrote:
>>
>> Hi Rahman, Hi Robert,
>>
>> as seen in the thread on kde-core-devel, Rahman is
>> currently working on extending TerminalInterface
>> for KDE 4.3 by adding a subclass with an additional
>> method needed by Dolphin.
>>
>> It might be a good idea to use this opportunity to
>> do all the other extensions that have been proposed
>> in one go.
>>
>> Things I can currently think of:
>>
>> * A way to get the CWD out of a terminal, useful
>>  for session management in KPart-using apps (this
>>  can be a method, but a signal would be nice as
>>  well, which Dolphin could use for syncing its
>>  folder view with the CWD of the terminal if a
>>  change originates in the terminal).
>>
>> * The undocumented slots in the KPart Yakuake uses
>>  to trigger the Edit Profile and Manage Profiles
>>  dialogs.
>>
>> * Perhaps it would be nice to place the KPart's
>>  undocumented overrideShortcut() signal there.
>>
>> * A way to trigger the Konsole KPart's search bar,
>>  to enable search in KPart-using apps.
>>
>> Dunno how Konsole-specific we can make this, however,
>> since the interface is theoretically intended to be
>> generic. Perhaps we should just take the plunge and
>> call the extended version KonsoleInterface, though.
>>
>> It would be nice if we could somehow get together
>> on this, so we don't end up with yet another exten-
>> ded subclass later.
>>
>> I suggest we do the discussion to konsole-devel,
>> which I've also CC'd.
>>
>>
>> --
>> Regards,
>> Eike Hein, hein at kde.org
>
> Hi Eike,
>
> Dolphin needed funcitons are:
>
>    * a signal, CWD to make dolphinview synchronize url
>
>    * a function that checks if any process running in terminal
>
>    * a function that checks if there is any inputted text that not pressed
> enter yet. (this is a major bug for dolphin that can cause data loss. see
> bug: https://bugs.kde.org/show_bug.cgi?id=161637)
>
> As I'm running out of time (I only have 3 or 4 days, then I will not be able
> work on this), I started to work on these. I will post my patches, so you
> can combine your works with it.
>
> Best regards,
> --
> Rahman Duran
>
> Software Engineer
> Turkey
>
> How many apples fell on Newton's head before he took the hint!
>
>
> _______________________________________________
> konsole-devel mailing list
> konsole-devel at kde.org
> https://mail.kde.org/mailman/listinfo/konsole-devel
>
>



More information about the konsole-devel mailing list