Sponsored Content
Top Forums Shell Programming and Scripting How to change the title bar of the terminal screen Post 302564613 by milink on Friday 14th of October 2011 07:14:27 AM
Old 10-14-2011
How to change the title bar of the terminal screen

Hi,

How to change the value after the symbol '@' ?

[oracle@mac1~]$

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.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Change Console Title

Hello. I am trying to figure out how to change the title of my console window. I don't need it to dynamically change with my current directory. I just want to be able to change the name of it, so when I minimize the window I can see which windows are for what purpose. I've tried using the... (8 Replies)
Discussion started by: medmonson
8 Replies

2. 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

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 Desktop Questions & Answers

Terminal title bar tweak discrepancy problem in Cygwin/X

Code for the tweak (not my fave 'running process' but the more popular 'working directory') : 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 ... (0 Replies)
Discussion started by: SilversleevesX
0 Replies

5. AIX

How to change cronjob title?

Once I type "mail" command, I got to see the mail like below: > 1 daemon Thu Aug 12 17:31 31/938 "Output from cron job " My question is, how to do change the default title "Output from cron job " to be more customized title? Thanks. (4 Replies)
Discussion started by: ngaisteve1
4 Replies

6. 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

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. 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

9. UNIX for Dummies Questions & Answers

Change putty title name

Hello all, I have a not so unix question for you guys(or maybe it is). I use PUTTY to login to serverA (my putty title shows as serverA.domainname.com) Now from ServerA i do ssh user@ServerB (i have ssh public private key setup)... now my question is when i do ssh and logon to... (20 Replies)
Discussion started by: abdul.irfan2
20 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
tcsetattr(3)						     Library Functions Manual						      tcsetattr(3)

NAME
tcsetattr - Sets the parameters associated with the terminal LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <termios.h> int tcsetattr( int filedes, int optional_actions, struct termios *termios_p ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: tcsetattr(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies an open file descriptor associated with a terminal. Specifies the options defining how the parameters will be set. Points to a termios structure containing the terminal parameters. DESCRIPTION
The tcsetattr() function sets the parameters associated with the terminal referred to by the open file descriptor filedes from the termios structure referenced by termios_p as follows: If optional_actions is TCSANOW, the change will occur immediately. If optional_actions is TCSADRAIN, the change will occur after all output written to filedes has been transmitted. This function should be used when changing parameters that affect output. If optional_actions is TCSAFLUSH, the change will occur after all output written to filedes has been trans- mitted, and all input so far received but not read will be discarded before the change is made. If the output baud rate stored in the termios structure pointed to by the termios_p parameter is the zero baud rate, B0, the modem control lines will no longer be asserted. Normally, this will disconnect the line. If the input baud rate stored in the termios structure pointed to by the termios_p parameter is 0 (zero), the input baud rate given to the hardware will be the same as the output baud rate stored in the termios structure. Attempts to use the tcsetattr() function from a process which is a member of a background process group on a filedes associated with its controlling terminal causes the process group to be sent a SIGTTOU signal. If the calling process is blocking or ignoring SIGTTOU signals, the process is allowed to perform the operation and no signal is sent. RETURN VALUES
Upon successful completion, 0 (zero) is returned. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The tcsetattr() function sets errno to the specified values for the following conditions: The filedes parameter is not a valid file descriptor. A signal interrupted tcsetattr(). The optional_actions parameter is not a proper value, or an attempt was made to change an attribute represented in the termios structure to an unsupported value. The file associated with the filedes parameter is not a terminal. RELATED INFORMATION
Functions: cfgetispeed (3), tcgetattr (3) Standards: standards(5) delim off tcsetattr(3)
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy