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 line
[[.bashrc]]
# send message to screen hardstatus %h
if [[ "$TERM" =~ "screen" ]]; then
  PROMPT_COMMAND='echo -ne "\033k\033\0134\033k$(envname)\033\\"'
endif

// Shige

_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to