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
GMAN(1x)																  GMAN(1x)

NAME
gman - GTK+ based front-end for man, a good replacment for xman. SYNOPSIS
gman DESCRIPTION
Gman is a front-end for the manual page system. gman builds a database of all the available man pages and displays them in a list. Clicking on an entry in the list makes gman launch another window with the manual page displayed in it. Gman can launch more than one window at same time. The user can use the index/key word search function to look for the man pages that they need. It is simple, but it is useful. OPTIONS
There are no command line options for gman, for now. DISPLAY OPTIONS
Currently gman has 4 different modes to present the man pages, available as the following items in the View menu: xTerm This will launch an X terminal emulator with the man output shown inside. You can add the following line to your ~/.gman file in order to select the preferred X terminal emulator: xterm_command = rxvt GhostView gman will present man pages in a GhostView window for you to view and print the man page. This requires GhostView (command "gv") to be available on your system. Evince gman will present man pages in an Evince window for you to view and print the man page. This requires GNOME Evince (command "evince") to be available on your system. LocalBrowse gman will launch a web browser window to show you the man page. This requires man2html and web browser (command "sensible-browser") to be available on your system. NetBrowse In this mode, you can view the pages with web browser and navigate from one man page to another by clicking the links in the man pages. This requires man2html, web browser (command "sensible-browser") and a HTTP server running on localhost. FILES
~/.gman Contains configuration information for gman, such as window size and paths where the manual pages are contained. For example, v_size = 400 h_size = 300 xterm_command = rxvt show_warning = 0 man_paths = /usr/local/man:/usr/local/share/man:/usr/share/man For more information, see init_context() function in gman.c for all the options avialiable. ~/.gman is read by gman on startup, and written on exit. SEE ALSO
man(1), man(7), xterm(1). AUTHOR
Gman was written by a smart guy named Xinkai Wang <aakwxk@hotmail.com>. Home page of gman is at: http://homex.coolconnect.com/user/xkwang/gman/ <> Gman May 2002 GMAN(1x)
All times are GMT -4. The time now is 07:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy