rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git] / lunaix-os / hal / char / LConfig
index 157e2d7ba1036cbada8f227ba29d33d2bd7b5f67..b4ecff10b63acb187cb0b07b4209c7df1f9b775b 100644 (file)
@@ -1,14 +1,22 @@
-include("uart")
+from . import uart
 
-@Collection
+@"Character Devices"
+@(parent := hal)
 def char_device():
     """ Controlling support of character devices """
 
-    add_to_collection(hal)
-
-    @Term
-    def vga_console():
+    @"VGA 80x25 text-mode console"
+    def vga_console() -> bool:
         """ Enable VGA console device (text mode only) """
 
-        type(bool)
-        default(True)
+        return True
+
+    @"VGA character game device"
+    def chargame_console() -> bool:
+        """ 
+            Enable VGA Charactor Game console device (text mode only) 
+
+            You normally don't need to include this, unless you want some user space fun ;)
+        """
+
+        return False
\ No newline at end of file