Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Terminal prompt changes #68

Open
johnlauck opened this issue Mar 24, 2011 · 4 comments
Open

Terminal prompt changes #68

johnlauck opened this issue Mar 24, 2011 · 4 comments
Milestone

Comments

@johnlauck
Copy link

When I run terminitor start project all of my tabs/windows open correctly but the prompts are garbled with content like: "% \e]2;terminal\a" and "% \e]2;resque\a" etc.

I'm using zsh and I think it has to do with my terminal color setup. Anyone know how to fix this?

@savetheclocktower
Copy link

This happens because zsh sets the window/tab title in a different manner than bash. I've managed to hack this to get it working in my environment (OS X with oh-my-zsh, which gives me a simple title function to change the window title), but I'm trying to figure out how that can be abstracted in a way that assumes nothing about the environment.

@mcmire
Copy link
Contributor

mcmire commented Jul 26, 2011

@savetheclocktower You should post the code anyway so at least the fix is out there -- someone can take it from there.

@philippbosch
Copy link

@savetheclocktower Please post your fix – even if it's not universal yet.

@savetheclocktower
Copy link

Whoops, sorry; missed @mcmire's request way back when.

I got this working in zsh by replacing a line in lib/terminitor/abstract_core.rb:

#tab_content[:commands].insert(0, "PS1=\"$PS1\\[\\e]2;#{tab_name}\\a\\]\"") if tab_name
tab_content[:commands].insert(0, "title \"#{tab_name}\"") if tab_name

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants