hi all
I would like to know does any concole class in Symbian, for example, CEikConsoleScreen or CConsoleBase support ANSI.SYS standard. I mean does any console mode in Symbian support the key words like "\x1B[...".
hi all
I would like to know does any concole class in Symbian, for example, CEikConsoleScreen or CConsoleBase support ANSI.SYS standard. I mean does any console mode in Symbian support the key words like "\x1B[...".
Yes symbian support most of escape characters.
a sad news. I test the ANSI Escape code(or CSI) on the Symbian S60 SDK 3 emulator using CEikConsoleScreen. The result is really frustrated. It didn't work! partial of my sample codes are below.
iConsole->SetKeepCursorInSight(TRUE);
iConsole->DrawCursor();
iConsole->ConsoleControl()->SetFocus(ETrue, EDrawNow);
_LIT(KText,"\x1b[5mThis is a console test.%d");
iConsole->Printf(KText,120);
and it has no effect on emulator. any suggestion?
I am not sure about CEikConsoleScreen but it working fine in CConsoleBase. put your constants (i.e. _LIT(KText,"\x1b[5mThis is a console test.%d"); ) global.
I started a console mode application in emulation. but it didn't work on emulator. I only add two lines below the hello world example. check it out
_LIT(KHelloWorldText,"Hello testConsole!\n");
console->Printf(KHelloWorldText);
_LIT(KText,"\x1b[7mThis is a console test.%d");
console->Printf(KText,120);
Your helloworld is working fine??? Hope u have not removed console->Getch() form E32Main(). Put your _LIT(KHelloWorldText,"Hello testConsole!\n") and _LIT(KText,"\x1b[7mThis is a console test.%d") out of main() function.