screen/byobu presence inferred by an environment variable

Asked by Jan Dahl on 2013-05-12

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://help.ubuntu.com/10.04/serverguide/byobu.html).

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
For:
Ubuntu ubuntu-docs Edit question
Assignee:
No assignee Edit question
Last query:
2013-05-12
Last reply:
2013-05-12

i suggest you report a bug

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.