Re: [PATCH] xterm titlebar

2002-12-22 Thread Adam Byrtek 'alpha'
On Sun, Dec 22, 2002 at 03:54:59PM -0500, Pavel Roskin wrote: I think it simplifies the configuration. For now, we can simple replace Xterm hintbar with Use title bar or something like that, and leave I've made patch which implement this. It can be found there:

Re: [PATCH] xterm titlebar

2002-12-19 Thread Pavel Roskin
Hello! I believe that some versions of xterm may be incompatible. Just check init_xterm_support() in main.c: #if 0 /* It works on xterm, but not on rxvt */ printf (ESC_STR ]0;GNU Midnight Commander\7); #endif That comment is probably outdated. Both the

Re: [PATCH] xterm titlebar

2002-12-17 Thread Adam Byrtek 'alpha'
On Mon, Dec 16, 2002 at 07:42:12PM +0100, Tomas Styblo wrote: The xterm_hintbar option is not configurable in any menu and also is not documented at all. I did not even know it existed. I tried It is. See Options-Layout, but I also didn't noticed it until I grepped sources for 'xterm' :) That

Re: [PATCH] xterm titlebar

2002-12-17 Thread Tomas Styblo
* Adam Byrtek 'alpha' [EMAIL PROTECTED] [Tue, 17 Dec 2002]: mc running in the linux console and it does nothing at all. Which I suppose is good. :) But maybe a check for getenv(DISPLAY) Se source: if (xterm_flag !xterm_hintbar) { xterm_flag takes care of this. You are right, I

Re: [PATCH] xterm titlebar

2002-12-16 Thread Tomas Styblo
* Adam Byrtek 'alpha' [EMAIL PROTECTED] [Mon, 16 Dec 2002]: On Mon, Dec 16, 2002 at 03:52:56AM +0100, Tomas Styblo wrote: 1) The malloced space was never freed. Fixed by replacing it with an automatic array. Allocation is not necessary. cpanel-cwd gives us working dir. Yeah,

Re: [PATCH] xterm titlebar

2002-12-15 Thread Tomas Styblo
* Adam Byrtek 'alpha' [EMAIL PROTECTED] [Thu, 12 Dec 2002]: Hi ! A patch to display mc's current working dir in xterm titlebar. I made it mostly for my own personal use - I often have many instances of mc on my desktop (sometimes shaded, sometimes minimized) and meaningful title helps me

Re: [PATCH] xterm titlebar

2002-12-12 Thread David Sterba
Hi, +fprintf (stdout, \33]0;mc - %s\7, d); How about writing into /dev/tty ? Anyway, good feature :-) bye Dave ___ Mc-devel mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/mc-devel

Re: [PATCH] xterm titlebar

2002-12-12 Thread Adam Byrtek 'alpha'
On Thu, Dec 12, 2002 at 05:06:05PM +0100, David Sterba wrote: +fprintf (stdout, \33]0;mc - %s\7, d); How about writing into /dev/tty ? 'Xterm hintbar' feature in layout.c does it using stdout, so I decided to be consistent. Don't know if writing /dev/tty could break sth. Anyway,

Re: [PATCH] xterm titlebar

2002-12-12 Thread Pavel Roskin
On Thu, 12 Dec 2002, Adam Byrtek 'alpha' wrote: A patch to display mc's current working dir in xterm titlebar. I made it mostly for my own personal use - I often have many instances of mc on my desktop (sometimes shaded, sometimes minimized) and meaningful title helps me recognize one that I