Re: tmux on Cygwin

2013-09-06 Thread J Raynor
Mark was starting cygwin using the cygwin.bat script. This results in a terminal with /dev/cons0 (or cons1, cons2, etc) instead of /dev/ptyX as the tty. From the cygwin documentation: > Starting with Cygwin 1.7.10, Console sessions are numbered from /dev/cons0 > upwards. > Console device names a

Fwd: tmux on Cygwin

2013-09-05 Thread Mark Volkmann
On Wed, Sep 4, 2013 at 5:54 PM, J Raynor wrote: > Most of these just look like warnings. But for this: > > > configure.ac:111: error: possibly undefined macro: AC_SEARCH_LIBS > > If this token and others are legitimate, please use > m4_pattern_allow. > > See the Autoconf documentatio

Re: tmux on Cygwin

2013-09-05 Thread J Raynor
If you run it normally, does it work now? -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get a

Re: tmux on Cygwin

2013-09-04 Thread J Raynor
Most of these just look like warnings. But for this: > configure.ac:111: error: possibly undefined macro: AC_SEARCH_LIBS > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. I believe you need to have pkg-config installed. You ca

Re: tmux on Cygwin

2013-09-04 Thread Mark Volkmann
I get errors from ./autogen.sh. Here is the output: $ ./autogen.sh configure.ac:17: installing 'etc/compile' configure.ac:9: installing 'etc/config.guess' configure.ac:9: installing 'etc/config.sub' configure.ac:7: installing 'etc/install-sh' configure.ac:7: installing 'etc/missing' Makefile.am:19

Re: tmux on Cygwin

2013-09-04 Thread Saad Malik
Mark, Try building from the latest trunk: *tmux* $ git clone git://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code $ cd tmux-tmux-code $ ./autogen.sh $ CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr $ make && make install However, before trying to build/install the latest tmux I would

Re: tmux on Cygwin

2013-09-04 Thread Mark Volkmann
On Wed, Sep 4, 2013 at 11:24 AM, Mark Volkmann wrote: > On Wed, Sep 4, 2013 at 12:45 AM, Saad Malik wrote: > >> Mark, >> Here are the instructions for compiling tmux in cygwin: >> >> *libevent* >> $ cd libevent-2.0.21-stable >> $ make clean >> $ ./configure --prefix=/usr >> $ make && make install

Re: tmux on Cygwin

2013-09-04 Thread Mark Volkmann
On Wed, Sep 4, 2013 at 12:45 AM, Saad Malik wrote: > Mark, > Here are the instructions for compiling tmux in cygwin: > > *libevent* > $ cd libevent-2.0.21-stable > $ make clean > $ ./configure --prefix=/usr > $ make && make install > > *tmux* > > $ cd tmux-tmux-code > $ make clean > $ CFLAGS="-I/

Re: tmux on Cygwin

2013-09-03 Thread Nicholas Marriott
You are probably either missing /usr/include/ncurses.h or /usr/include is not part of the gcc system include path. Original message From: Saad Malik Date: 04/09/2013 06:45 (GMT+00:00) To: J Raynor Cc: tmux-users@lists.sourceforge.net,Thomas Adam Subject: Re: tmux on

Re: tmux on Cygwin

2013-09-03 Thread Saad Malik
Mark, Here are the instructions for compiling tmux in cygwin: *libevent* $ cd libevent-2.0.21-stable $ make clean $ ./configure --prefix=/usr $ make && make install *tmux* $ cd tmux-tmux-code $ make clean $ CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr $ make && make install Let me

Re: tmux on Cygwin

2013-09-03 Thread J Raynor
> Note that even when I release 1.9, which will contain support on > Cygwin, I won't be providing Windows binaries of tmux. That's > somebody else's problem. Are you interested in having a cygwin package for tmux if someone else either builds the package, or supplies a small script which would ta

Re: tmux on Cygwin

2013-09-03 Thread J Raynor
Could you try pulling the latest from git and compiling it? Once compiled, if it still doesn't work, what happens if you do: tmux < /dev/null -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Disc

tmux on Cygwin

2013-09-03 Thread Mark Volkmann
Has there been any more progress on the process for installing this? I know some people have it working, but I wasn't able to get it to work. I suspect many more people would use tmux if it could be used on Windows machines. I use it all the time on my Mac and would love to be able to use it at cl

Re: tmux on Cygwin

2013-09-03 Thread L. V. Lammert
On Tue, 3 Sep 2013, Patrick Shanahan wrote: > I maintain a tmux session on my server and carry a stick w/cygwin so I can > remotely access the tmux session on a windoz box. > We use Cygwin all the time, .. however IMHO it really isn't 'complete' enough for a full-blown shell dev session; use PuTTY

Re: tmux on Cygwin

2013-09-03 Thread Saad Malik
Hi Mark, I'm sorry we couldn't get Tmux running on your Cygwin environment. I hope you get it sorted out soon! I've been running two long-running tmux sessions on my windows desktop for over a month without ANY crashes or problems. On Tue, Sep 3, 2013 at 9:10 AM, L. V. Lammert wrote: > On Tue,

Re: tmux on Cygwin

2013-09-03 Thread Thomas Adam
Hi, On 3 September 2013 16:48, Mark Volkmann wrote: > Has there been any more progress on the process for installing this? I know > some people have it working, but I wasn't able to get it to work. Well, there's preliminary support for this in Git, but I've not heard of any problems for a while.

Re: tmux on Cygwin

2013-09-03 Thread Patrick Shanahan
* Mark Volkmann [09-03-13 11:50]: > Has there been any more progress on the process for installing this? I know > some people have it working, but I wasn't able to get it to work. > > I suspect many more people would use tmux if it could be used on Windows > machines. I use it all the time on my

Re: patch for tmux on cygwin

2013-07-15 Thread Thomas Adam
On 15 July 2013 22:07, Saad Malik wrote: > Mark, I don't know--maybe Raynor or Nicholas can chime in. > > Try running tmux with 'strace tmux'. strace -f -o /somewhere/tmux.out tmux and send through the log file, please. -- Thomas Adam ---

Re: patch for tmux on cygwin

2013-07-15 Thread Saad Malik
Jul 12, 2013 at 7:51 PM, Saad Malik wrote: >>>>> >>>>>> Mark, >>>>>> I've added the libevent libraries to the binary. Please make sure >>>>>> that you have the ncurses dependency also installed (via cygwin >>>&g

Re: patch for tmux on cygwin

2013-07-15 Thread Mark Volkmann
ake sure that >>>>> you have the ncurses dependency also installed (via cygwin setup.exe). >>>>> >>>>> Updated package: >>>>> https://docs.google.com/file/d/0B7oqPEemRewhX2hXRzNrYS1EUms >>>>> >>>>> saamalik@SAA

Re: patch for tmux on cygwin

2013-07-15 Thread Saad Malik
wrote: >>>>> >>>>>> Thanks for uploading that! When I run it I get this: >>>>>> >>>>>> /usr/bin/tmux.exe: error while loading shared libraries: >>>>>> cygevent-2-0-5.dll: can >>>>>> not open sh

Re: patch for tmux on cygwin

2013-07-15 Thread Mark Volkmann
n-13-07-12.tar.gz >>> 26b5381a6ca24d166120c98f70a27c12 *tmux-cygwin-13-07-12.tar.gz >>> >>> saamalik@SAAMALIK-WS02 ~ >>> $ tar -tzf tmux-cygwin-13-07-12.tar.gz >>> usr/bin/tmux.exe >>> usr/share/man/man1/tmux.1 >>> usr/bin/cygevent_core

Re: patch for tmux on cygwin

2013-07-12 Thread Saad Malik
/man1/tmux.1 >> usr/bin/cygevent_core-2-0-5.dll >> usr/bin/cygevent_extra-2-0-5.dll >> usr/bin/cygevent_pthreads-2-0-5.dll >> usr/bin/cygevent-2-0-5.dll >> >> If this doesn't work, I'll write a simple guide on how to compile both >> libevent and tmux on

Re: patch for tmux on cygwin

2013-07-12 Thread Mark Volkmann
gevent-2-0-5.dll > > If this doesn't work, I'll write a simple guide on how to compile both > libevent and tmux on cygwin. > > -Saad > > > > On Fri, Jul 12, 2013 at 5:30 PM, Saad Malik wrote: > >> My apologies. I forgot to include the libevent depende

Re: patch for tmux on cygwin

2013-07-12 Thread Saad Malik
l If this doesn't work, I'll write a simple guide on how to compile both libevent and tmux on cygwin. -Saad On Fri, Jul 12, 2013 at 5:30 PM, Saad Malik wrote: > My apologies. I forgot to include the libevent dependency for tmux. Give > me a couple minutes and I'll uploa

Re: patch for tmux on cygwin

2013-07-12 Thread Saad Malik
usr/bin/tmux.exe >> usr/share/man/man1/tmux.1 >> >> -Saad >> >> >> On Fri, Jul 12, 2013 at 2:56 PM, Patrick Shanahan wrote: >> >>> * Saad Malik [07-12-13 17:43]: >>> > Mark, I've been using tmux on Cygwin for a whole day--all the fea

Re: patch for tmux on cygwin

2013-07-12 Thread Mark Volkmann
2.tar.gz > usr/bin/tmux.exe > usr/share/man/man1/tmux.1 > > -Saad > > > On Fri, Jul 12, 2013 at 2:56 PM, Patrick Shanahan wrote: > >> * Saad Malik [07-12-13 17:43]: >> > Mark, I've been using tmux on Cygwin for a whole day--all the features >> > wo

Re: patch for tmux on cygwin

2013-07-12 Thread Saad Malik
.1 -Saad On Fri, Jul 12, 2013 at 2:56 PM, Patrick Shanahan wrote: > * Saad Malik [07-12-13 17:43]: > > Mark, I've been using tmux on Cygwin for a whole day--all the features > > work, it's stable, and fast! You have to compile using the cygwin gcc > > toolkit--if

Re: patch for tmux on cygwin

2013-07-12 Thread Patrick Shanahan
* Saad Malik [07-12-13 17:43]: > Mark, I've been using tmux on Cygwin for a whole day--all the features > work, it's stable, and fast! You have to compile using the cygwin gcc > toolkit--if you want I can upload a binary for you. providing a binary would be very nice of yo

Re: patch for tmux on cygwin

2013-07-12 Thread Mark Volkmann
An uploaded binary would be great! On Fri, Jul 12, 2013 at 4:41 PM, Saad Malik wrote: > Mark, I've been using tmux on Cygwin for a whole day--all the features > work, it's stable, and fast! You have to compile using the cygwin gcc > toolkit--if you want I can upload a binar

Re: patch for tmux on cygwin

2013-07-12 Thread Saad Malik
Mark, I've been using tmux on Cygwin for a whole day--all the features work, it's stable, and fast! You have to compile using the cygwin gcc toolkit--if you want I can upload a binary for you. On Fri, Jul 12, 2013 at 2:32 PM, Mark Volkmann wrote: > Is tmux on cygwin considered rea

Re: patch for tmux on cygwin

2013-07-12 Thread Mark Volkmann
Is tmux on cygwin considered ready to use now? If so, are there notes on the installation steps somewhere? On Fri, Jul 12, 2013 at 4:26 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > I've applied this now, thanks for your work! > > > On Wed, Jul 10, 2013

Re: patch for tmux on cygwin

2013-07-12 Thread Nicholas Marriott
I've applied this now, thanks for your work! On Wed, Jul 10, 2013 at 03:49:19PM -0500, J Raynor wrote: > > Are you sure ECHOPRT 0x20 is right on Cygwin? Maybe it should be 0 to > > leave it out if it isn't supported? > > I'm not the least bit sure, so I'll defer to you. > > I tested your patch

Re: patch for tmux on cygwin

2013-07-10 Thread Mark Volkmann
Please do submit this as a cygwin package! I am SO looking forward to using this! On Wed, Jul 10, 2013 at 4:31 PM, Saad Malik wrote: > J Raynor/Nicholas! Awesome job, and thank you! The latest patch by > Nicholas applied cleanly, and I'm running tmux in cygwin! Woot =) > > 1. As J Raynor mentio

Re: patch for tmux on cygwin

2013-07-10 Thread Saad Malik
J Raynor/Nicholas! Awesome job, and thank you! The latest patch by Nicholas applied cleanly, and I'm running tmux in cygwin! Woot =) 1. As J Raynor mentioned, the CFLAGS is required for ncurses header to be found: CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr. Can this be done automati

Re: patch for tmux on cygwin

2013-07-10 Thread J Raynor
> Are you sure ECHOPRT 0x20 is right on Cygwin? Maybe it should be 0 to > leave it out if it isn't supported? I'm not the least bit sure, so I'll defer to you. I tested your patch and it worked fine. -- See everything fr

Re: patch for tmux on cygwin

2013-07-05 Thread Nicholas Marriott
Are you sure ECHOPRT 0x20 is right on Cygwin? Maybe it should be 0 to leave it out if it isn't supported? Also some other minor tweaks. diff --git a/client.c b/client.c index 691ace3..b9e3b30 100644 --- a/client.c +++ b/client.c @@ -328,8 +328,13 @@ client_send_identify(int flags) str

Re: patch for tmux on cygwin

2013-06-02 Thread J Raynor
I've attached a new patch that puts the msg_identify_data change in an ifdef. Also, in compat.h, I moved the "undef b64_ntop" for cygwin into the "ifndef HAVE_B64_NTOP" check so that if cygwin ever gets a working b64_ntop tmux will continue to compile. If I do "tmux new tmux-cygwin.patch Descri

Re: patch for tmux on cygwin

2013-05-31 Thread Nicholas Marriott
Thanks. We can't change msg_identify_data like this without bumping the protocol version, so that bit needs to go under #ifdef too. What happens if you do "tmux new I've attached an updated patch. > > You had wanted the change to resolv.h to go into compat.h, but I > didn't see how to do that s

Re: patch for tmux on cygwin

2013-05-20 Thread J Raynor
I've attached an updated patch. You had wanted the change to resolv.h to go into compat.h, but I didn't see how to do that since I needed to comment it out. But I figured out that I just needed to undef something. I put that in compat.h, so now tty.c isn't changed at all. tmux-cygwin.patch Des

Re: patch for tmux on cygwin

2013-05-18 Thread J Raynor
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 isa

Re: patch for tmux on cygwin

2013-05-18 Thread Nicholas Marriott
On Sat, May 18, 2013 at 03:35:44AM -0500, J Raynor wrote: > The patch I had sent in was meant for testing, and to see if there was > any interest, so I wasn't putting any effort into getting it into > shape for acceptance. Now that that might be possible, I'll get it > cleaned up, taking into acco

Re: patch for tmux on cygwin

2013-05-18 Thread J Raynor
The patch I had sent in was meant for testing, and to see if there was any interest, so I wasn't putting any effort into getting it into shape for acceptance. Now that that might be possible, I'll get it cleaned up, taking into account your notes. > I guess this obviously won't let other things

Re: patch for tmux on cygwin

2013-05-18 Thread Nicholas Marriott
Thanks - this looks much better, we can probably do something with this. I guess this obviously won't let other things that need file descriptor passing work like "loadb -" or "saveb -". A few things: Why do you need to dup stdin in the client? Can you replace cyg_get_identify_fd by just puttin

Re: patch for tmux on cygwin

2013-05-17 Thread J Raynor
I've found a better way to get tmux working on cygwin. There's now no need to modify tty.c to have separate read and write file descriptors. I've attached the new patch. On Wed, May 15, 2013 at 12:59 AM, J Raynor wrote: > Below is a patch for getting tmux running on cygwin. I only have acce

Re: patch for tmux on cygwin

2013-05-14 Thread J Raynor
I've added the patch as an attachment since it seems it was garbled the first time. On Wed, May 15, 2013 at 1:32 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Hi > > Your mailer has mangled the patch, can you attach it? > > > On Wed, May 15, 2013 at 12:59:56AM -0500, J Raynor wro

Re: patch for tmux on cygwin

2013-05-14 Thread Nicholas Marriott
Hi Your mailer has mangled the patch, can you attach it? On Wed, May 15, 2013 at 12:59:56AM -0500, J Raynor wrote: >Below is a patch for getting tmux running on cygwin.* I only have access >to a 32 bit XP system, so I don't know if it works on other versions of >Windows.* Cygwin does

patch for tmux on cygwin

2013-05-14 Thread J Raynor
Below is a patch for getting tmux running on cygwin. I only have access to a 32 bit XP system, so I don't know if it works on other versions of Windows. Cygwin doesn't provide a libevent package, so you'll first have to install that. I used libevent-2.0.21-stable. Also, for tmux I had to specif