The colors aptitude uses to display various things on the
screen can be customized to your liking. To change the
color of the user interface element
elt, you set the configuration
key
Aptitude::UI::Colors::
to a group of two elements: the foreground color and the
background color. In other words, to make broken packages
red-on-black instead of black-on-red, put this in the
configuration file:
elt
Aptitude::UI::Colors::PkgBroken {red; black;};
The available colors are black,
blue, cyan,
green, magenta,
red, white, and
yellow
[11]
. You can cause the element to appear in bold text by
placing “bold” in front of the foreground
color; for instance, boldwhite. Finally,
you can enter integers, which will be directly used as text
attributes.
Putting it all together, a simple, if extremely ugly, redefinition of some colors would look like this:
Aptitude::UI::Colors {
DefaultWidgetBackground {boldwhite; magenta;};
ScreenStatusColor {green; cyan;};
ScreenHeaderColor {red; yellow;};
Progress {cyan; white;};
};This would result in the following display:

The colors that can be customized are shown in Figure 2.10, “Customizable colors in aptitude”. The default for each color is given
as a pair
.
foreground,background
Figure 2.10. Customizable colors in aptitude
| Color | Default | Description |
|---|---|---|
| Bullet | yellow,black | The color used to display the bullets in bulleted lists. |
DefaultWidgetBackground | white,black | The color used to draw blank areas of the screen, and the default color used to display text. |
DepBroken | black,red | The color used to display unfulfilled dependencies. |
DownloadHit | black,green | The color used to indicate that a file was “hit”: ie, it was checked but is unchanged, so it won't be donloaded. |
DownloadProgress | black,yellow | The color used to display the progress indicator for a download. |
Error | boldwhite,red | The color used to display error messages. |
HighlightedMenuBar | boldwhite,blue | The color used to display the currently selected menu in the menu bar. |
HighlightedMenuEntry | boldblue,white | The color used to display the currently selected choice in a menu. |
MediaChange | boldyellow,red | The color used when asking the user to change CDs. |
MenuBar | boldblue,white | The color used to display the menu bar. |
MenuBorder | boldwhite,blue | The color used to draw borders around menus. |
MenuEntry | white,blue | The color used to display the choices in a menu. This will be changed to boldface when drawing hotkeys. |
MineBombColor | boldred,black | The color used to display bombs in Minesweeper. |
MineFlagColor | boldred,black | The color used to display flags in Minesweeper. |
PkgBroken | black,red | The color used to display packages which have unfulfilled dependencies. |
PkgToHold | black,white | The color used to display packages which are on hold. |
PkgToInstall | black,green | The color used to display packages which are being installed (not upgraded) or reinstalled. |
PkgToRemove | black,magenta | The color used to display a package which will be removed or purged. |
PkgToUpgrade | black,cyan | The color used to display a package which will be upgraded. |
Progress | blue,yellow | The color used to display progress indicators such as the one that appears while the package cache is being loaded. |
ScreenHeaderColor | boldwhite,blue | The color used to display a screen header (information at the top of the screen). |
ScreenStatusColor | boldwhite,blue | The color used to display a status line at the bottom of the screen. |