Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Add TMUX(1) support for Window::copy #53

Merged
merged 2 commits into from
Sep 30, 2015
Merged

Commits on Sep 30, 2015

  1. Add the Console::isTmuxRunning method.

    Sometimes this is useful to know whether we are running behind TMUX(1)
    or not. For instance, some control sequences are not supported by
    TMUX(1) yet and we have to apply some specific strategies. Because
    TMUX(1) is very popular, we allow ourselves such an approach.
    Hywan committed Sep 30, 2015
    Configuration menu
    Copy the full SHA
    a0a7e1d View commit details
    Browse the repository at this point in the history
  2. Add TMUX(1) support for Window::copy.

    Refering to
    http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324,
    we learn there is a special form to by-pass TMUX(1) and send control
    sequences to the upper terminal. We have to use the:
    
        \033Ptmux;…\033\\
    
    control sequence where `…` is the original control sequence where `\033`
    are doubled.
    Hywan committed Sep 30, 2015
    Configuration menu
    Copy the full SHA
    a13a9a2 View commit details
    Browse the repository at this point in the history