Alterando o tamanho do terminador da linha de comando

1

Meu desejo é que eu tenha a capacidade de ampliar e reduzir o tamanho do terminal (eu uso terminator ) à vontade. Por exemplo, ao dar o comando resize 600-400 , posso redimensionar minha janela terminator .

É possível? E se terminator não for capaz disso, existe algum outro terminal que possa fazer isso?

    
por user3467407 28.06.2017 / 15:55

1 resposta

0

Existem seqüências de controle que podem alterar o tamanho (e posicionamento) de um terminal, por exemplo,

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

ou em detalhes

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.
...
    
por 28.06.2017 / 16:04