+ case 'c': // Send Device Attributes
+ switch(args[0])
+ {
+ case 0: // Request attributes from terminal
+ // "VT100 with Advanced Video Option" (same as screen returns)
+ Display_SendInput(Term, "\x1b[?1;2c");
+ break;
+ default:
+ _SysDebug("TODO: Request device attributes \\e[%ic", args[0]);
+ break;
+ }
+ break;
+ case 'f':
+ if( argc != 2 ) {
+ Display_SetCursor(Term, 0, 0);
+ }
+ else {
+ // Adjust 1-based cursor position to 0-based
+ Display_SetCursor(Term, args[0]-1, args[1]-1);
+ }
+ break;
+ case 'h':
+ case 'l':
+ for( int i = 0; i < argc; i ++ )
+ {
+ switch(args[i])
+ {
+ default:
+ _SysDebug("Unknown VT100 mode \e[%i%c",
+ args[i], c);
+ break;
+ }
+ }
+ break;