Esempio 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];
 }
Esempio 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;
        }
Esempio 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();
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 40, consoleManager)
 {
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 25, consoleManager, 25)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 25, consoleManager, 25)
 {
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleSession"/> class.
 /// </summary>
 public ConsoleSession(ConsoleManager consoleManager)
     : this(80, 40, consoleManager)
 {
 }