aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/MainForms/Terminal.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-03 04:28:19 +0700
committerEverythingWindows <[email protected]>2022-11-03 04:28:19 +0700
commitec630f54d67fa37e0ad79936c3eaf9cf1cd2ac1f (patch)
tree634bacedc8352e46746228cf9be6bbe65ff55867 /ShiftOS-TheRevival/MainForms/Terminal.vb
parent0f683e5c3535e8c3f20230aef44f6da1894e3746 (diff)
downloadshiftos-therevival-old-ec630f54d67fa37e0ad79936c3eaf9cf1cd2ac1f.tar.gz
shiftos-therevival-old-ec630f54d67fa37e0ad79936c3eaf9cf1cd2ac1f.tar.bz2
shiftos-therevival-old-ec630f54d67fa37e0ad79936c3eaf9cf1cd2ac1f.zip
story mode completed
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/Terminal.vb')
-rw-r--r--ShiftOS-TheRevival/MainForms/Terminal.vb76
1 files changed, 65 insertions, 11 deletions
diff --git a/ShiftOS-TheRevival/MainForms/Terminal.vb b/ShiftOS-TheRevival/MainForms/Terminal.vb
index 368b745..0df3815 100644
--- a/ShiftOS-TheRevival/MainForms/Terminal.vb
+++ b/ShiftOS-TheRevival/MainForms/Terminal.vb
@@ -1,9 +1,13 @@
-Public Class Terminal
+Imports System.IO
+
+Public Class Terminal
Public command As String
Public DefaultPrompt As String
Public TrackPos As Integer
Public AdvancedCommand As Boolean
Public BadCommand As Boolean
+ Public DisplayStory As Integer
+ Public StoryToTell As String
Private Sub Terminal_Load(sender As Object, e As EventArgs) Handles MyBase.Load
FormBorderStyle = FormBorderStyle.None
@@ -15,7 +19,16 @@
PrintPrompt()
AssignPrompt()
Else
-
+ If Strings.ComputerInfo(3) = "0" Then
+ TextBox1.ReadOnly = True
+ StoryOnlyTimer.Start()
+ Else
+ Strings.ComputerInfo(0) = "shiftos"
+ Strings.ComputerInfo(1) = "user"
+ Strings.ComputerInfo(2) = 0
+ PrintPrompt()
+ AssignPrompt()
+ End If
End If
TextBox1.Select(TextBox1.TextLength, 0)
TextBox1.ScrollToCaret()
@@ -215,17 +228,17 @@
BadCommand = False
End If
End If
- If command Like "print *" Then
- TextBox1.Text = TextBox1.Text & Environment.NewLine & command.Substring(6)
- Dim printed As String = command.Replace("print ", "")
- ''It has the same issue, only displays in lowercase
- 'TextBox1.Text = TextBox1.Text & Environment.NewLine & printed
- BadCommand = False
- End If
- AdvancedCommand = False
+ If command Like "print *" Then
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & command.Substring(6)
+ Dim printed As String = command.Replace("print ", "")
+ ''It has the same issue, only displays in lowercase
+ 'TextBox1.Text = TextBox1.Text & Environment.NewLine & printed
+ BadCommand = False
End If
+ AdvancedCommand = False
+ End If
- If BadCommand = True Then
+ If BadCommand = True Then
TextBox1.Text = TextBox1.Text & Environment.NewLine & "Bad command or wrong file name"
End If
End Sub
@@ -310,4 +323,45 @@
TextBox1.Select(TextBox1.TextLength, 0)
TextBox1.ScrollToCaret()
End Sub
+
+ Private Sub StoryOnlyTimer_Tick(sender As Object, e As EventArgs) Handles StoryOnlyTimer.Tick
+ Select Case Strings.ComputerInfo(3)
+ Case "0"
+ Select Case DisplayStory
+ Case 5
+ TextBox1.Text = "Connected to <null>"
+ Case 25
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: Hey there, Unknown user!"
+ Case 40
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: You have been selected for an unvolentary test on my experimental operating system, ShiftOS"
+ Case 90
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: ShiftOS is an operating system that purposes itself to evolve itself as the time progresses"
+ Case 140
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: I will add features into the operating system as you use it"
+ Case 170
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: Currently ShiftOS didn't have that much function aside from a command line with little command"
+ Case 190
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: I'll install ShiftOS now on your system"
+ Case 215
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null>: I will come back and contact you later on when the time is necessary, see you!"
+ Case 250
+ TextBox1.Text = TextBox1.Text & Environment.NewLine & "<null> Disconnected"
+ Case 275
+ TextBox1.Text = "Installing ShiftOS..."
+ Case 350
+ TextBox1.Text = "ShiftOS Installed, The computer will restart in a few seconds"
+ Case 400
+ TextBox1.Text = Nothing
+ TextBox1.ReadOnly = False
+ Strings.ComputerInfo(0) = "shiftos"
+ Strings.ComputerInfo(1) = "user"
+ Strings.ComputerInfo(2) = 0
+ PrintPrompt()
+ AssignPrompt()
+ TextBox1.Select(TextBox1.TextLength, 0)
+ TextBox1.ScrollToCaret()
+ End Select
+ End Select
+ DisplayStory = DisplayStory + 1
+ End Sub
End Class \ No newline at end of file