public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] xconsole characters
@ 2009-12-24 15:00 pk
  2009-12-25 10:53 ` Willie Wong
  0 siblings, 1 reply; 3+ messages in thread
From: pk @ 2009-12-24 15:00 UTC (permalink / raw
  To: GentooUser

Hi,

Does anyone know if there's a way to configure xconsole to not display
control characters (at least that's what I think it is)? Currently
xconsole displays this when XDM starts:

 [32;01m*[0m Setting clock via the NTP client 'ntpdate' ...
[A[152C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Starting postfix (/etc/postfix) ...
[A[152C  [34;01m[ [32;01mok[34;01m ][0m

I've tried google but it seems my search skills are somewhat lacking...
or noone else has this problem.

The file where xconsole is started:
/usr/lib/X11/xdm/Xsetup_0

... which contains this:
xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed \
-exitOnFail
#xterm -C -geometry 480x130-0-0 -fn fixed -title "Xconsole"

Which doesn't really make it any clearer... I've tried to switch between
xconsole and xterm but the xterm one will expand and cover the whole
screen so that I can't see the login prompt...

I'm running a stable system and the xdm version installed is 1.1.8,
xconsole is 1.0.3-r1.

Any help is very much appreciated!

Merry Christmas!

Peter K




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] xconsole characters
  2009-12-24 15:00 [gentoo-user] xconsole characters pk
@ 2009-12-25 10:53 ` Willie Wong
  2009-12-25 14:57   ` pk
  0 siblings, 1 reply; 3+ messages in thread
From: Willie Wong @ 2009-12-25 10:53 UTC (permalink / raw
  To: gentoo-user

On Thu, Dec 24, 2009 at 04:00:37PM +0100, Penguin Lover pk squawked:
> Does anyone know if there's a way to configure xconsole to not display
> control characters (at least that's what I think it is)? Currently
> xconsole displays this when XDM starts:
> 
>  [32;01m*[0m Setting clock via the NTP client 'ntpdate' ...
> [A[152C  [34;01m[ [32;01mok[34;01m ][0m
>  [32;01m*[0m Starting postfix (/etc/postfix) ...
> [A[152C  [34;01m[ [32;01mok[34;01m ][0m

Those are ANSI escape codes. My google-fu is not up to telling me how
to set xconsole to ignore them, but it seems possible that xconsole
just cannot handle ANSI codes? 

A workaround may be to set RC_NOCOLOR="yes" in /etc/conf.d/rc

Some of the init scripts seems to check for them, but I am not sure
whether it will work or not. 

Cheers, 

W
-- 
3.1415926535897932384626433832795028841971693993751058209749445923078164062862
089986280348253421170679821480865132823066470938446095505822317253594081284811
174502841027019385211055596446229489549303819644288109756659334461284756482337
867831652712019091456485669234603486104543266482133936072602491412737245870066
Sortir en Pantoufles: up 1113 days,  9:30



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] xconsole characters
  2009-12-25 10:53 ` Willie Wong
@ 2009-12-25 14:57   ` pk
  0 siblings, 0 replies; 3+ messages in thread
From: pk @ 2009-12-25 14:57 UTC (permalink / raw
  To: gentoo-user

Willie Wong wrote:

> Those are ANSI escape codes. My google-fu is not up to telling me how
> to set xconsole to ignore them, but it seems possible that xconsole
> just cannot handle ANSI codes? 

Yes, that's what I was afraid of... However, it seems many people uses
xconsole a bit differently by creating a /dev/xconsole pipe (fifo) and
getting syslog to pipe information to that and letting the program
xconsole to read from that fifo (xconsole -file /dev/xconsole)... I
found this:
http://www.linuxfromscratch.org/hints/downloads/files/xconsole_setup.txt

> A workaround may be to set RC_NOCOLOR="yes" in /etc/conf.d/rc

That may work, but I upgraded X yesterday and the start order of xdm has
changed (previously it was started right after networking, IIRC); now it
starts right before "local". My main interest in xconsole was to see if
ntp-client was started correctly and since the new order displays ntp
ok/nok on the console before xdm starts, xconsole seems a bit redundant...

Thanks anyway!

Happy new year!

Best regards

Peter K



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-25 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24 15:00 [gentoo-user] xconsole characters pk
2009-12-25 10:53 ` Willie Wong
2009-12-25 14:57   ` pk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox