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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 PM.

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
Open Source Consulting | Domain Registration