Find the answer to your Linux question:
Results 1 to 6 of 6

Thread: xterm title

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    Buenos Aires, Argentina
    Why don't you just use:
    xterm -title "this is a title for xterm"
    or easier:
    xterm -T "this is a title for xterm"
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    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. $spacer_open
  5. #4
    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

  6. #5

  7. #6
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    CA, but from N.Ireland
    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