Le Wednesday 13 July 2005 17:33, Serge Noiraud a écrit :
> Le mercredi 13 Juillet 2005 16:24, Jean-Claude Garaud a écrit :
> > Est-il possible d'affecter (facilement) une chaîne de caractères à une
> > touche (ou une combinaison de touches) ?
> > Je n'ai pas encore touvé la solution sur le web.
>
> Pour une application bien précise ?
> Pour une touche fonction je suppose ?
> Sous X11 ? KDE ? Gnome ?
> pout un vt ?
> par exemple, pour xterm, rxvt, aixterm, dtterm, ... c'est faisable.
> Ce doit l'etre pour d'autre.
>
> exemple xterm et rxvt :
>
> $HOME/.Xdefaults
> ...
> XTerm*vt100.translations: #override \
>          <Key>F1: string("export DISPLAY=canary:0") string(0x0d)\n\
>          <Key>F2: string("export DISPLAY=samoa:0") string(0x0d)\n\
>          <Key>F3: string("export DISPLAY=fidji:0") string(0x0d) \n\
>          <Key>F4: string("export DISPLAY=kosamui:0") string(0x0d)\n\
>          <Key>F5: string("export DISPLAY=192.168.49.58:0") string(0x0d)\n\
>          <Key>F6: string("export DISPLAY=:0") string(0x0d)\n\
>          <Key>F7: string("rsh canary ipcs") string(0x0d) \n\
>          <Key>F8: string("rsh canary ipcrm -s ") \n\
>          <Key>F10: string("export TERM=vt100") string(0x0d)\n\
>          <Key>F11: string("lpstat -anaxos -amaquatie") string(0x0d)\n\
>          <Key>F12: string("exit") string(0x0d) \n\
>          <Key>Prior:    string(0x1b) string(5~) \n\
>          <Key>Next: string(0x1b) string(6~)
> /* rxvt */
> rxvt*translations: #override \
>          <Key>F1: string("export DISPLAY=canary:0") string(0x0d)\n\
>          <Key>F2: string("export DISPLAY=samoa:0") string(0x0d)\n\
>          <Key>F3: string("export DISPLAY=fidji:0") string(0x0d) \n\
>          <Key>F4: string("export DISPLAY=terx:0") string(0x0d)\n\
>          <Key>F5: string("export DISPLAY=192.168.49.58:0") string(0x0d)\n\
>          <Key>F6: string("export DISPLAY=:0") string(0x0d)\n\
>          <Key>F7: string("rsh canary ipcs") string(0x0d) \n\
>          <Key>F8: string("rsh canary ipcrm -s ") \n\
>          <Key>F10: string("export TERM=vt100") string(0x0d)\n\
>          <Key>F11: string("lpstat -anaxos -amaquatie") string(0x0d)\n\
>          <Key>F12: string("exit") string(0x0d)
>
> ...
>

Pour une touche de fonction.
C'est pour KDE (ou éventuellement Gnome) pour afficher une chaîne de 
caractères dans une "Konsole". Mais ce serait intéressant aussi pour une 
appli telle que kwrite par exemple.
J'ai crée un  fichier $HOME/.Xdefaults suivant le modèle ci-dessus et j'ai 
relancé X mais ça ne change rien !?

Jean-Claude

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Répondre à