New names...

This commit is contained in:
Ognjen Milan Robovic 2024-01-03 06:42:23 -05:00
parent 9f21818aaa
commit bc13c796b2

18
xscii.c
View File

@ -1,7 +1,7 @@
#include <xolatile/xtandard.c> #include <xolatile/xtandard.c>
static void echo_line (void) { static void echo_line (void) {
terminal_colour (COLOUR_GREY, EFFECT_BOLD); terminal_colour (colour_grey, effect_bold);
echo (" | "); echo (" | ");
@ -36,7 +36,7 @@ static void echo_code (int character, int colour, int effect) {
terminal_colour (colour, effect); terminal_colour (colour, effect);
if (character == SIGNAL_DELETE) { if (character == signal_delete) {
echo ("DEL"); echo ("DEL");
} else if (character_is_invisible (character) != 0) { } else if (character_is_invisible (character) != 0) {
echo (code [character]); echo (code [character]);
@ -102,17 +102,17 @@ int main (void) {
int character; int character;
for (character = 0; character != 128; ++character) { for (character = 0; character != 128; ++character) {
echo_base (character, 2, COLOUR_WHITE, EFFECT_NORMAL); echo_base (character, 2, colour_white, effect_normal);
echo_base (character, 8, COLOUR_CYAN, EFFECT_NORMAL); echo_base (character, 8, colour_cyan, effect_normal);
echo_base (character, 10, COLOUR_CYAN, EFFECT_ITALIC); echo_base (character, 10, colour_cyan, effect_italic);
echo_base (character, 16, COLOUR_CYAN, EFFECT_BOLD); echo_base (character, 16, colour_cyan, effect_bold);
echo_code (character, COLOUR_BLUE, EFFECT_BOLD); echo_code (character, colour_blue, effect_bold);
echo_name (character, COLOUR_PINK, EFFECT_NORMAL); echo_name (character, colour_pink, effect_normal);
if (character % 2 != 0) { if (character % 2 != 0) {
echo ("\n"); echo ("\n");
} }
} }
return (EXIT_SUCCESS); return (0);
} }