Re: Xterm window title enhancement to hostname:/path II.

2005-03-23 Thread Pavel Vávra
Hi Jindrich, now 2nd part of this patch is done so xterminal window can display [EMAIL PROTECTED]:/path. I think it will be better implement both parts of this patch just once. My code is now a bit cleaner but I am testing now this feature so patch is not prepared just now. I'll send it

Re: Xterm window title enhancement to hostname:/path II.

2005-03-23 Thread Pavel Vávra
Well, I look to your patch and I decide that it has no sense to send my patch. this one is really nice and I cannot write it better. Just an idea how to get username (sorry if you know better solution): register struct passwd *pw; register uid_t uid; uid = getuid(); pw =

Fw: Re: Xterm window title enhancement to hostname:/path II.

2005-03-23 Thread Pavel Vávra
Yes, it is. My patch is quite long when I compare it with your one. I am not able to write compact C code :-(. Next time I'll add item into wishlist and I'll save a lot of time. What do you think about restoring of original title when mc ends? I usually open xterm with some title, then I run ssh

Re: Xterm window title enhancement to hostname:/path II.

2005-03-19 Thread Pavel Vávra
On Sat, 19 Mar 2005 09:47:51 +0100 Stefano Melchior [EMAIL PROTECTED] wrote: In the patch file you should have put: --- src/main.c Fri Nov 14 21:43:12 2003 +++ src/main.c Fri Mar 18 15:36:41 2005 instead of: --- main.c Fri Nov 14 21:43:12 2003 +++ main.c Fri Mar 18 15:36:41 2005

Xterm window title enhancement to hostname:/path

2005-03-18 Thread Pavel Vávra
Hi developers, I've found a feature in last version of mc. It is really nice to change xterm window title to current path. One can check Window List in its Window Manager and find the right window there. It is really nice. But it is not enough if one is logged on another machines via ssh.