[PATCH] xterm titlebar

Adam Byrtek 'alpha' alpha at student.uci.agh.edu.pl
Mon Dec 23 00:13:35 UTC 2002


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:
https://savannah.gnu.org/patch/index.php?func=detailpatch&patch_id=879&group_id=3521

Changelog is quite self-explanatory. I've removed xterm_hintbar (btw
it was coded quite sloppy) Layout option and replaced it with
xterm_title.

Added update_xterm_title_path wchich shows cpanel->cwd in xterm window
title. It changes home dir into ~, strips password and replaces
control codes (ascii <=32) with '?'. I guess it is enough, high ascii
codes (>128) seems to cause no trouble to xterms (tested), and they
are often used for national characters - it would be no good to filter
them out.

This function is invoked on panel focus and panel cd, so it works well
even when prompt shows wrong path.


> Just that you understand, I'm going to Russia for vacation from December
> 28 to January 19.  I'll not be able to apply anything, so either I leave

Have a good time on your vacation!


Regards

ps. I've found small bug in the hintbar code, I'll submit patch for
this separately.

-- 

  _.|._ |_  _.    : Adam Byrtek, alpha@(irc.pl|debian.org)
 (_|||_)| |(_|    : gg 1802819, pgp 0xB25952C0
     |            : jid alpha.pl(at)jabber.org



More information about the mc-devel mailing list