diff options
| author | EverythingWindows <[email protected]> | 2022-11-01 19:48:52 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-01 19:48:52 +0700 |
| commit | 38b51f3f1dc8dc046b6c3bf80d5fe2885ff38a3c (patch) | |
| tree | 49a72e22d99803189438342e3696c062c6b38b99 /ShiftOS-TheRevival/MainForms/TerminalPrompt.vb | |
| parent | 06c4f15bdb7dd27cec004fad6b19d4cecb2461e9 (diff) | |
| download | shiftos-therevival-old-38b51f3f1dc8dc046b6c3bf80d5fe2885ff38a3c.tar.gz shiftos-therevival-old-38b51f3f1dc8dc046b6c3bf80d5fe2885ff38a3c.tar.bz2 shiftos-therevival-old-38b51f3f1dc8dc046b6c3bf80d5fe2885ff38a3c.zip | |
Added Terminal, nice try to do Free Roam test, welp
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/TerminalPrompt.vb')
| -rw-r--r-- | ShiftOS-TheRevival/MainForms/TerminalPrompt.vb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/MainForms/TerminalPrompt.vb b/ShiftOS-TheRevival/MainForms/TerminalPrompt.vb new file mode 100644 index 0000000..b86e071 --- /dev/null +++ b/ShiftOS-TheRevival/MainForms/TerminalPrompt.vb @@ -0,0 +1,27 @@ +Public Class TerminalPrompt + Private Sub Terminal_Load(sender As Object, e As EventArgs) Handles MyBase.Load + FormBorderStyle = FormBorderStyle.None + WindowState = FormWindowState.Maximized + If Strings.GameState(0) = "Free" Then + Strings.ComputerInfo(0) = "shiftos" + Strings.ComputerInfo(1) = "user" + PrintPrompt() + End If + End Sub + + Public Sub PrintPrompt() + If TextBox1.Text = Nothing Then + If Strings.OnceInfo(0) = "No" Then + TextBox1.Text = "root@" & Strings.ComputerInfo(0) & " #> " + Else + TextBox1.Text = Strings.ComputerInfo(1) & "@" & Strings.ComputerInfo(0) & " $> " + End If + Else + If Strings.OnceInfo(0) = "No" Then + TextBox1.Text = TextBox1.Text & Environment.NewLine & "root@" & Strings.ComputerInfo(0) & " #> " + Else + TextBox1.Text = TextBox1.Text & Environment.NewLine & Strings.ComputerInfo(1) & "@" & Strings.ComputerInfo(0) & " $> " + End If + End If + End Sub +End Class
\ No newline at end of file |
