PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > yellow color in terminal (Konsole)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

yellow color in terminal (Konsole)

Réponse
 
LinkBack Outils de la discussion
Vieux 05/11/2006, 15h04   #1
Tribulations Parallèles
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut yellow color in terminal (Konsole)

Hi everybody

I have a problem with yellow color in terminal (KDE Konsole). I obtain
yellow as font color, but never as background color.

The first command gives "foobar" in yellow on black background:

$ echo -e "\033[1m\033[33m\033[40m foobar \033[0m"

The second command tries to obtain the video inversion of the former, i.e.
black on yellow. But in place of yellow, I obtain orange in background:

$ echo -e "\033[7m\033[1m\033[33m\033[40m foobar \033[0m"

I do not manage to obtain yellow in background. But it must be possible:
when you select yellow words in VIM editor (try with or without SHIFT
pressed during selection with mouse), VIM makes video inversion, with real
yellow in background.

What is the trick to obtain yellow?

Thanks in advance,

Julien
--
"Allez, Monsieur, allez, et la foi vous viendra." (D'Alembert).
  Réponse avec citation
Vieux 05/11/2006, 15h17   #2
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: yellow color in terminal (Konsole)

2006-11-05, 16:04(+01), Tribulations Parallèles:
> Hi everybody
>
> I have a problem with yellow color in terminal (KDE Konsole). I obtain
> yellow as font color, but never as background color.
>
> The first command gives "foobar" in yellow on black background:
>
> $ echo -e "\033[1m\033[33m\033[40m foobar \033[0m"
>
> The second command tries to obtain the video inversion of the former, i.e.
> black on yellow. But in place of yellow, I obtain orange in background:
>
> $ echo -e "\033[7m\033[1m\033[33m\033[40m foobar \033[0m"
>
> I do not manage to obtain yellow in background. But it must be possible:
> when you select yellow words in VIM editor (try with or without SHIFT
> pressed during selection with mouse), VIM makes video inversion, with real
> yellow in background.
>
> What is the trick to obtain yellow?

[...]

You need color 11 for bright yellow. This is possible as konsole
seems to support 16 colors, even though on my system it claims a
TERM=xterm and the corresponding terminfo entry only advertises
8 colors.

TERM=xterm-16color tput setab 11

Or:

printf '\033[103mfoo\033[m\n'

Or:

printf '\033[93;7mfoo\033[m\n'

See xterm for a terminal with support of 256 colors with a real
palette (pterm might do as well as putty does support 256
colors).

--
Stéphane
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07632 seconds with 10 queries