[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] Terminal size
> De : Alain Spineux <spineux@prm.ucl.ac.be>
> A : linux-team@rtfm.be
> Objet : Re: [linux-team] Terminal size
> Date : mercredi 10 février 1999 12:00
[clip]
> > Le problème est temporairement résolu par un (très) méchant hack, mais si
qqn
> > sait faire les choses proprement ...
>
> Peut-etre as-tu customise les sources de agetty !
Non, c'est _PIRE_ !!!
Dans .bash_profile, j'ai :
if [ "$TTY" = "/dev/ttyS1" ]; then
echo -ne "\033[77n" # requête à dos_term, renvoie
# "export LINES=%d\nexport COLUMNS=%d\n"
# sur stdin (comme si tapé par l'utilisateur)
read CMD; eval "$CMD"
read CMD; eval "$CMD"
~/bin/term-size # term-size fait un ioctl() pour signaler à
# Linux la nouvelle taille du terminal
else
...
fi
Si quelqu'un peut faire plus cochon, j'écoute :). C'est néanmoins la seule
solution que j'aie trouvé, étant donné que à chaque démarrage, on peut changer
le mode vidéo de dos_term (80x25, 80x28, 80x50 et .... 40x25 - très fun, mc
là-dessus ça fait un peu C64 :) )
Cu,
Damien.
> --
>
> Spineux Alain
>
> Romani ite domus.
> ======================================================================
> Spineux Alain E-MAIL : spineux@prm.ucl.ac.be
> INSTITUT STEVIN
> Catholic University of Louvain FAX : 32-10-472501
> PLACE DU LEVANT 2 PHONE : 32-10-472516
> B-1348 LOUVAIN-LA-NEUVE (BELGIUM)
> =======================================================================
>
>
> ---------
> This message was send by Majordomo 1.94.3. Please repport problems to
> manu@rtfm.be. If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.