Re: osdep_get_name() for Solaris

2009-10-13 Thread Nicholas Marriott
Hi

This looks good to me but I want someone to test it on Solaris 10 before I add
it (I don't care about Solaris <10).

My usual Solaris tester seems to be asleep right now but I'll see if I can
rustle someone up later.

Thanks


On Mon, Oct 12, 2009 at 06:21:44PM -0700, Todd Carson wrote:
> I've attached my version of an osdep_get_name() function to get the active
> function name on Solaris.
> 
> I'm only using it on OpenSolaris snv_124 x86 so far; hopefully it will
> work on Solaris 10 as well, given that all of the interfaces it uses are
> standard.
> 
> tcgetpgrp() returns ENOTTY if it's called on a tty other than the caller's
> controlling tty, but issuing the TIOCGPGRP ioctl directly works.
> 
> TIOCGPGRP works only on the slave end of a pty pair, but since
> tmux provides only the master to osdep_get_name(), and the tty argument is
> an empty string (?), I'm calling ptsname() to get the slave and open it.
> This should be improved somehow, but I'm not sure how right now. Either
> tmux could keep a file descriptor to the slave around, or perhaps there's
> some STREAMS trick that would make it work on the master end; I don't know.


> --
> Come build with us! The BlackBerry(R) 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/devconference

> ___
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users


--
Come build with us! The BlackBerry(R) 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/devconference
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Comment on use of J/K for scroll-up/down

2009-10-13 Thread Iain Morgan
Hi,

I noticed the addition of scroll-up/scroll-down to copy mode in recent
CVS. The selection of 'J' and 'K' for the vi-style bindings for these
functions seems a bit strange to me; particularly since 'J' is used to
join lines in vi.

A choice that would be more consistent with true vi behaviour would
appear to ^E (scroll-down) and ^Y (scroll-up). I could also see an
argument for ^N and ^P, but those are used to move to the next/previous
lines rather than scrolling.

Of course, these key bindings can be adjusted in ~/.tmux.conf as
desired, but I felt the need to point out that J/K may not be the best
choice for the defaults.

Regards.

-- 
Iain Morgan

--
Come build with us! The BlackBerry(R) 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/devconference
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users