Multiple bugfixes in this patch:
1) Do not evaluate $TITLE.
2) Do not let normal title code set screen session titles if screen
plugin is active
3) Use default way to set hardstatus in screen, not xterm compatible
string.
Signed-off-by: Markus Pargmann <mpargmann@allfex.org>
Bugfix:
zsh doc:
"If the history mechanism is active, the string that the user typed is
passed as the first argument, otherwise it is an empty string."
The title of a screen window should not depend on the history. So this
patch uses the third passed argument ("the third argument contains the
full text that is being executed.").
TITLE variable:
This combines automatic title set with customizable titles. It's often
useful in a screen session to set a manual title. By using
TITLE=YOUR_TITLE, it will replace the generated prefix but still display
the executed command. "TITLE=" will cause the screen plugin to generate
the title prefix again.
Signed-off-by: Markus Pargmann <mpargmann@allfex.org>