Results 1 to 5 of 5

Thread: How to set window title in screenrc?

Hybrid View

  1. #1
    Guest

    How to set window title in screenrc?

    When I updated 'screen' the other day, it stopped displaying the virtual terminal numbers on the window title (i.e., 0.bash, 1.bash, etc.), so I'm wondering if there's a way to regain the window title feature via .screenrc.

    I searched and google and the closest thing I could find was this:
    termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'

    but that didn't do anything. Does anybody know?

    TIA

  2. #2

    Re: How to set window title in screenrc?

    hello,
    a less elagant way to do this is have the alias/command that launches the terminal to have a name, e.g. xterm -n $USER@$HOSTNAME:$OTHERSTUFF
    that is what i do, i am not sure if it helps at all.

  3. #3
    Guest

    Re: How to set window title in screenrc?

    pbharris, do you use screen? If you don't, you should, it's quite useful for having several terminals without having multiple windows open, plus if you're ssh'ing to somewhere where opening several terminals can lag, use screen.

    I think eventually it should be included in every Linux distribution, because it's extremely useful, but it still has a few bugs to be fixed.

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: How to set window title in screenrc?

    I use screen alot, and this is my prompt setting:
    Code:
    set prompt = "%{\e]1;%m\a\e]2;%n@%m:%~\a%}%n@%m{!} %~> "
    Works like a charm.. displayes user@machine: location in the title bar..
    (altho this is tcshrc, I have no idear how it will behave in bash, since I've never used bash)

  5. #5
    Guest

    Re: How to set window title in screenrc?

    Tak redhead

Similar Threads

  1. strings for window?
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 05-08-2004, 01:42 AM
  2. KDE vs Window Maker
    By NGene in forum Linux - Software, Applications & Programming
    Replies: 47
    Last Post: 06-07-2002, 09:54 AM
  3. I should have a new title...
    By in forum Announcements and Suggestions
    Replies: 5
    Last Post: 03-19-2002, 03:34 AM
  4. Window RG
    By Ashcrow in forum General Chat
    Replies: 9
    Last Post: 11-21-2001, 03:39 PM

Bookmarks

Posting Permissions

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