Sponsored Content
Special Forums UNIX Desktop Questions & Answers Terminal title bar tweak discrepancy problem in Cygwin/X Post 302314644 by SilversleevesX on Saturday 9th of May 2009 07:00:38 AM
Old 05-09-2009
Terminal title bar tweak discrepancy problem in Cygwin/X

Code for the tweak (not my fave 'running process' but the more popular 'working directory') :

Code:
case "$TERM" in
xterm*|rxvt*|rxvt-unicode*)
      PROMPT_COMMAND='echo -e "\033]0;$TERM: ${PWD}\007"'
        ;;
*)
        ;;
esac

Where it works: rxvt (the one I run 'rootless' outside of XWindows)
Where it doesn't work: urxvt (aka rxvt-unicode) inside Xwindows
(wm is Fluxbox, the 1.0.0 build that was contributed tangentially to the Cygwin folks; colorscheme is Leopard from Freshmeat, but I just tried some others and it made no difference)
How it doesn't work: urxvt's title bar, after the rest of .bash_profile loads and displays its wares, switches to a string of 6 non-printing characters (rectangles) and stays that way. I see "bash" until my Welcome.sh script loads, then the six npc's

Anyone know urxvt well enough to have a good idea as to why this tweak shouldn't work? I have some others that I've C&P'd from around the Web, and if this one is a dead rabbit, I'll just try one of those. On that score I'd need a hint as to what kind of code should work in urxvt.

TIA for all advice and suggestions.

BZT

Last edited by SilversleevesX; 05-09-2009 at 08:06 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

title bar manipulation in F-Secure SSH Client for Windows

Hello All, I was wondering if the titlebar in "F-Secure SSH Client for Windows" is changeable. Currently I see the host name in the title bar. I would like to add "user@host" to the title. So when I log on to a particular box and do a ssh to another box the title should dynamically... (3 Replies)
Discussion started by: ssikhar
3 Replies

2. UNIX for Advanced & Expert Users

terminal type problem with cygwin on aix

hey, I use cygwin to connect to AIX 5.2 but when I open vi I get an error saying: ex: 0602-108 cygwin is not a recognized terminal type how can I fix that? I thought cygwin was tty vt100? (1 Reply)
Discussion started by: rein
1 Replies

3. Solaris

Change Terminal Title

Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window. I was looking for similar functionality for terminal windows. Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies

4. UNIX for Advanced & Expert Users

Cygwin <--> CMD App Problem (Terminal Type?)

I'm not sure if this is the right place to post this, but here it is. We have a nightly process that runs on an HP-UX box to stop our application and backend database servers, unmount their SAN hosted file systems, and then snapshot the SAN LUNs for backup and refresh of data on "report" and... (1 Reply)
Discussion started by: deckard
1 Replies

5. Shell Programming and Scripting

Directory name in terminal title

I would like to have the directory I am currently in being shown in the title when I open a terminal window in Fedora (selecting "Open in terminal" or using the Terminal from the panel). Any way that I can do this? Basically whenever I do "cd", the title should update I have created this... (1 Reply)
Discussion started by: kristinu
1 Replies

6. Shell Programming and Scripting

How to change the title bar of the terminal screen

Hi, How to change the value after the symbol '@' ? $ i.e. @mac1 I want to change it to @prod2 Also need to change the same in the title bar on the top when we open a new terminal. (3 Replies)
Discussion started by: milink
3 Replies

7. UNIX for Dummies Questions & Answers

Reflection X v14 Desktop Title bar

Not sure exactly where to post this, so I apologize if this is incorrect. I have recently installed Reflection X v14.1 as an X windows client. While this may sound trivial, I have found that if you are connected to multiple servers, only 1 desktop is used. If anyone happens to know much about... (3 Replies)
Discussion started by: niswonp
3 Replies

8. Shell Programming and Scripting

Running shell script in Cygwin terminal

I am new to shell scripting. I tried to run a simple shell script using Cygwin terminal in Win XP env. The script I have written is as follows - #!/bin/bash a=5 ] && echo "true" || echo "false" But when I execute the script, getting some confusing error. The error I am getting are - ... (3 Replies)
Discussion started by: linux_learner
3 Replies

9. UNIX for Dummies Questions & Answers

Setting the current directory path to terminal title

In ubuntu, I want to update the title of the terminal window with the current directory path. Any ideas how this can be achieved? ---------- Post updated at 02:22 PM ---------- Previous update was at 02:08 PM ---------- Done it ---------- Post updated at 02:30 PM ---------- Previous update... (2 Replies)
Discussion started by: kristinu
2 Replies

10. Ubuntu

Title bar top and bottom

Hello forum, Seems that only I have alot of questions regarding Ubuntu :D In Ubuntu 12.04 LTS the gnome I have been using gdm and lightdm. In lightdm the top and side bars are aka "unity" and can be removed using apt-get remove unity I need to do the same for menu bars gdm. I do not... (0 Replies)
Discussion started by: br1an
0 Replies
FvwmConsole(1)							   Fvwm Modules 						    FvwmConsole(1)

NAME
FvwmConsole - an fvwm command input interface SYNOPSIS
Module FvwmConsole [options] FvwmConsole can only be invoked by fvwm. Command line invocation of the FvwmConsole module will not work. DESCRIPTION
FvwmConsole allows the user to type fvwm configuration commands interactively, and have them executed immediately. This tool is particu- larly useful for testing new configuration ideas, or for implementing temporary changes to your environment. INVOCATION
FvwmConsole must be spawned as a module by fvwm. FvwmConsole takes all xterm(1) options. FvwmConsole can be invoked by inserting the line 'Module FvwmConsole' in the .fvwm2rc file. This can be placed on a line by itself, if FvwmConsole is to be spawned during fvwm's initialization, or can be bound to a menu or mouse button or keystroke to invoke it later. CONFIGURATION OPTIONS
FvwmConsole uses xterm(1). All resources set for xterm are inherited unless overridden by command line options. Module FvwmConsole -g 40x10 -fg black -bg green3 A different terminal emulator can be specified with the -terminal option. However, only terminal programs that understand the options -name, -title and -e can be used. Module FvwmConsole -terminal rxvt Previous versions of FvwmConsole supported a -e option to choose a different front-end. Although this option is still provided for back- wards compatibility its use is discouraged unless you know exactly what you are doing. Module FvwmConsole -e FvwmConsoleC.pl (see FvwmConsoleC.pl(1)). Also X resources can be set in your ~/.Xdefaults file: FvwmConsole*VT100*geometry: 40x4 FvwmConsole*font: 7x14 COMMAND EDITING
There are a few options. If the GNU readline library is available, it can be used. If Perl5 is installed, FvwmConsoleC.pl can be used as a command editor. This can be accomplished by either copying FvwmConsoleC.pl to fvwmlib directory as FvwmConsoleC or invoking FvwmConsole with -e option. For example: Module FvwmConsole -e FvwmConsoleC.pl If neither one is installed, a simple input reading function which doesn't have editing capabilities is used. GNU readline and FvwmConsoleC.pl have some frequent used commands in common as default. These commands are similar to emacs. For more details, refer GNU readline man and info pages, and FvwmConsoleC.pl man page. Ctrl-A - beginning of line Ctrl-B - previous char Ctrl-D - delete char Ctrl-E - end of line Ctrl-F - next char Ctrl-H - backspace Ctrl-K - erase to the end of line Ctrl-N - next line Ctrl-P - previous line Ctrl-R - search reverse Ctrl-U - delete line Meta-B - previous word Meta-F - next word Esc < - beginning of history Esc > - end of history EXITING
FvwmConsole can be stopped by entering the EOF character (usually CTRL-D). Note! Do not use the "quit" command, as this is an fvwm builtin: typing "quit" at the FvwmConsole command line will cause fvwm to exit. SEE ALSO
xterm(1), FvwmConsoleC.pl(1), GNU Readline library AUTHOR
FvwmConsole is the original work of Toshi Isogai. 3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmConsole(1)
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy