Hmm actually this is weird because you say it only happens with
PROMPT_COMMAND set to change the title. My guess is that something is
funny with the way iTerm2 etc set the title and changing TERM is a red
herring.
Could you try this and see if it makes any difference:
diff --git a/tty.c b/tty.c
index 9f414e1..be5bec9 100644
--- a/tty.c
+++ b/tty.c
@@ -437,6 +437,12 @@ tty_set_title(struct tty *tty, const char *title)
tty_putcode(tty, TTYC_TSL);
tty_puts(tty, title);
tty_putcode(tty, TTYC_FSL);
+
+ tty->cx = tty->cy = UINT_MAX;
+ tty->rupper = tty->rlower = UINT_MAX;
+
+ tty_reset(tty);
+ tty_cursor(tty, 0, 0);
}
void
On Sun, Dec 09, 2012 at 10:18:39AM -0800, Adrian Luff wrote:
> It occurs once in a great while with xterm-color.
> -Adrian
> On Nov 21, 2012, at 4:18 PM, Adrian Luff <[1][email protected]> wrote:
>
> tmux should catch the escape sequence consistently but I seem to have
> found a race condition case where it doesn't. Adding...
>
> export PROMPT_COMMAND="${PROMPT_COMMAND}; printf '\e]2;%s\e\\'
> \"${HOSTNAME/.*}\""
>
> to the bash shell while inside tmux causes the status line to be printed
> on the current output line occasionally (instead of below it). This is
> easily reproduced by holding ENTER down at a shell prompt.
> Simply removing the PROMPT_COMMAND fixes the issue. The complexity of
> the status line seems to be a factor as the basic tmux configuration
> doesn't exhibit this. My status line is configured with a couple of
> shell scripts. I suspect a race condition between the escape sequence
> handling and the return values from the status line scripts.
> .tmux.conf status line excerpt...
>
> set-option -g status-left
>
> "#[attr=normal]#[fg=colour5]#S#[fg=colour10]@#[fg=colour2]#h#[fg=colour10]***#[fg=colour4]#32T#
> "
> set-option -g status-right "
>
> #[fg=colour6]#(~/bin/tmux-mail)#[fg=colour10]***#[fg=colour4]#(~/bin/tmux-wifi)#[fg=colour10]***#[fg=colour2]#(~/bin/tmux-battery)#[fg=colour10]***#[fg=colour3]%H:%M
> %a %d-%b %Z"
>
> -Adrian
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
>
> [2]http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________
> tmux-users mailing list
> [3][email protected]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
>
> References
>
> Visible links
> 1. mailto:[email protected]
> 2.
> http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________
> 3. mailto:[email protected]
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> tmux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users