Find the answer to your Linux question:
Results 1 to 6 of 6
I would like to change my xterm title by a bash script when putting the title name as the argument of the script. Can someone send me such script?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    6

    xterm title


    I would like to change my xterm title by a bash script when putting the title name as the argument of the script.

    Can someone send me such script?

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Why don't you just use:
    xterm -title "this is a title for xterm"
    or easier:
    xterm -T "this is a title for xterm"
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    6
    I mean I would like to change the title dynamically. For example, when I open the xterm to write a doc, I would like to mark the title as "writing". After doing that, when I coding in that xterm, I would like to mark it as "coding" or other names.

    So, a bash with an argument would be good.

  4. #4
    Just Joined!
    Join Date
    Jun 2007
    Posts
    1
    I m also having the same trouble here.

    xterm -title is also equivalent to xterm -name

    but i would like to know if by chance you could change the name/title of the current xterm instead of creating a new xterm

  5. #5
    Just Joined!
    Join Date
    Dec 2006
    Posts
    5

  6. #6
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    I tried putting this inside a shell script, but it didn't affect the contents of $PROMPT_COMMAND outside the script (therefore the xterm title didn't change). How can I rewrite the script to force it to change the xterm title permanently?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •