コマンドラインで終了子のサイズを変更する

コマンドラインで終了子のサイズを変更する

terminator私の願いは、(私が使用する)端末のサイズを勝手に増減することです。たとえば、コマンドを実行するとウィンドウのサイズをresize 600-400変更できます。terminator

可能ですか?そうでterminatorない場合は、これを実行できる他の端末がありますか?

ベストアンサー1

持つ制御シーケンス端末のサイズ(および位置)を変更できます。

alias term-norm='printf "\033[8;24;80t"'
alias term-tall='printf "\033[8;0;80t"'

または詳細

ESC [
     Control Sequence Introducer (CSI  is 0x9b)

...

CSI Ps ; Ps ; Ps t
          Window manipulation (from dtterm, as well as extensions).
          These controls may be disabled using the allowWindowOps
          resource.  Valid values for the first (and any additional
          parameters) are:
            Ps = 1  -> De-iconify window.
            Ps = 2  -> Iconify window.
            Ps = 3  ;  x ;  y -> Move window to [x, y].
            Ps = 4  ;  height ;  width -> Resize the xterm window to
          given height and width in pixels.  Omitted parameters reuse
          the current height or width.  Zero parameters use the dis-
          play's height or width.
            Ps = 5  -> Raise the xterm window to the front of the stack-
          ing order.
            Ps = 6  -> Lower the xterm window to the bottom of the
          stacking order.
            Ps = 7  -> Refresh the xterm window.
            Ps = 8  ;  height ;  width -> Resize the text area to given
          height and width in characters.  Omitted parameters reuse the
          current height or width.  Zero parameters use the display's
          height or width.
            Ps = 9  ;  0  -> Restore maximized window.
            Ps = 9  ;  1  -> Maximize window (i.e., resize to screen
          size).
            Ps = 9  ;  2  -> Maximize window vertically.
            Ps = 9  ;  3  -> Maximize window horizontally.
            Ps = 1 0  ;  0  -> Undo full-screen mode.
            Ps = 1 0  ;  1  -> Change to full-screen.
            Ps = 1 0  ;  2  -> Toggle full-screen.
...

おすすめ記事