示例#1
0
 void Clear()
 {
     Typer.Cursor.SetPosition(Typer.borderWidth, Typer.borderHeight);
     _screen.Clear();
     Typer.DrawBorder();
     _command = "";
     NextCommad();
     _screen.Apply();
 }
示例#2
0
        private void ClearPage()
        {
            screen.ResetInvertBlock(typer.Cursor.x, typer.Cursor.y);
            typer.Cursor.SetPosition(typer.borderWidth, typer.borderHeight);
            screen.Clear();
            typer.DrawBorder();
            int step = 4;

            foreach (char c in openedFile)
            {
                screen.TypeChar(Utils.GetCharNumber(c), step++, 0, screen.GetBackColor(), typer.GetBorderColor());
            }
            step = DisplaySystem.COLS / 2;
            foreach (char c in "ctrl+Q to exit")
            {
                screen.TypeChar(Utils.GetCharNumber(c), step++, DisplaySystem.LINES - 1, screen.GetBackColor(), typer.GetBorderColor());
            }
            step = DisplaySystem.COLS / 2;
            foreach (char c in saved ? "    saved" : "ctrl+S to save")
            {
                screen.TypeChar(Utils.GetCharNumber(c), step++, 0, screen.GetBackColor(), typer.GetBorderColor());
            }
        }