From: John Hodge Date: Fri, 25 Sep 2009 12:57:00 +0000 (+0800) Subject: Added debug to newline handler, started extending DIR command X-Git-Tag: rel0.06~504 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=aa09c2350becd947a7e51fd0bdac945f4aa42d2a;p=tpg%2Facess2.git Added debug to newline handler, started extending DIR command --- diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index e5abc737..fef93d88 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -473,6 +473,7 @@ void VT_int_PutChar(tVTerm *Term, Uint32 Ch) { case 0: return; // Ignore NULL byte case '\n': + LOG("%i += %i", Term->WritePos, Term->Width); Term->WritePos += Term->Width; case '\r': Term->WritePos -= Term->WritePos % Term->Width; diff --git a/Usermode/Applications/CLIShell_src/main.c b/Usermode/Applications/CLIShell_src/main.c index 30cf2883..50cf372d 100644 --- a/Usermode/Applications/CLIShell_src/main.c +++ b/Usermode/Applications/CLIShell_src/main.c @@ -1,9 +1,9 @@ /* - AcessOS Shell Version 2 -- Based on IOOS CLI Shell -*/ + * AcessOS Shell Version 3 + */ #include #include +#include #include "header.h" #define _stdin 0 @@ -52,7 +52,6 @@ int main(int argc, char *argv[], char *envp[]) write(_stdout, 1, "\n"); write(_stdout, 36, "Acess Shell Version 3\n"); - write(_stdout, 30, " Based on CLI Shell for IOOS\n"); write(_stdout, 2, "\n"); for(;;) { @@ -425,8 +424,12 @@ void Command_Dir(int argc, char **argv) if(info.flags & FILEFLAG_DIRECTORY) write(_stdout, 1, "/"); - // Revert Colour and end line + // Revert Colour write(_stdout, 6, "\x1B[37m"); + + // Put Size + printf(" Size: %i", info.size); + write(_stdout, 1, "\n"); } // Close Directory