Le jeudi 16 mai, Emmanuel Rouat a écrit :
> #----------------------------------------------------
> # Setting of $TERM and $DISPLAY
> #----------------------------------------------------
>
> # 'TERM' variable is of the form 'TERM-DISPLAY' for rlogin:
> read TERM DISPLAY < <(IFS=-; echo $TERM)
> if [ -z $DISPLAY ]; then # DISPLAY has not been set previously, means
> localhost
> DISPLAY=":0.0"
> fi
> export DISPLAY
>
> function rlogin()
> {
> local XSERVER
> if [[ "${DISPLAY}" == ":0.0" ]]; then
> XSERVER=${HOST}:0.0 # local display
> else
> XSERVER=$DISPLAY # remote display
> fi
> export TERM="${TERM}-${XSERVER}"
> command rlogin $@
> export TERM=${TERM%%-*}
> }
>
> ca marche ca?
J'ai pas testé mais ça m'a l'air très honnête...
--
Edgar Bonet Tel: +33 476 881 096
Laboratoire Louis Néel -- CNRS Mobile: +33 677 197 939
25 av. des Martyrs, BP 166 Fax: +33 476 881 191
38042 Grenoble cedex 9, France e-mail: bonet@???