Re: How to add environment variable value to hardstatus line

2015-03-11 Thread Neal Fultz
I do something similar, I use the following in my screenrc to set the title to current dir: setenv PROMPT_COMMAND 'echo -ne "\033_`pwd`\033\\"' Then you can use %t in the status bar or wherever. On Wed, Mar 11, 2015 at 2:04 PM, Shigehiko SASAKI wrote: > Hi Mario > > you can output escape sequ

Re: How to add environment variable value to hardstatus line

2015-03-11 Thread Shigehiko SASAKI
Hi Mario you can output escape sequence string to virtual terminal, so as to display any messages you like in hardstatus line. bash has some convenient features PROMPT_COMMAND or PS1 to execute any commands before displaying shell prompt message. for example to display $(envname) in hardstatus l

How to add environment variable value to hardstatus line

2015-03-11 Thread Mario Splivalo
Hi. Is there a way to add the current value of an arbitrary environment variable to hardstatus line? Mario -- Mario Splivalo ma...@splivalo.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two." ___ screen-users mailing li