-
Notifications
You must be signed in to change notification settings - Fork 32
Detect when we are running in screen #56
Comments
Why not checking |
@Jir4 Correct but we have to deal with each multiplexer… So maybe we should go for Thoughts? |
@Hywan Is it the name really important ? Does something change for each multiplexer ( when we copy for instance ) ? I don't see all impacts of multiplexers on |
@Jir4 @Hywan I would go for something like public function isRunningInsideMultiplexer() {
return static::isTmuxRunning() || static::isScreenRunning();
} This would ease the use of this check but still allow us to do isolated internal checks. |
👍 |
1 similar comment
👍 |
Do we agree that this is for private usages, while the visibility will be |
Any PR? |
I don't actually know if
screen
may cause similar bugs astmux
but perhaps it might be useful to check if we are running in it.Just like we did for
tmux
withConsole::isTmuxRunning
I think we should introduceConsole::isScreenRunning
.Even if adapting escape sequences is not required when we are in
screen
I think this method will still be useful for developers to know from their code if the users is inside a multiplexer.See here for the original discussion: #53 (comment)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: