LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2011, 02:47 AM   #1
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Rep: Reputation: 0
Dynamic title using GNU Screen with bash


Hello Group,

Screen version: Screen version 4.00.03jw4 (FAU) 2-May-06
OS: Debian Squeeze (CUI only environment)

I am trying to dynamically update shelltitle to the command that I am running. I found an online document that instructed the reader to configure .bashrc as follows:

Code:
case $TERM in
 screen*)
  SCREENTITLE=\[\ek\e\\\]
;;
*)
  SCREENTITLE=
;;
esac
PS1="${SCREENTITLE}${PS1}"
My .screenrc is configured as follows:

Code:
# disable bell
vbell off

# disable startup message
startup_message off

# detach on hangup
autodetach on

# erase background with current bg color
defbce "on"

# caption
caption always "%?%F%{= wk}%:%{= ww}%?%-w%{=u Wk}%n %t%{-}%+w"

# shell title

# hardstatus
hardstatus off
I am not sure what to assign for the shelltitle directive. I read few online documents and example however, I was not able to make it work. Any advise will be greatly appreciated.

Regards,

Shuple
 
  


Reply


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
[SOLVED] Terminal xterm Title is too dynamic (title doesn't change manually) ZeroDaHero Slackware 4 11-04-2012 12:16 PM
How to set xterm title to gnu screen session name WindAndTiger Linux - Software 5 05-06-2009 11:33 PM
GNU Screen and Bash shortcuts keysorsoze Linux - Software 2 09-18-2007 05:45 PM
LXer: Title: GNU Binutils libbfd TekHex Record Handling Vulnerability LXer Syndicated Linux News 0 05-27-2006 08:54 AM
GNU screen and bash settings stutterbug Linux - Software 0 01-13-2005 08:27 AM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration