WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: aterm title  (Read 5049 times)

Offline florian

  • Full Member
  • ***
  • Posts: 116
    • Home Page
aterm title
« on: December 18, 2008, 07:04:04 PM »
How can I set aterm to have a title showing dynamic info like "tc@host:/current/path"?
aterm has a -title option but it accepts only something static, not something in "PS1 format".

Offline florian

  • Full Member
  • ***
  • Posts: 116
    • Home Page
Re: aterm title
« Reply #1 on: December 18, 2008, 07:11:57 PM »
Ok I've finally been able to find it out this on my own ;D
The following document explains about "xterm escape sequences"
http://www.faqs.org/docs/Linux-mini/Xterm-Title.html

Setting up my prompt this way makes my aterm title dynamic as I wanted:
Code: [Select]
PS1="\[\033]0;\u@\h: \w\007\]\u@\h:\w\$ "