From 996601e9cc2874b7aa6e38772bbb7ac23eed6413 Mon Sep 17 00:00:00 2001 From: EverythingWindows Date: Fri, 18 Nov 2022 16:58:37 +0700 Subject: Moving majority functions of apps from TerminalExternalApp into its own separate module and fixing bug on ability to set hostname and username to blank --- ShiftOS-TheRevival/MainForms/Console.Designer.vb | 2 +- ShiftOS-TheRevival/MainForms/Console.vb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ShiftOS-TheRevival/MainForms') diff --git a/ShiftOS-TheRevival/MainForms/Console.Designer.vb b/ShiftOS-TheRevival/MainForms/Console.Designer.vb index 3d73ced..78dbfbf 100644 --- a/ShiftOS-TheRevival/MainForms/Console.Designer.vb +++ b/ShiftOS-TheRevival/MainForms/Console.Designer.vb @@ -103,5 +103,5 @@ Partial Class Console Friend WithEvents InfoBar As TextBox Friend WithEvents InfoBarTimer As Timer Friend WithEvents ToolBar As TextBox - Friend WithEvents ShortcutHandler As System.ComponentModel.BackgroundWorker + Public WithEvents ShortcutHandler As System.ComponentModel.BackgroundWorker End Class diff --git a/ShiftOS-TheRevival/MainForms/Console.vb b/ShiftOS-TheRevival/MainForms/Console.vb index 41d17fb..c9f4ae9 100644 --- a/ShiftOS-TheRevival/MainForms/Console.vb +++ b/ShiftOS-TheRevival/MainForms/Console.vb @@ -6,6 +6,7 @@ Public Class Console Public BadCommand As Boolean 'Detect if it's a bad command or not Public DisplayStory As Integer 'Keep record for displaying the DevX's or other's monologue Public StoryToTell As String 'Which chapter that you're going to be in + Public ShouldChange As Boolean = False 'Indicates if the interpreter should changed to a specific program Public ChangeInterpreter As Boolean = False 'Default interpreter is Terminal, if it's changed to True, there'll be other program used by Console Public CurrentInterpreter As String 'Shows what program is using Console Public CurrentDirectory As String 'Current Directory for ShiftOS Explorer @@ -16,6 +17,9 @@ Public Class Console Public ShOSKey As String 'DOSKEY tracking string for ShiftOS Private Sub Console_Load(sender As Object, e As EventArgs) Handles MyBase.Load + With ShortcutHandler + .WorkerSupportsCancellation = True + End With Console_Full() Cursor.Hide() InitializeTerminal() -- cgit v1.2.3