FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 12-24-2009, 02:00 PM
pk
 
Default xconsole characters

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
 
Old 12-25-2009, 09:53 AM
Willie Wong
 
Default xconsole characters

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.141592653589793238462643383279502884197169399375 1058209749445923078164062862
08998628034825342117067982148086513282306647093844 6095505822317253594081284811
17450284102701938521105559644622948954930381964428 8109756659334461284756482337
86783165271201909145648566923460348610454326648213 3936072602491412737245870066
Sortir en Pantoufles: up 1113 days, 9:30
 
Old 12-25-2009, 01:57 PM
pk
 
Default xconsole characters

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
 

Thread Tools




All times are GMT. The time now is 10:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org