diff options
| author | EverythingWindows <[email protected]> | 2022-11-14 13:50:43 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-14 13:50:43 +0700 |
| commit | bd4c45f316d11e124fe5d21d9c5f66e21149fc5d (patch) | |
| tree | c9b1a4ad85f7d8c6b3cbe05f7769cb04f907dfa3 /ShiftOS-TheRevival/API/ConsoleAPI.vb | |
| parent | b37a6e60c9ffa266fc1fc9afc13cada7704100b0 (diff) | |
| download | shiftos-therevival-old-bd4c45f316d11e124fe5d21d9c5f66e21149fc5d.tar.gz shiftos-therevival-old-bd4c45f316d11e124fe5d21d9c5f66e21149fc5d.tar.bz2 shiftos-therevival-old-bd4c45f316d11e124fe5d21d9c5f66e21149fc5d.zip | |
More organized
Diffstat (limited to 'ShiftOS-TheRevival/API/ConsoleAPI.vb')
| -rw-r--r-- | ShiftOS-TheRevival/API/ConsoleAPI.vb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/API/ConsoleAPI.vb b/ShiftOS-TheRevival/API/ConsoleAPI.vb new file mode 100644 index 0000000..7021e2e --- /dev/null +++ b/ShiftOS-TheRevival/API/ConsoleAPI.vb @@ -0,0 +1,28 @@ +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 Undeveloped() + NewLine("Oopsie! It's only for newer version") + End Sub + + Public Sub TextRebind() + Console.TextBox1.Select(Console.TextBox1.Text.Length, 0) + Console.TextBox1.ScrollToCaret() + End Sub + + Public Sub TextRebindBehind() + 'Console.TextBox1.Select(Console.TextBox1.Lines.Length - 1, 0) + Console.TextBox1.Select(Console.TextBox1.Lines.Length - 1, 0) + Console.TextBox1.ScrollToCaret() + End Sub +End Module |
