General Cleanup, Implemented DMA Allocation
[tpg/acess2.git] / Kernel / drv / vterm.c
index 54f78f4..09f85ff 100644 (file)
@@ -24,6 +24,7 @@
 #define        DEFAULT_COLOUR  (VT_COL_BLACK|(0xAAA<<16))
 
 #define        VT_FLAG_HIDECSR 0x01
+#define        VT_FLAG_HASFB   0x10    //!< Set if the VTerm has requested the Framebuffer
 
 enum eVT_InModes {
        VT_INMODE_TEXT8,        // UTF-8 Text Mode (VT100 Emulation)
@@ -55,6 +56,9 @@ typedef struct {
        tVFS_Node       Node;
 } tVTerm;
 
+// === IMPORTS ===
+extern void    Debug_SetKTerminal(char *File);
+
 // === PROTOTYPES ===
  int   VT_Install(char **Arguments);
 char   *VT_ReadDir(tVFS_Node *Node, int Pos);
@@ -180,6 +184,9 @@ int VT_Install(char **Arguments)
        // Add to DevFS
        DevFS_AddDevice( &gVT_DrvInfo );
        
+       // Set kernel output to VT0
+       Debug_SetKTerminal("/Devices/VTerm/0");
+       
        return 0;
 }
 
@@ -487,6 +494,10 @@ void VT_KBCallBack(Uint32 Codepoint)
                case KEY_F10:   VT_SetTerminal(9);      return;
                case KEY_F11:   VT_SetTerminal(10);     return;
                case KEY_F12:   VT_SetTerminal(11);     return;
+               case KEY_PGUP:
+                       break;
+               case KEY_PGDOWN:
+                       break;
                }
        }
        

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