TermKit annoyance and workaround

gkshenaut's Avatar

gkshenaut

10 Jul, 2018 11:53 PM

The outside-the-main-window Terminal module uses a framework called TermKit. Somewhere in the TermKit executable is the following command, which is passed to the shell as the first command it sees: « cd "%@"; clear ». What I assume %@ stands for is the folder the top level PF browser window is set to. I'm fine with that part. However, I am not fine with the “clear” part, because my shell “run commands” start-up script writes out various things that are deleted by it. Not only annoying, but time-consuming to track down. In my shell, ksh, I use this command below as a work-around in .kshrc. It is easy for a user to add a clear to their .*rc file, so I would suggest getting rid of the whole '; clear' part of that string. Here's the workaround:

if [[ "$TERMKIT_HOST_APP" == "Path Finder" ]] ; then
    alias clear='unalias clear'
fi
  1. Path Finder Support Team closed this discussion on 13 Jul, 2018 07:33 PM.

  2. Path Finder Support Team re-opened this discussion on 13 Jul, 2018 07:33 PM

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac