From d23c5cc29dc47537d1cf6069f27009750fd80919 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 3 Jul 2017 22:03:58 -0400 Subject: HELP ME. I can't get autoscroll working in terminall. --- ShiftOS.Frontend/ShiftOS.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'ShiftOS.Frontend/ShiftOS.cs') diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs index 833ee59..fd3d784 100644 --- a/ShiftOS.Frontend/ShiftOS.cs +++ b/ShiftOS.Frontend/ShiftOS.cs @@ -113,10 +113,15 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type statslabel.Layout(); }; + TerminalBackend.TerminalRequested += () => + { + AppearanceManager.SetupWindow(new Apps.Terminal()); + }; + //We'll use sandbox mode - SaveSystem.IsSandbox = true; + SaveSystem.IsSandbox = false; - SaveSystem.Begin(); + SaveSystem.Begin(true); var textinput = new GUI.TextInput(); textinput.Width = 250; @@ -174,6 +179,12 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type /// Provides a snapshot of timing values. protected override void Update(GameTime gameTime) { + if (UIManager.CrossThreadOperations.Count > 0) + { + var action = UIManager.CrossThreadOperations.Dequeue(); + action?.Invoke(); + } + //Let's get the mouse state var mouseState = Mouse.GetState(this.Window); -- cgit v1.2.3