dloader: First step in improving looks of boot menu
authorJohn Marino <draco@marino.st>
Fri, 28 Nov 2014 22:07:46 +0000 (23:07 +0100)
committerJohn Marino <draco@marino.st>
Sat, 29 Nov 2014 00:02:32 +0000 (01:02 +0100)
commita031988aa7e2e5fef9bac344a5affaf31205c214
tree9afd46de574df4ee34dfd6be80e78f3a826c5abc
parent26595b188cbe468e3b07a13e2a5cfaa3de0d7843
dloader: First step in improving looks of boot menu

The boot menu essentially hasn't changed since it was converted to C
a few years ago.  The line between Fred and menu always bugged me, but I
suppose some people like it.  I added a new loader option called
"fred_separated" that is off by default, but if set on in loader.conf,
it will bring back the line.  When the line isn't present, Fred shifts
over by two characters which makes him centered.

While here, improve the colorization of Fred.  Colorization is not turned
on by default.  Before that can happen, adequate detection for a serial
console must be added to avoid using ansi color codes on it.

Since Fred has always been depicted as a red DragonFly with red wings, he
has been given bright red wings against a darker red body, and eyes have
changed from green yellow.  His shape has been tweaked as well.  His
scorpion stinger was sanded down to a small point and his mosquito beak
was made shorter so his head looks more like a DragonFly.  His thorax was
improved with curly brackets.

The original look can be restored by putting this in /boot/loader.conf:
  fred_separated="YES"

Approved by: Positive feedback on IRC channel
sys/boot/dloader/cmds.c
sys/boot/dloader/loader.conf