public static void Main(string[] args) { initiation(); runNotepadTest(); VSystem.SubPrograms[VSystem.SubPrograms.Count - 1].Window_Component.GetRenderBuffer(); VSystem.RenderAll(); while (true) { KeyPressed = Console.ReadKey(); Console.Clear(); VSystem.ParseAndExecute(KeyPressed); //VSystem.SubPrograms[VSystem.SubPrograms.Count - 1].Window_Component.GetRenderBuffer(); VSystem.RenderAll(); } }
public static void Main(string[] args) { initialization(); #region TestAddNotepadInstanceToRuntime VSystem.SubPrograms.Add(new Notepad()); VSystem.IsFocused = Focus.Focused; VSystem.Layers.Add(new Layer()); #endregion try { while (true) { RenderGraphics(true); KeyPressed = Console.ReadKey(); // Try this remedy Console.CursorLeft--; Console.Write(' '); Console.SetCursorPosition(0, 0); VSystem.ParseAndExecute(KeyPressed); } } catch (Exception exception) { //ShowMessage(EffectiveField.Global, MessageType.Error, "Unknown Error", true, exception); throw exception; } }