View previous topic :: View next topic |
Author |
Message |
alctraz Tux's lil' helper
Joined: 12 May 2004 Posts: 117 Location: belgium
|
Posted: Thu Apr 07, 2005 3:07 pm Post subject: [term] coloration [resolu] |
|
|
Salut,
J'ai remarqué que, même si la configuration des couleurs dans mon .Xdefaults est identique pour xterm et urxvt, la coloration des fichiers n'est pas la meme lors d'un ls: http://www.groulala.net/alctraz/screenshots/2005-04-07_1400x1050_xterm_urxvt.png
Il semble que xterm reconnait les fichiers selon leur extension.
Ou est-il possible de configurer ce comportement? Et est-ce aussi possible avec urxvt?
merci
Last edited by alctraz on Thu Apr 07, 2005 6:46 pm; edited 1 time in total |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Apr 07, 2005 3:19 pm Post subject: |
|
|
Mon urxvt se comporte comme ton xterm, je te poste mon .Xdefaults en rentrant (d'ici 45 mn) si tu n'a pas eu la soluce d'ici là. |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Apr 07, 2005 4:36 pm Post subject: |
|
|
Code: | root@unicorn_1 enlight # cat .Xdefaults
urxvt*borderLess: false
urxvt*loginShell: false
urxvt*inheritPixmap: true
urxvt*tintColor: #312637
#urxvt*tintColor: #ABC865
#urxvt*tintColor: #5e0c3a
urxvt*foreground: #ffffff
urxvt*background: #000000
urxvt*scrollBar: false
urxvt*saveLines: 1000
urxvt*geometry: 78x24
urxvt*externalBorder: 2
urxvt*internalBorder: 4
#urxvt*font: xft:Bitstream Vera Sans Mono:charwidth=10:pixelsize=12
urxvt*font: xft:Courier:charwidth=12:pixelsize=13
!urxvt*font: -*-Bright-*
urxvt*color0: #000000
urxvt*color1: #a35757
urxvt*color2: #269956
urxvt*color3: #D8EB13
urxvt*color4: #414171
urxvt*color5: #963c59
urxvt*color6: #418179
urxvt*color7: #bebebe
urxvt*color8: #1A1018
urxvt*color9: #670A37
urxvt*color10: #15E653
urxvt*color11: #fff796
urxvt*color12: #2EC6F0
urxvt*color13: #DA5BA2
urxvt*color14: #71bebe
urxvt*color15: #FFFCFD |
Voilà, je t'avoue ne pas savoir exactement laquelle est responsable de cette différence? celle avec font -*-Bright-*??? Tu me diras si c'est bon? |
|
Back to top |
|
|
alctraz Tux's lil' helper
Joined: 12 May 2004 Posts: 117 Location: belgium
|
Posted: Thu Apr 07, 2005 5:28 pm Post subject: |
|
|
Bon, j'ai ecrasé mon .Xdefault avec le tiens, sans resultat :/
Je suppose que ce coloriage doit etre configurable qq part? L'utilisateur doit probablement pouvoir choisir les types de fichiers qui seront mis en couleur, que ce soit avec xterm ou urxvt.
Voici mon .Xdefault au cas ou ca pourrait éclairer qq'un:
Code: | Emacs*font: -*-terminus-medium-*-*-*-*-120-*-*-*-*-*-*
! xterm options
XTerm*faceName: Bitstream Vera Sans Mono
XTerm*faceSize: 10
XTerm*boldFont: Bitstream Vera Sans Mono Bold
XTerm*scrollBar: false
XTerm*scrollTtyOutput: false
XTerm*scrollKey: true
XTerm*saveLines: 10000
XTerm*loginShell: true
XTerm*jumpScroll: true
XTerm*multiScroll: true
XTerm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48,58:48
!XTerm*internalBorder: 2
! xterm colors
XTerm*background: #1c2636
XTerm*foreground: #ffffff
XTerm*color0: #000000
XTerm*color1: #a35757
XTerm*color2: #7a8672
XTerm*color3: #968a38
XTerm*color4: #414171
XTerm*color5: #963c59
XTerm*color6: #418179
XTerm*color7: #bebebe
XTerm*color8: #666666
XTerm*color9: #a35757
XTerm*color10: #c5f779
XTerm*color11: #fff796
XTerm*color12: #4186be
XTerm*color13: #cf9ebe
XTerm*color14: #71bebe
XTerm*color15: #ffffff
! ---------[ urxvt ] ---------
urxvt*scrollBar: false
urxvt*saveLines: 20000
urxvt*inheritPixmap: false
urxvt*foreground: #DDDDDD
urxvt*background: #1c2636
urxvt*color0: #000000
urxvt*color1: #a35757
urxvt*color2: #7a8672
urxvt*color3: #968a38
urxvt*color4: #414171
urxvt*color5: #963c59
urxvt*color6: #418179
urxvt*color7: #bebebe
urxvt*color8: #666666
urxvt*color9: #a35757
urxvt*color10: #c5f779
urxvt*color11: #fff796
urxvt*color12: #4186be
urxvt*color13: #cf9ebe
urxvt*color14: #71bebe
urxvt*color15: #ffffff |
|
|
Back to top |
|
|
bosozoku Advocate
Joined: 11 Jan 2004 Posts: 2431 Location: Roazhon
|
Posted: Thu Apr 07, 2005 6:00 pm Post subject: |
|
|
Pour ce genre de coloration, ça depasse la config des *terms.
Il faut regarder du coté de dircolors. Dans mon bashrc par exemple :
Code: | # colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
|
Si tu regardes u peu ce fameux fichier DIR_COLORS, tu vas vite comprendre _________________ Stationlinux.org - Wiki Fvwm FR - Config Fvwm |
|
Back to top |
|
|
billiob Guru
Joined: 30 Dec 2004 Posts: 425 Location: Paris, France
|
Posted: Thu Apr 07, 2005 6:02 pm Post subject: |
|
|
La coloration est gérée par LS_COLORS. Vérifies que echo $LS_COLORS donne la même dans les 2 terms.
Sinon, vérifies que urxvt accepte tes couleurs avec ^[ couleurs. ( se fait avec CTRL+V+ESC) _________________ billiob |
|
Back to top |
|
|
alctraz Tux's lil' helper
Joined: 12 May 2004 Posts: 117 Location: belgium
|
Posted: Thu Apr 07, 2005 6:34 pm Post subject: |
|
|
Merci pour vos reponses.
La variable $LS_COLORS etait effectivement vide dans le cas de urxvt.
J'utilise zsh et j'avais la ligne suivante dans mon zshrc:
Code: | which dircolors > /dev/null && eval "`dircolors`" |
qui exporte $LS_COLORS dans xterm mais pas dans urxvt, ce que je ne comprends pas...
Illustration: (j'ai enleve la ligne en question du zshrc avant de faire ce test evidement)
Dans xterm:
Code: | alctraz@gentoo-lap ~ % echo $LS_COLORS
alctraz@gentoo-lap ~ % which dircolors > /dev/null && eval "`dircolors`"
alctraz@gentoo-lap ~ % echo $LS_COLORS
no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:
*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:
*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:
*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:
*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
|
Par contre, dans urxvt:
Code: | alctraz@gentoo-lap ~ % echo $LS_COLORS
alctraz@gentoo-lap ~ % which dircolors > /dev/null && eval "`dircolors`"
alctraz@gentoo-lap ~ % echo $LS_COLORS
|
C'est un peu bizard...
Par contre, la ligne suivante fonctionne dans les 2 cas, donc je l'ai simplement substituée a la précédante et ca fonctionne comme ca devrait.
Code: | eval `dircolors -b /etc/DIR_COLORS` |
merci |
|
Back to top |
|
|
billiob Guru
Joined: 30 Dec 2004 Posts: 425 Location: Paris, France
|
Posted: Thu Apr 07, 2005 6:44 pm Post subject: |
|
|
Un petit résolu ? _________________ billiob |
|
Back to top |
|
|
alctraz Tux's lil' helper
Joined: 12 May 2004 Posts: 117 Location: belgium
|
Posted: Thu Apr 07, 2005 6:47 pm Post subject: |
|
|
billiob wrote: | Un petit résolu ? |
oui, même si ca ne l'est qu'en pratique. |
|
Back to top |
|
|
billiob Guru
Joined: 30 Dec 2004 Posts: 425 Location: Paris, France
|
Posted: Thu Apr 07, 2005 7:16 pm Post subject: |
|
|
J'avais l'impression que ton problème était résolu. Désolé _________________ billiob |
|
Back to top |
|
|
alctraz Tux's lil' helper
Joined: 12 May 2004 Posts: 117 Location: belgium
|
Posted: Thu Apr 07, 2005 7:49 pm Post subject: |
|
|
billiob wrote: | J'avais l'impression que ton problème était résolu. Désolé |
sisi, c'est resolu, et c'est toi qui a mis le doigt sur le pb.
Je voulais juste dire que remplacer betement la ligne comme je l'ai fait, ce n'est finalement que contourner l'obstacle.
J'ai tjs pas compris pourquoi la première methode fonctionnait pour xterm mais pas urxvt. |
|
Back to top |
|
|
|