LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 09-25-2008, 05:05 PM   #1
imraven
LQ Newbie
 
Registered: Jun 2006
Location: SLC, UT
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 15
howto change gnome-terminal title bar


friends,

i'm using gnome-terminal and i've noticed that some applications change the title bar from whatever the PS1 variable is to various statuses, for instance during a gentoo emerge. is there a way for me to do this in bash scripts or php scripts?

brandon
 
Old 09-25-2008, 05:13 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
I use this function in Bash scripts to change the title. Just pass the desired title as a string.
Code:
# ------------------------------------------------------------------------------ #
# This function sets the title of the terminal-emulator
# or tab.
# ------------------------------------------------------------------------------ #
title() {

    echo -ne "\033]0;${1}\007"

}
 
Old 10-04-2008, 04:25 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Lyly is spamming this forum BIG TIME
..Reported.
[Edit]: All cleaned up now, thanks Mods [/Edit]

Last edited by tredegar; 10-04-2008 at 12:31 PM.
 
  


Reply

Tags
spam, spamming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title bar trouble using gnome on Ubuntu 8.04 crazyalex Ubuntu 5 08-23-2008 01:15 AM
Cannot see the title bar on Gnome Slackbuild. deepumnit Linux - Desktop 0 06-20-2008 08:07 PM
Can I change title bar content in an application window? dhave Linux - Desktop 4 09-19-2007 02:27 PM
Can anyone tell me how to change the colour of the title bar in firefox? mish_the_pink Linux - Desktop 4 11-18-2006 07:53 PM
changing the title bar of terminal? webazoid Linux - Software 1 07-01-2004 07:54 PM


All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration