Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: florian on December 18, 2008, 04:04:04 PM

Title: aterm title
Post by: florian on December 18, 2008, 04: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".
Title: Re: aterm title
Post by: florian on December 18, 2008, 04: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\$ "