Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 4.9/5.0, builds 850-998 > 995 – 23 Sep 07

Extended TAB function ATTRSUB

Scroll Prev Top Next More

This function allows for changing the underline attribute to an arbitrary fg/bg color combination. It is useful for slight aesthetic improvement to legacy text-mode programs which use underline, since underline has a rather old-fashioned look.

TAB(-10,AG_ATTRSUB);"1,2,";FG'R;",";FG'G;",";FG'B;","; BG'R;",";BG'G;",";BG'B;chr(127);

where FG'R, FG'G, FG'B are the RGB values (0-255) for the foreground color, and BG'R, BG'G, BG'B are the RGB values (0-255) for the background color.