Exemplo n.º 1
0
 public ConsoleSession(byte columns, byte rows, ConsoleManager consoleManager)
 {
     Columns = columns;
     Rows = rows;
     ConsoleManager = consoleManager;
     text = new byte[Columns * Rows];
     textcolor = new byte[Columns * Rows];
 }
Exemplo n.º 2
0
        public ConsoleSession(uint columns, uint rows, ConsoleManager consoleManager, uint scrollRow)
        {
            Columns = columns;
            Rows = rows;
            ConsoleManager = consoleManager;
            text = new byte[Columns * Rows];
            textcolor = new byte[Columns * Rows];
            ScrollRow = scrollRow;

            Color = Colors.White;
            BackgroundColor = Colors.Black;
        }
Exemplo n.º 3
0
        public static void Setup()
        {
            // At this stage, allocating memory does not work, so you are only allowed to use ValueTypes or static classes.
            IDT.SetInterruptHandler(null);
            Panic.Setup();
            Debugger.Setup(Serial.COM1);

            // Initialize interrupts
            PIC.Setup();
            IDT.Setup();

            // Initializing the memory management
            Multiboot.Setup();
            GDT.Setup();
            PageFrameAllocator.Setup();
            PageTable.Setup();
            VirtualPageAllocator.Setup();
            GC.Setup();

            // At this point we can use objects, that allocates memory
            SmbiosManager.Setup();
            ConsoleManager.Setup();
            Internal.Setup();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 40, consoleManager)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 25, consoleManager, 25)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 25, consoleManager, 25)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 40, consoleManager)
 {
 }