tmux and control sequence character issue

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I try to resize terminal window from command line on my MacOSX



I can resize the width and heigh of the terminal with following command(Control Sequence Introducer CSI)



printf 'e[8;100;200t' "resize to 200x100


but when I use tmux in my terminal, then the command(printf 'e[8;100;200t' ) is not longer working



Any suggestion would be apprecaited.



Here is my tmux config file:



bind r source-file ~/.tmux.conf ; display "Reloaded!" #Reload with ctrl-r
set-window-option -g mode-keys vi #copy-mode vim-like
set -g prefix ` #prefix from ctrl-b to ctrl-a
unbind C-b #allow ctrl-b for other things
set -sg escape-time 1 #quicker responses
bind ` send-prefix #Pass on ctrl-a for other apps
set -g base-index 1 #Numbering of windows
setw -g pane-base-index 1 #Numbering of Panes
bind split-window -v #Split panes horizontal
bind v split-window -h #Split panes vertically

unbind-key j
bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R

unbind-key Left
bind-key Left resize-pane -L 10
unbind-key Right
bind-key Right resize-pane -R 10
unbind-key Up
bind-key Up resize-pane -U 10

unbind-key Down
bind-key Down resize-pane -D 10

set -g window-status-current-style fg=red
set -g default-command "reattach-to-user-namespace -l /bin/bash"






share|improve this question
























    up vote
    2
    down vote

    favorite
    1












    I try to resize terminal window from command line on my MacOSX



    I can resize the width and heigh of the terminal with following command(Control Sequence Introducer CSI)



    printf 'e[8;100;200t' "resize to 200x100


    but when I use tmux in my terminal, then the command(printf 'e[8;100;200t' ) is not longer working



    Any suggestion would be apprecaited.



    Here is my tmux config file:



    bind r source-file ~/.tmux.conf ; display "Reloaded!" #Reload with ctrl-r
    set-window-option -g mode-keys vi #copy-mode vim-like
    set -g prefix ` #prefix from ctrl-b to ctrl-a
    unbind C-b #allow ctrl-b for other things
    set -sg escape-time 1 #quicker responses
    bind ` send-prefix #Pass on ctrl-a for other apps
    set -g base-index 1 #Numbering of windows
    setw -g pane-base-index 1 #Numbering of Panes
    bind split-window -v #Split panes horizontal
    bind v split-window -h #Split panes vertically

    unbind-key j
    bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
    unbind-key k
    bind-key k select-pane -U
    unbind-key h
    bind-key h select-pane -L
    unbind-key l
    bind-key l select-pane -R

    unbind-key Left
    bind-key Left resize-pane -L 10
    unbind-key Right
    bind-key Right resize-pane -R 10
    unbind-key Up
    bind-key Up resize-pane -U 10

    unbind-key Down
    bind-key Down resize-pane -D 10

    set -g window-status-current-style fg=red
    set -g default-command "reattach-to-user-namespace -l /bin/bash"






    share|improve this question






















      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      I try to resize terminal window from command line on my MacOSX



      I can resize the width and heigh of the terminal with following command(Control Sequence Introducer CSI)



      printf 'e[8;100;200t' "resize to 200x100


      but when I use tmux in my terminal, then the command(printf 'e[8;100;200t' ) is not longer working



      Any suggestion would be apprecaited.



      Here is my tmux config file:



      bind r source-file ~/.tmux.conf ; display "Reloaded!" #Reload with ctrl-r
      set-window-option -g mode-keys vi #copy-mode vim-like
      set -g prefix ` #prefix from ctrl-b to ctrl-a
      unbind C-b #allow ctrl-b for other things
      set -sg escape-time 1 #quicker responses
      bind ` send-prefix #Pass on ctrl-a for other apps
      set -g base-index 1 #Numbering of windows
      setw -g pane-base-index 1 #Numbering of Panes
      bind split-window -v #Split panes horizontal
      bind v split-window -h #Split panes vertically

      unbind-key j
      bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
      unbind-key k
      bind-key k select-pane -U
      unbind-key h
      bind-key h select-pane -L
      unbind-key l
      bind-key l select-pane -R

      unbind-key Left
      bind-key Left resize-pane -L 10
      unbind-key Right
      bind-key Right resize-pane -R 10
      unbind-key Up
      bind-key Up resize-pane -U 10

      unbind-key Down
      bind-key Down resize-pane -D 10

      set -g window-status-current-style fg=red
      set -g default-command "reattach-to-user-namespace -l /bin/bash"






      share|improve this question












      I try to resize terminal window from command line on my MacOSX



      I can resize the width and heigh of the terminal with following command(Control Sequence Introducer CSI)



      printf 'e[8;100;200t' "resize to 200x100


      but when I use tmux in my terminal, then the command(printf 'e[8;100;200t' ) is not longer working



      Any suggestion would be apprecaited.



      Here is my tmux config file:



      bind r source-file ~/.tmux.conf ; display "Reloaded!" #Reload with ctrl-r
      set-window-option -g mode-keys vi #copy-mode vim-like
      set -g prefix ` #prefix from ctrl-b to ctrl-a
      unbind C-b #allow ctrl-b for other things
      set -sg escape-time 1 #quicker responses
      bind ` send-prefix #Pass on ctrl-a for other apps
      set -g base-index 1 #Numbering of windows
      setw -g pane-base-index 1 #Numbering of Panes
      bind split-window -v #Split panes horizontal
      bind v split-window -h #Split panes vertically

      unbind-key j
      bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim
      unbind-key k
      bind-key k select-pane -U
      unbind-key h
      bind-key h select-pane -L
      unbind-key l
      bind-key l select-pane -R

      unbind-key Left
      bind-key Left resize-pane -L 10
      unbind-key Right
      bind-key Right resize-pane -R 10
      unbind-key Up
      bind-key Up resize-pane -U 10

      unbind-key Down
      bind-key Down resize-pane -D 10

      set -g window-status-current-style fg=red
      set -g default-command "reattach-to-user-namespace -l /bin/bash"








      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 6 '17 at 1:06









      Aron Lee

      162




      162




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The escape sequence is being interpreted by tmux and is not being passed through to the terminal program that tmux is running in. To have it pass through, you need to wrap the escape sequence to tell tmux to pass it through:



          printf 'ePtmux;e%se\' "$escape_sequence"


          where escape_sequence is the sequence you want tmux to pass out to the terminal.



          There is not much documentation for this, but evidence can be found in the CHANGES file for the 1.5 release: https://github.com/tmux/tmux/blob/1.5/CHANGES#L33






          share|improve this answer




















          • sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
            – Aron Lee
            Dec 6 '17 at 1:33











          • Could you put the FULL command so that I can try it on my terminal?
            – Aron Lee
            Dec 6 '17 at 1:34










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409068%2ftmux-and-control-sequence-character-issue%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          The escape sequence is being interpreted by tmux and is not being passed through to the terminal program that tmux is running in. To have it pass through, you need to wrap the escape sequence to tell tmux to pass it through:



          printf 'ePtmux;e%se\' "$escape_sequence"


          where escape_sequence is the sequence you want tmux to pass out to the terminal.



          There is not much documentation for this, but evidence can be found in the CHANGES file for the 1.5 release: https://github.com/tmux/tmux/blob/1.5/CHANGES#L33






          share|improve this answer




















          • sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
            – Aron Lee
            Dec 6 '17 at 1:33











          • Could you put the FULL command so that I can try it on my terminal?
            – Aron Lee
            Dec 6 '17 at 1:34














          up vote
          1
          down vote



          accepted










          The escape sequence is being interpreted by tmux and is not being passed through to the terminal program that tmux is running in. To have it pass through, you need to wrap the escape sequence to tell tmux to pass it through:



          printf 'ePtmux;e%se\' "$escape_sequence"


          where escape_sequence is the sequence you want tmux to pass out to the terminal.



          There is not much documentation for this, but evidence can be found in the CHANGES file for the 1.5 release: https://github.com/tmux/tmux/blob/1.5/CHANGES#L33






          share|improve this answer




















          • sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
            – Aron Lee
            Dec 6 '17 at 1:33











          • Could you put the FULL command so that I can try it on my terminal?
            – Aron Lee
            Dec 6 '17 at 1:34












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          The escape sequence is being interpreted by tmux and is not being passed through to the terminal program that tmux is running in. To have it pass through, you need to wrap the escape sequence to tell tmux to pass it through:



          printf 'ePtmux;e%se\' "$escape_sequence"


          where escape_sequence is the sequence you want tmux to pass out to the terminal.



          There is not much documentation for this, but evidence can be found in the CHANGES file for the 1.5 release: https://github.com/tmux/tmux/blob/1.5/CHANGES#L33






          share|improve this answer












          The escape sequence is being interpreted by tmux and is not being passed through to the terminal program that tmux is running in. To have it pass through, you need to wrap the escape sequence to tell tmux to pass it through:



          printf 'ePtmux;e%se\' "$escape_sequence"


          where escape_sequence is the sequence you want tmux to pass out to the terminal.



          There is not much documentation for this, but evidence can be found in the CHANGES file for the 1.5 release: https://github.com/tmux/tmux/blob/1.5/CHANGES#L33







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 6 '17 at 1:15









          camh

          23.5k66050




          23.5k66050











          • sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
            – Aron Lee
            Dec 6 '17 at 1:33











          • Could you put the FULL command so that I can try it on my terminal?
            – Aron Lee
            Dec 6 '17 at 1:34
















          • sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
            – Aron Lee
            Dec 6 '17 at 1:33











          • Could you put the FULL command so that I can try it on my terminal?
            – Aron Lee
            Dec 6 '17 at 1:34















          sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
          – Aron Lee
          Dec 6 '17 at 1:33





          sorry, what is the full command to warp escape_sequence: printf 'e[8;100;200t'
          – Aron Lee
          Dec 6 '17 at 1:33













          Could you put the FULL command so that I can try it on my terminal?
          – Aron Lee
          Dec 6 '17 at 1:34




          Could you put the FULL command so that I can try it on my terminal?
          – Aron Lee
          Dec 6 '17 at 1:34

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409068%2ftmux-and-control-sequence-character-issue%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay