[PATCH][Fwd: Re: Xterm window title enhancement to hostname:/path II.]

2005-06-06 Thread Jindrich Novy
Hello mc-devel, I haven't noticed any objection against this patch and many people consider it helpful. Any chance to see it committed? Thanks, Jindrich -- Jindrich Novy <[EMAIL PROTECTED]>, http://people.redhat.com/jnovy/ The worst evil in the world is refusal to think. --- Begin Message ---

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

2005-04-03 Thread Pavel Vávra
On Wed, 30 Mar 2005 11:27:28 +0200 Jindrich Novy <[EMAIL PROTECTED]> wrote: > Hello Pavel, > > On Wed, 2005-03-23 at 17:06 +0100, Pavel Vávra wrote: > > What do you think about restoring of original title when mc ends? I > > usually open xterm with some title, then I run ssh client and then I r

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

2005-03-30 Thread Jindrich Novy
Hello Pavel, On Wed, 2005-03-23 at 17:06 +0100, Pavel VÃvra wrote: > What do you think about restoring of original title when mc ends? I > usually open xterm with some title, then I run ssh client and then I run > commander. When I run mc, title of window is changed, but when I exit mc > last us

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-23 Thread Jindrich Novy
Hello Pavel, here is the patch where both hostname and username are printed in the xterm window title. Cheers, Jindrich -- Jindrich Novy <[EMAIL PROTECTED]>, http://people.redhat.com/jnovy/ --- mc-4.6.1a/src/main.c.hostname 2005-03-23 13:59:31.198747928 +0100 +++ mc-4.6.1a/src/main.c 2005-03-23

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 = getpwu

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 during

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

2005-03-23 Thread Jindrich Novy
Hello Pavel, On Fri, 2005-03-18 at 16:55 +0100, Pavel VÃvra wrote: > Sorry - I've attached wrong file so now it has to be a bit better. > > 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 i

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

2005-03-20 Thread Leonard den Ottolander
Hello Pavel, On Sat, 2005-03-19 at 13:10, Pavel Vávra wrote: > 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 And most people

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

2005-03-19 Thread Stefano Melchior
On Fri, Mar 18, 2005 at 04:55:16PM +0100, Pavel V?vra wrote: Hi Pavel, > > mc - [EMAIL PROTECTED]:/etc > mc - [EMAIL PROTECTED]:/etc > mc - [EMAIL PROTECTED]:/etc > mc - [EMAIL PROTECTED]:/usr/src > > This patch adds hostname to current path in x-terminal window with minimal > source code change

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

Xterm window title enhancement to hostname:/path II.

2005-03-18 Thread Pavel Vávra
Sorry - I've attached wrong file so now it has to be a bit better. 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

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. Then