diff options
| author | EverythingWindows <[email protected]> | 2022-11-13 15:15:05 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-13 15:15:05 +0700 |
| commit | 54355f9686a5a07f27de5cd3444b87509df2fd2f (patch) | |
| tree | 91c65a8cd41f21c290835bf5118eafbc5299a3f8 /ShiftOS-TheRevival/MainForms/ConsoleAPI.vb | |
| parent | 6f1a5bfa56fc68853ae150a065950714f490a7f0 (diff) | |
| download | shiftos-therevival-old-54355f9686a5a07f27de5cd3444b87509df2fd2f.tar.gz shiftos-therevival-old-54355f9686a5a07f27de5cd3444b87509df2fd2f.tar.bz2 shiftos-therevival-old-54355f9686a5a07f27de5cd3444b87509df2fd2f.zip | |
Changed from Environment.NewLine to dedicated NewLine module thoroughly, Fixing a bug on always asks for update, Slowly migrating from full Terminal-dependant to Console-based
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/ConsoleAPI.vb')
| -rw-r--r-- | ShiftOS-TheRevival/MainForms/ConsoleAPI.vb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/MainForms/ConsoleAPI.vb b/ShiftOS-TheRevival/MainForms/ConsoleAPI.vb new file mode 100644 index 0000000..28b7efc --- /dev/null +++ b/ShiftOS-TheRevival/MainForms/ConsoleAPI.vb @@ -0,0 +1,18 @@ +Module ConsoleAPI + Public Sub NewLine(str As String) + Console.TextBox1.Text = Console.TextBox1.Text & Environment.NewLine & str + End Sub + + Public Sub AddLine(str As String) + Console.TextBox1.Text = Console.TextBox1.Text & str + End Sub + + Public Sub ResetLine(str As String) + Console.TextBox1.Text = str + End Sub + + Public Sub TextRebind() + Console.TextBox1.Select(Console.TextBox1.Text.Length, 0) + Console.TextBox1.ScrollToCaret() + End Sub +End Module |
