With minimal changes to the source to tty-term.c and new Makefile I am able to 
compile both tmux 0.9 and 1.0
with SUn Studio 12.1, Sun's make and the native curses implimentation.

This gives me a funtional tmux binary with one problem, the split-window 
function, crashes the tmux server, without producing 
a core file clinet just displays "server lost". This is consistent on 32/64bit 
sparc and x86.
Also consistent is split-window does work if I am viewing key bindings before 
executing the split windows, so:

tmux
ctrl-b, "

kills the tmux server, but

tmux
ctrl-b,?
ctrl-b,"
ctrl-b,o
q

gives me a window split into two panes with a shell promt in each.
This is consistent accross sparc/x86 -m32 -m64 and tmux 0.0/1.0.

My code change is simply to pad argumets with 0s as suggested for portability 
in ncurses man page at line 420 and 426 
of tty-term.c   

{
        return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, 
0, 0, 0));
}

const char *
tty_term_string2(struct tty_term *term, enum tty_code_code code, int a, int b)
{
        return (tparm((char *) tty_term_string(term, code), a, b, 0, 0, 0, 0, 
0, 0, 0));
}


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to