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()); } }