2 /* ----------------------------------------------------------------------- *
4 * Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 * Boston MA 02111-1307, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * ----------------------------------------------------------------------- */
17 * Hello, World! using libcom32 and ANSI console; also possible to compile
18 * as a Linux application for testing.
24 #include <consoles.h> /* Provided by libutil */
32 printf("\033[1;33;44m *** \033[37mHello, World!\033[33m *** \033[0m\n");
35 printf("\033[1;36m>\033[0m ");
36 fgets(buffer
, sizeof buffer
, stdin
);
37 if ( !strncmp(buffer
, "exit", 4) )
39 printf("\033[1m:\033[0m %s", buffer
);