Mosa.Kernel.x86.ConsoleSession.ScrollUp C# (CSharp) Method

ScrollUp() protected method

Scrolls up.
protected ScrollUp ( ) : void
return void
        protected void ScrollUp()
        {
            for (uint r = 0; r < ScrollRow; r++)
            {
                for (uint c = 0; c < Columns; c++)
                {
                    uint address = r * Columns + c;

                    if (r == ScrollRow)
                    {
                        text[address] = 0;
                        textcolor[address] = BackgroundColor;
                    }
                    else
                    {
                        text[address] = text[address + Columns];
                        textcolor[address] = textcolor[address + Columns];
                    }

                    if (consoleManager != null)
                    {
                        consoleManager.RawWrite(this, r, c, (char)text[address], textcolor[address]);
                    }
                }
            }
        }