• # Variable COLUMS

    Posté par (site web personnel) . En réponse au message Taille définie du terminal pour une commande donnée. Évalué à 3.

    Sans réglage particulier, voici les dimensions de mon terminal :

    kibi@armor:~$ echo $COLUMNS
    115
    kibi@armor:~$ echo $LINES
    25
    

    Listons les paquets :

    kibi@armor:~$ dpkg -l
    ...
    ii zonecheck 3.0.5-3 all DNS configuration checker
    ii zsh 5.3.1-4+b3 amd64 shell with lots of features
    ii zsh-common 5.3.1-4 all architecture independent files for Zsh
    

    La même chose avec une largeur plus faible :

    kibi@armor:~$ COLUMNS=80 dpkg -l
    ...
    ii zonecheck 3.0.5-3 all DNS configuration checker
    ii zsh 5.3.1-4+b3 amd64 shell with lots of features
    ii zsh-common 5.3.1-4 all architecture independent files fo
    

    ou plus importante :

    kibi@armor:~$ COLUMNS=200 dpkg -l
    ...
    ii zonecheck 3.0.5-3 all DNS configuration checker
    ii zsh 5.3.1-4+b3 amd64 shell with lots of features
    ii zsh-common 5.3.1-4 all architecture independent files for Zsh
    

    Debian Consultant @ DEBAMAX