Misc changes, working on the VTerm's VT100 support and CLIShell's input
authorJohn Hodge <[email protected]>
Thu, 22 Jul 2010 13:12:12 +0000 (21:12 +0800)
committerJohn Hodge <[email protected]>
Thu, 22 Jul 2010 13:12:12 +0000 (21:12 +0800)
Kernel/drv/vterm.c
Kernel/include/acess.h
Usermode/Applications/CLIShell_src/main.c

index 5545da7..d868923 100644 (file)
@@ -800,6 +800,7 @@ int VT_int_ParseEscape(tVTerm *Term, char *Buffer)
                if( '0' <= c && c <= '9' )
                {
                        do {
+                               if(c == ';')    c = Buffer[j++];
                                while('0' <= c && c <= '9') {
                                        args[argc] *= 10;
                                        args[argc] += c-'0';
@@ -863,6 +864,11 @@ int VT_int_ParseEscape(tVTerm *Term, char *Buffer)
                                        break;
                                }
                                break;
+                       // Set cursor position
+                       case 'h':
+                               Term->WritePos = args[0] + args[1]*Term->Width;
+                               Log_Debug("VTerm", "args = {%i, %i}", args[0], args[1]);
+                               break;
                        // Set Font flags
                        case 'm':
                                for( ; argc--; )
index f355a78..993aa1f 100644 (file)
@@ -9,7 +9,6 @@
 #define PACKED __attribute__ ((packed))
 #define offsetof(st, m) ((Uint)((char *)&((st *)(0))->m - (char *)0 ))
 
-
 //#include <stdint.h>
 #include <arch.h>
 #include <stdarg.h>
index 579df88..50c9589 100644 (file)
@@ -1,7 +1,7 @@
 /*\r
  * AcessOS Shell Version 3\r
  */\r
-#define USE_READLINE   0\r
+#define USE_READLINE   1\r
 #include <acess/sys.h>\r
 #include <stdlib.h>\r
 #include <stdio.h>\r

UCC git Repository :: git.ucc.asn.au