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 (

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

English Edit question
Ubuntu ubuntu-docs Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

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.