diff options
| -rw-r--r-- | ShiftOS-TheRevival/MainForms/Terminal.vb | 35 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/My Project/Resources.Designer.vb | 89 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/My Project/Resources.resx | 21 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/cd.txt | 3 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/color.txt | 6 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/colors.txt | 1 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/dir.txt | 3 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt | 3 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/pwd.txt | 3 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt | 5 | ||||
| -rw-r--r-- | ShiftOS-TheRevival/ShiftOS-TheRevival.vbproj | 7 |
11 files changed, 174 insertions, 2 deletions
diff --git a/ShiftOS-TheRevival/MainForms/Terminal.vb b/ShiftOS-TheRevival/MainForms/Terminal.vb index 3d544e9..d064761 100644 --- a/ShiftOS-TheRevival/MainForms/Terminal.vb +++ b/ShiftOS-TheRevival/MainForms/Terminal.vb @@ -247,6 +247,9 @@ Public Class Terminal TextBox1.Text = TextBox1.Text & Environment.NewLine & "SHIFTORIUM A software center for upgrading features on ShiftOS" TextBox1.Text = TextBox1.Text & Environment.NewLine & "SHUTDOWN Terminate ShiftOS session" TextBox1.Text = TextBox1.Text & Environment.NewLine & "SU Runs terminal as super user" + If Strings.AvailableFeature(17) = 1 Then + TextBox1.Text = TextBox1.Text & Environment.NewLine & "TEXTPAD Simple text-editor for ShiftOS" + End If If Strings.AvailableFeature(5) = 1 Then TextBox1.Text = TextBox1.Text & Environment.NewLine & "TIME Display the current time in the form of seconds since midnight" ElseIf Strings.AvailableFeature(5) = 3 Then @@ -424,16 +427,36 @@ Public Class Terminal TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_bc & Environment.NewLine BadCommand = False End If + Case "cd" + If Strings.AvailableFeature(16) = "1" Then + TempUsage = TempUsage & "cd [DIRECTORY]" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_cd & Environment.NewLine + BadCommand = False + End If Case "clear" If Strings.AvailableFeature(1) = "1" Then TempUsage = TempUsage & "clear" TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_clear & Environment.NewLine BadCommand = False End If + Case "color" + TempUsage = TempUsage & "color [bg][fg]" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_color & Environment.NewLine + BadCommand = False + Case "colors" + TempUsage = TempUsage & "colors" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_colors & Environment.NewLine + BadCommand = False Case "codepoint" TempUsage = TempUsage & "codepoint" TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_codepoint & Environment.NewLine BadCommand = False + Case "dir" + If Strings.AvailableFeature(16) = "1" Then + TempUsage = TempUsage & "dir" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_dir & Environment.NewLine + BadCommand = False + End If Case "guess" TempUsage = TempUsage & "guess" TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_guess & Environment.NewLine @@ -448,6 +471,12 @@ Public Class Terminal TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_man & Environment.NewLine BadCommand = False End If + Case "mkdir" + If Strings.AvailableFeature(16) = "1" Then + TempUsage = TempUsage & "mkdir [DIRECTORY]" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_mkdir & Environment.NewLine + BadCommand = False + End If Case "print" If Strings.AvailableFeature(2) = "1" Then TempUsage = TempUsage & "print [text]" @@ -458,6 +487,12 @@ Public Class Terminal TempUsage = TempUsage & "reboot" TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_reboot & Environment.NewLine BadCommand = False + Case "rmdir" + If Strings.AvailableFeature(16) = "1" Then + TempUsage = TempUsage & "rmdir [DIRECTORY]" + TextBox1.Text = TextBox1.Text & TempUsage & Environment.NewLine & Environment.NewLine & My.Resources.man_rmdir & Environment.NewLine + BadCommand = False + End If Case "shiftfetch" If Strings.AvailableFeature(8) = "1" Then TempUsage = TempUsage & "shiftfetch" diff --git a/ShiftOS-TheRevival/My Project/Resources.Designer.vb b/ShiftOS-TheRevival/My Project/Resources.Designer.vb index 4fbfa71..d6f2a12 100644 --- a/ShiftOS-TheRevival/My Project/Resources.Designer.vb +++ b/ShiftOS-TheRevival/My Project/Resources.Designer.vb @@ -61,7 +61,7 @@ Namespace My.Resources End Property '''<summary> - ''' Looks up a localized string similar to 0.2.2. + ''' Looks up a localized string similar to 0.2.3. '''</summary> Friend ReadOnly Property CurrentVersion() As String Get @@ -70,7 +70,12 @@ Namespace My.Resources End Property '''<summary> - ''' Looks up a localized string similar to A basic command-line tool for simple calculation.. + ''' Looks up a localized string similar to A basic command-line tool for simple calculation. + ''' + '''example: + '''5*5+5 + '''8-3 + '''44/2. '''</summary> Friend ReadOnly Property man_bc() As String Get @@ -79,6 +84,17 @@ Namespace My.Resources End Property '''<summary> + ''' Looks up a localized string similar to Changes directory to a selected one + ''' + ''' [DIRECTORY] Name of directory you want to enter. + '''</summary> + Friend ReadOnly Property man_cd() As String + Get + Return ResourceManager.GetString("man_cd", resourceCulture) + End Get + End Property + + '''<summary> ''' Looks up a localized string similar to Clears all contents of the terminal. '''</summary> Friend ReadOnly Property man_clear() As String @@ -97,6 +113,40 @@ Namespace My.Resources End Property '''<summary> + ''' Looks up a localized string similar to Changes Background and Foreground color to a specific two Hexadecimal value + ''' + '''[BG] Color for Terminal Background + '''[FG] Color for Terminal Foreground such as text + ''' + '''example: color 02. + '''</summary> + Friend ReadOnly Property man_color() As String + Get + Return ResourceManager.GetString("man_color", resourceCulture) + End Get + End Property + + '''<summary> + ''' Looks up a localized string similar to Display available colors for ShiftOS. + '''</summary> + Friend ReadOnly Property man_colors() As String + Get + Return ResourceManager.GetString("man_colors", resourceCulture) + End Get + End Property + + '''<summary> + ''' Looks up a localized string similar to Displays all subdirectories and files that are in the current directory + ''' + '''example: dir. + '''</summary> + Friend ReadOnly Property man_dir() As String + Get + Return ResourceManager.GetString("man_dir", resourceCulture) + End Get + End Property + + '''<summary> ''' Looks up a localized string similar to Runs the 'Guess the Number' application.. '''</summary> Friend ReadOnly Property man_guess() As String @@ -128,6 +178,17 @@ Namespace My.Resources End Property '''<summary> + ''' Looks up a localized string similar to Creating a directory + ''' + '''[DIRECTORY] Any directory you want to create. + '''</summary> + Friend ReadOnly Property man_mkdir() As String + Get + Return ResourceManager.GetString("man_mkdir", resourceCulture) + End Get + End Property + + '''<summary> ''' Looks up a localized string similar to Prints a corresponding text entered in the command. '''</summary> Friend ReadOnly Property man_print() As String @@ -137,6 +198,17 @@ Namespace My.Resources End Property '''<summary> + ''' Looks up a localized string similar to Display any current directory navigated on ShiftOS + ''' + '''example: pwd. + '''</summary> + Friend ReadOnly Property man_pwd() As String + Get + Return ResourceManager.GetString("man_pwd", resourceCulture) + End Get + End Property + + '''<summary> ''' Looks up a localized string similar to Terminate ShiftOS session and re-running the session. '''</summary> Friend ReadOnly Property man_reboot() As String @@ -146,6 +218,19 @@ Namespace My.Resources End Property '''<summary> + ''' Looks up a localized string similar to Deleting a directory if there is no file present + ''' + '''[DIRECTORY] Any directory you want to remove + ''' + '''example: rmdir Windows. + '''</summary> + Friend ReadOnly Property man_rmdir() As String + Get + Return ResourceManager.GetString("man_rmdir", resourceCulture) + End Get + End Property + + '''<summary> ''' Looks up a localized string similar to Command-line system information tool for ShiftOS '''Ported from Neofetch. '''</summary> diff --git a/ShiftOS-TheRevival/My Project/Resources.resx b/ShiftOS-TheRevival/My Project/Resources.resx index 3f1ff97..33583f5 100644 --- a/ShiftOS-TheRevival/My Project/Resources.resx +++ b/ShiftOS-TheRevival/My Project/Resources.resx @@ -124,12 +124,24 @@ <data name="man_bc" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\bc.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> + <data name="man_cd" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\cd.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> <data name="man_clear" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\clear.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> <data name="man_codepoint" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\codepoint.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> + <data name="man_color" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\color.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> + <data name="man_colors" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\colors.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> + <data name="man_dir" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\dir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> <data name="man_guess" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\guess.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> @@ -139,12 +151,21 @@ <data name="man_man" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\man.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> + <data name="man_mkdir" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\mkdir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> <data name="man_print" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\print.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> + <data name="man_pwd" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\pwd.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> <data name="man_reboot" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\reboot.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> + <data name="man_rmdir" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\resources\man manuals\rmdir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> + </data> <data name="man_shiftfetch" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\resources\man manuals\shiftfetch.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> </data> diff --git a/ShiftOS-TheRevival/Resources/man Manuals/cd.txt b/ShiftOS-TheRevival/Resources/man Manuals/cd.txt new file mode 100644 index 0000000..daa7fb1 --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/cd.txt @@ -0,0 +1,3 @@ + Changes directory to a selected one + + [DIRECTORY] Name of directory you want to enter
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/color.txt b/ShiftOS-TheRevival/Resources/man Manuals/color.txt new file mode 100644 index 0000000..03de49f --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/color.txt @@ -0,0 +1,6 @@ +Changes Background and Foreground color to a specific two Hexadecimal value + +[BG] Color for Terminal Background +[FG] Color for Terminal Foreground such as text + +example: color 02
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/colors.txt b/ShiftOS-TheRevival/Resources/man Manuals/colors.txt new file mode 100644 index 0000000..045e4f1 --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/colors.txt @@ -0,0 +1 @@ +Display available colors for ShiftOS
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/dir.txt b/ShiftOS-TheRevival/Resources/man Manuals/dir.txt new file mode 100644 index 0000000..feb0665 --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/dir.txt @@ -0,0 +1,3 @@ +Displays all subdirectories and files that are in the current directory + +example: dir
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt b/ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt new file mode 100644 index 0000000..f2c2322 --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt @@ -0,0 +1,3 @@ +Creating a directory + +[DIRECTORY] Any directory you want to create
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/pwd.txt b/ShiftOS-TheRevival/Resources/man Manuals/pwd.txt new file mode 100644 index 0000000..1fb1006 --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/pwd.txt @@ -0,0 +1,3 @@ +Display any current directory navigated on ShiftOS + +example: pwd
\ No newline at end of file diff --git a/ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt b/ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt new file mode 100644 index 0000000..f27511a --- /dev/null +++ b/ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt @@ -0,0 +1,5 @@ +Deleting a directory if there is no file present + +[DIRECTORY] Any directory you want to remove + +example: rmdir Windows
\ No newline at end of file diff --git a/ShiftOS-TheRevival/ShiftOS-TheRevival.vbproj b/ShiftOS-TheRevival/ShiftOS-TheRevival.vbproj index 5a8ad98..e22924e 100644 --- a/ShiftOS-TheRevival/ShiftOS-TheRevival.vbproj +++ b/ShiftOS-TheRevival/ShiftOS-TheRevival.vbproj @@ -200,13 +200,20 @@ <ItemGroup> <None Include="Resources\CurrentVersion.txt" /> <Content Include="Resources\man Manuals\bc.txt" /> + <Content Include="Resources\man Manuals\cd.txt" /> <Content Include="Resources\man Manuals\clear.txt" /> <Content Include="Resources\man Manuals\codepoint.txt" /> + <Content Include="Resources\man Manuals\color.txt" /> + <Content Include="Resources\man Manuals\colors.txt" /> + <Content Include="Resources\man Manuals\dir.txt" /> <Content Include="Resources\man Manuals\guess.txt" /> <Content Include="Resources\man Manuals\help.txt" /> <Content Include="Resources\man Manuals\man.txt" /> + <Content Include="Resources\man Manuals\mkdir.txt" /> <Content Include="Resources\man Manuals\print.txt" /> + <Content Include="Resources\man Manuals\pwd.txt" /> <Content Include="Resources\man Manuals\reboot.txt" /> + <Content Include="Resources\man Manuals\rmdir.txt" /> <Content Include="Resources\man Manuals\shiftfetch.txt" /> <Content Include="Resources\man Manuals\shiftorium.txt" /> <Content Include="Resources\man Manuals\shutdown.txt" /> |
