01-17-2012
Different shells use PS1 in different ways. The same code may not work identically everywhere. Look at the different examples for different systems and shells in that link.
Some systems may be trying to change your window title already, too. Try leaving it out of PS1 and trying the printf line I gave you earlier. If it doesn't work, something else is changing your window title every line...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies
2. UNIX for Advanced & Expert Users
I have implemented the solution from mschwage located in post https://www.unix.com/unix-advanced-expert-users/35784-change-putty-title-window.html; ie
wt ()
{
echo -n "^2;${@}^G"
}
This method is awesome!!!!
The reason I am sending you this message is to get your assistance with... (3 Replies)
Discussion started by: lwif
3 Replies
3. Shell Programming and Scripting
I have a Perl script that changes the terminal window title and I would like to reset it to the original value when I am done. We are using Putty which emulates xterm. We are not running X-Windows so I can't use something like xprop (can I?). I'm using XTerm control codes to change the title and I... (2 Replies)
Discussion started by: NateTut
2 Replies
4. Linux
Hi,
I have a linux which I am accessing using putty.I have written some code in TCL-Tk & developed a GUI based app.I knew that it is difficult to open a GUI based app. from putty,but there must be some way to do that.
If anybody knows any such workarounds kindly let me know.
Shell I am using is... (4 Replies)
Discussion started by: forstudy3
4 Replies
5. UNIX for Advanced & Expert Users
Hii, i have installed ubuntu in windows without make partitioning by using wubi.. i want to connect ubuntu linux through putty. but I am unable to do that. Please help me.. how to set ip address in putty (3 Replies)
Discussion started by: pankajkumar
3 Replies
6. Red Hat
Hi,
I still cant find step by step manual how to make my putty display let say PWD in its title, read about some xterm, but where it is?
Can anybody help me with this.
Thx
M (4 Replies)
Discussion started by: trento17
4 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
When I use putty and maximize it, then the second half of the emulator window is not utilized and used! I mean the mouse cursor is at the half of the page not at the bottom! i have to once minimize and maximize the window to tell putty that i am going to use the maxmized window...is... (4 Replies)
Discussion started by: messi777
4 Replies
8. Shell Programming and Scripting
I have successfully used a script to modify putty's window title for many years. It has worked great in a Solaris 10 environment, using, sh, bash and tcsh. But I've never been able to get it to work in linux :(
The script relies on sending escape sequences via gnu echo. The version of echo on... (4 Replies)
Discussion started by: tsreyb
4 Replies
9. Shell Programming and Scripting
hi friends,
This is not a shell scripting related doubt, but still posting so that you can answer it ;) or redirect to correct place in this website.
Many a times i have to open multiple putty sessions by duplicating a session and want to rename their tabs.
For this activity i have to right... (4 Replies)
Discussion started by: kunwar
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Last 2 weeks I have searched many forums and i haven't found the answer for the question:
How to get all command output to Putty title?
Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)
Discussion started by: domagaj
1 Replies
LEARN ABOUT CENTOS
glutcreatewindow
UNTITLED
LOCAL UNTITLED
NAME
glutCreateWindow -- Create a new top-level window
LIBRARY
OpenGLUT - window
SYNOPSIS
#include <openglut.h>
int
glutCreateWindow(const char* title);
PARAMETERS
title Title for created window
DESCRIPTION
This function sends a request for a window to be constructed. OpenGLUT immediately constructs a data structure to track further events with
the window, on the theory that eventually the window manager will get back to us with a real window. This allows us to begin registering
callbacks immediately.
In fact, you must register a display callback via glutDisplayFunc() before you enter glutMainLoop().
For onscreen windows, you should not depend upon the window concretely existing or being visibile until you are told that it exists and is
visible via a registered callback.
The return value is an int. It should be positive for valid windows or 0 if failure occurred for some reason (Though traditional GLUT
tends to bail out and abort rather than returning errors.) The integer is your window id . Old GLUT promises that these integers are
``small''; we do not reuse old id s, but do produce them sequentially.
You can change the title later via glutSetWindowTitle().
SEE ALSO
glutDestroyWindow(3) glutCreateSubWindow(3) glutSetWindowTitle(3) glutCreateMenuWindow(3)
Epoch