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