fix title setting bug in xterm and urxvt #1341

Merged
merged 1 commit into from Dec 2, 2012

Conversation

Projects
None yet
2 participants
@markusscherer
Contributor

markusscherer commented Oct 3, 2012

Before this patch, commands containing %-signs set the title wrong
(urxvt and xterm) [1] and produce strange output in urxvt [2].

test for bug 1:

> sleep 10 && echo %

sets title to "sleep 10 && echo %<<"

> sleep 10 && echo %f

doesn't change the title at all

test for bug 2 (only urxvt):

> echo %f
39m%f
fix title setting bug in xterm and urxvt
Before this patch, commands containing %-signs set the title wrong
(urxvt and xterm) [1] and produce strange output in urxvt [2].

test for bug 1:
> sleep 10 && echo %
sets title to "sleep 10 && echo %<<"
> sleep 10 && echo %f
doesn't change the title at all

test for bug 2 (only urxvt):
> echo %f
39m%f
^^^^^----- output

robbyrussell added a commit that referenced this pull request Dec 2, 2012

Merge pull request #1341 from markusscherer/master
fix title setting bug in xterm and urxvt

@robbyrussell robbyrussell merged commit b2b77be into robbyrussell:master Dec 2, 2012

w31 pushed a commit to w31/oh-my-zsh that referenced this pull request Apr 30, 2014

Merge pull request #1341 from markusscherer/master
fix title setting bug in xterm and urxvt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment