mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-11 09:34:09 +03:00
3e571bd7cc
git-svn-id: svn://kolibrios.org@6443 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
458 B
C
23 lines
458 B
C
// demonstration conio use, color text
|
|
// more info in conio.h
|
|
|
|
#include <conio.h>
|
|
|
|
int main()
|
|
{
|
|
int i;
|
|
if (con_init_console_dll()) return 1; // init fail
|
|
|
|
// con_write_asciiz("\033[0;31;42m test \n"); // red on green bk
|
|
|
|
for(i = 30; i < 48; i++)
|
|
{
|
|
con_printf("\033[%dmColor 0x%02X: ", i, i);
|
|
con_write_asciiz("Text sample.");
|
|
|
|
con_printf(" printf %s test %d\n", "small", i);
|
|
|
|
}
|
|
|
|
con_exit(0);
|
|
} |