2019-01-08 23:12:47 +00:00
# include "retro/Console.h"
2015-09-08 21:47:46 +00:00
# include <string.h>
2019-01-08 23:12:47 +00:00
namespace retro
2015-09-08 21:47:46 +00:00
{
2019-08-18 11:21:00 +00:00
void InitConsole ( ) ;
2015-09-08 21:47:46 +00:00
}
int main ( )
{
2019-08-18 11:21:00 +00:00
retro : : InitConsole ( ) ;
2020-01-14 21:46:05 +00:00
std : : string out = " \033 ]0;Hello world win \007 Hello, \033 [1mexternal world of \033 [0m \033 [3mtrue beauty and \033 [4mgreatness \033 [0m. \n Enter \" exit \" to quit. \n " ;
2020-01-17 23:33:55 +00:00
2019-08-18 11:21:00 +00:00
retro : : Console : : currentInstance - > write ( out . data ( ) , out . size ( ) ) ;
2020-01-15 23:11:56 +00:00
2019-08-18 11:21:00 +00:00
std : : string in ;
do
{
in = retro : : Console : : currentInstance - > ReadLine ( ) ;
out = " You Entered: " + in ;
retro : : Console : : currentInstance - > write ( out . data ( ) , out . size ( ) ) ;
} while ( in ! = " exit \n " ) ;
return 0 ;
2015-09-08 21:47:46 +00:00
}