screen/byobu presence inferred by an environment variable
Asked by
Jan Dahl
Hey there,
I've recently discovered that $STY is set when running a terminal in byobu (or screen). I think i would be suitable to add to the documentation (https:/
Proposed addition:
You can check for the presence of byobu in your scripts by checking for the $STY environment variable, e.g.
<pre>if [ -n $STY ]; then...</pre>
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jan Dahl for more information if necessary.
To post a message you must log in.