if you comment out these lines

    # get cursor position and add new line if we're not in first column
    exec < /dev/tty
    local OLDSTTY=$(stty -g)
    stty raw -echo min 0
    echo -en "\033[6n" > /dev/tty && read -sdR CURPOS
    stty $OLDSTTY
    [[ ${CURPOS##*;} -gt 1 ]] && echo "${color_error}.${color_error_off}"

does it fix it?


On Thu, Sep 06, 2012 at 10:28:26PM +0300, Anton Serdyuk wrote:
> This is the only I get when running tmux with my .bashrc loaded:
> 
> developer@dev01:~/workspace/tmux-1.6 $ ./tmux
> <cursor>
> 
> This is my .bashrc file's chunk which causes this behaviour:
> http://pastebin.com/nNE8ERXv . Sorry for a big dump, but I really dont
> understand which lines matters.
> 
> To provide more info I also compiled tmux-1.6 with --enable-debug,
> reproduced this behaviour and connected to tmux with GDB. There is
> backtraces:
> 
> Client process:
> 
> (gdb) bt
> #0  0x00007fcd499aaf03 in epoll_wait () from /lib/libc.so.6
> #1  0x00007fcd49e58446 in ?? () from /usr/lib/libevent-1.4.so.2
> #2  0x00007fcd49e4c097 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> #3  0x0000000000404d7b in client_main (argc=0, argv=0x7fffef0f9450, flags=1)
>     at client.c:196
> #4  0x000000000043af8a in main (argc=0, argv=0x7fffef0f9450) at tmux.c:406
> 
> Server process:
> 
> (gdb) bt
> #0  0x00007fcd499aaf03 in epoll_wait () from /lib/libc.so.6
> #1  0x00007fcd49e58446 in ?? () from /usr/lib/libevent-1.4.so.2
> #2  0x00007fcd49e4c097 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> #3  0x00000000004311a7 in server_loop () at server.c:210
> #4  0x000000000043118d in server_start () at server.c:201
> #5  0x0000000000404a84 in client_connect (path=0x684740
> "/tmp/tmux-1000/default", start_server=1) at client.c:80
> #6  0x0000000000404c46 in client_main (argc=0, argv=0x7fffef0f9450,
> flags=1) at client.c:152
> #7  0x000000000043af8a in main (argc=0, argv=0x7fffef0f9450) at tmux.c:406
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to