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 ''' - ''' Looks up a localized string similar to 0.2.2. + ''' Looks up a localized string similar to 0.2.3. ''' Friend ReadOnly Property CurrentVersion() As String Get @@ -70,7 +70,12 @@ Namespace My.Resources End Property ''' - ''' 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. ''' Friend ReadOnly Property man_bc() As String Get @@ -78,6 +83,17 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Changes directory to a selected one + ''' + ''' [DIRECTORY] Name of directory you want to enter. + ''' + Friend ReadOnly Property man_cd() As String + Get + Return ResourceManager.GetString("man_cd", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Clears all contents of the terminal. ''' @@ -96,6 +112,40 @@ Namespace My.Resources End Get End Property + ''' + ''' 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. + ''' + Friend ReadOnly Property man_color() As String + Get + Return ResourceManager.GetString("man_color", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Display available colors for ShiftOS. + ''' + Friend ReadOnly Property man_colors() As String + Get + Return ResourceManager.GetString("man_colors", resourceCulture) + End Get + End Property + + ''' + ''' Looks up a localized string similar to Displays all subdirectories and files that are in the current directory + ''' + '''example: dir. + ''' + Friend ReadOnly Property man_dir() As String + Get + Return ResourceManager.GetString("man_dir", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Runs the 'Guess the Number' application.. ''' @@ -127,6 +177,17 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Creating a directory + ''' + '''[DIRECTORY] Any directory you want to create. + ''' + Friend ReadOnly Property man_mkdir() As String + Get + Return ResourceManager.GetString("man_mkdir", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Prints a corresponding text entered in the command. ''' @@ -136,6 +197,17 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Display any current directory navigated on ShiftOS + ''' + '''example: pwd. + ''' + Friend ReadOnly Property man_pwd() As String + Get + Return ResourceManager.GetString("man_pwd", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Terminate ShiftOS session and re-running the session. ''' @@ -145,6 +217,19 @@ Namespace My.Resources End Get End Property + ''' + ''' 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. + ''' + Friend ReadOnly Property man_rmdir() As String + Get + Return ResourceManager.GetString("man_rmdir", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Command-line system information tool for ShiftOS '''Ported from Neofetch. 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 @@ ..\resources\man manuals\bc.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\resources\man manuals\cd.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\resources\man manuals\clear.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 ..\resources\man manuals\codepoint.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\resources\man manuals\color.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + + ..\resources\man manuals\colors.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + + ..\resources\man manuals\dir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\resources\man manuals\guess.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 @@ -139,12 +151,21 @@ ..\resources\man manuals\man.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\resources\man manuals\mkdir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\resources\man manuals\print.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\resources\man manuals\pwd.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\resources\man manuals\reboot.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\resources\man manuals\rmdir.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\resources\man manuals\shiftfetch.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 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 @@ + + + + + + +