I've attached a new patch.

TTY_NAME_MAX is already defined in compat.h, so I didn't need to add
it.  Gcc didn't define _WIN32, so I used __CYGWIN__ instead.

Regarding this:

> You should probably fail early if isatty is false (before filling in ttyname 
> into the identify struct).

I believe isatty is checked on the server side.  I have to fill out
ttyname before that on the client side or the client won't be able to
get a valid file descriptor to the server's isatty call.

Attachment: tmux-cygwin.patch
Description: Binary data

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to