Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2019 16:51:34 +0100
From:      Michael Tuexen <tuexen@freebsd.org>
To:        "powerpc@freebsd.org" <powerpc@FreeBSD.org>
Subject:   Console color output on G5/Black Bird 
Message-ID:  <8B56CC7C-F5BC-4153-9878-59D5BC252482@freebsd.org>

next in thread | raw e-mail | index | archive | help
Dear all,

the color output on the console an G5 or Black Bird machines seems to be =
wrong.

When running a shell script with

printf "\033[30m%15s\033[0m\n" "BLACK   #000000"
printf "\033[31m%15s\033[0m\n" "RED     #FF0000"
printf "\033[32m%15s\033[0m\n" "GREEN   #00FF00"
printf "\033[33m%15s\033[0m\n" "YELLOW  #FFFF00"
printf "\033[34m%15s\033[0m\n" "BLUE    #0000FF"
printf "\033[35m%15s\033[0m\n" "MEGENTA #FF00FF"
printf "\033[36m%15s\033[0m\n" "CYAN    #00FFFF"
printf "\033[37m%15s\033[0m\n" "WHITE   #FFFFFF"

on the G5 it seems that the red byte and the blue byte are swapped. So =
RED is written in blue,
for example. A similar but different issue is on the console on the =
Black Bird.

Any idea where the problem (I guess it is a byte ordering one) could be =
located?
In head/sys/dev/vt/hw/ofwfb/ofwfb.c for the G5? A different place for =
the Black bird?

Best regards
Michael=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B56CC7C-F5BC-4153-9878-59D5BC252482>