fix title setting bug in xterm and urxvt #1341

Merged
merged 1 commit into from Dec 2, 2012
Commits on Oct 3, 2012
  1. @markusscherer

    fix title setting bug in xterm and urxvt

    markusscherer committed 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
    ^^^^^----- output