I used this to make it so Byobu runs on terminal startup. However, when I open an embedded terminal in IntelliJ, it does the same and uses the same buffer. This results in the embedded terminal looking like this:
And my regular terminal looks like this:
The text and size of the viewable area are identical regardless of which you modify, so they're definitely using the same buffer.
Is there a way to make it so the embedded terminal in IntelliJ doesn't open Byobu? Maybe some sort of condition on the line setting _byobu_sourced
that checks the entity that is calling it?
EDIT: This technically belongs in AskDifferent because I'm doing this on a Mac, but the idea still applies to both Ubuntu and Mac. Furthermore, users here on AskUbuntu are more likely to encounter this issue since Byobu is used by many more Ubuntu users than Mac OS users. Because of this difference, your situation may slightly differ.