Re: Xterm window title enhancement to hostname:/path II.
- From: Pavel Vávra <plamen bluetone cz>
- To: jnovy redhat com
- Cc: mc-devel gnome org
- Subject: Re: Xterm window title enhancement to hostname:/path II.
- Date: Wed, 23 Mar 2005 15:19:10 +0100
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 = getpwuid(uid);
/* OK, you'll write pw = getpwuid(getuid()) */
/* now pw->pw_name contains user name */
------------------
On Wed, 23 Mar 2005 14:28:48 +0100
Jindrich Novy <jnovy redhat com> wrote:
> 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 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 Window list can look like:
> > mc - /etc
> > mc - /etc
> > mc - /etc
> > mc - /usr/src
> >
> > Well, but what is the right window what I am looking for? I want to switch to configuration window of my firewall. I need a bit different list:
> >
> > mc - debi:/etc
> > mc - Firewall:/etc
> > mc - Planet:/etc
> > mc - workstation:/usr/src
> >
>
> I like the idea you presented, so I reimplemented the hostname addition
> to xterm window title so that it can be committed.
>
> Please avoid using C++ comments in patches for the next time.
>
> Cheers,
> Jindrich
>
> --
> Jindrich Novy <jnovy redhat com>, http://people.redhat.com/jnovy/
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]