mirror of
https://github.com/EverythingWindows/ShiftOS-TheRevival-Old.git
synced 2025-01-22 18:02:16 +00:00
Man and other optimization
This commit is contained in:
parent
afd327f7b8
commit
01de8c6833
11 changed files with 174 additions and 2 deletions
|
@ -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"
|
||||
|
|
89
ShiftOS-TheRevival/My Project/Resources.Designer.vb
generated
89
ShiftOS-TheRevival/My Project/Resources.Designer.vb
generated
|
@ -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
|
||||
|
@ -78,6 +83,17 @@ Namespace My.Resources
|
|||
End Get
|
||||
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>
|
||||
|
@ -96,6 +112,40 @@ Namespace My.Resources
|
|||
End Get
|
||||
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>
|
||||
|
@ -127,6 +177,17 @@ Namespace My.Resources
|
|||
End Get
|
||||
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>
|
||||
|
@ -136,6 +197,17 @@ Namespace My.Resources
|
|||
End Get
|
||||
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>
|
||||
|
@ -145,6 +217,19 @@ Namespace My.Resources
|
|||
End Get
|
||||
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.
|
||||
|
|
|
@ -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>
|
||||
|
|
3
ShiftOS-TheRevival/Resources/man Manuals/cd.txt
Normal file
3
ShiftOS-TheRevival/Resources/man Manuals/cd.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Changes directory to a selected one
|
||||
|
||||
[DIRECTORY] Name of directory you want to enter
|
6
ShiftOS-TheRevival/Resources/man Manuals/color.txt
Normal file
6
ShiftOS-TheRevival/Resources/man Manuals/color.txt
Normal file
|
@ -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
|
1
ShiftOS-TheRevival/Resources/man Manuals/colors.txt
Normal file
1
ShiftOS-TheRevival/Resources/man Manuals/colors.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Display available colors for ShiftOS
|
3
ShiftOS-TheRevival/Resources/man Manuals/dir.txt
Normal file
3
ShiftOS-TheRevival/Resources/man Manuals/dir.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Displays all subdirectories and files that are in the current directory
|
||||
|
||||
example: dir
|
3
ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt
Normal file
3
ShiftOS-TheRevival/Resources/man Manuals/mkdir.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Creating a directory
|
||||
|
||||
[DIRECTORY] Any directory you want to create
|
3
ShiftOS-TheRevival/Resources/man Manuals/pwd.txt
Normal file
3
ShiftOS-TheRevival/Resources/man Manuals/pwd.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Display any current directory navigated on ShiftOS
|
||||
|
||||
example: pwd
|
5
ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt
Normal file
5
ShiftOS-TheRevival/Resources/man Manuals/rmdir.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Deleting a directory if there is no file present
|
||||
|
||||
[DIRECTORY] Any directory you want to remove
|
||||
|
||||
example: rmdir Windows
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue