aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-16 08:28:22 +0700
committerEverythingWindows <[email protected]>2022-11-16 08:28:22 +0700
commit415ee1e40d41886cb7ccf23ee004c7fa67dd7418 (patch)
tree83a2224b490de0421e8f00b000f014a81a34acb3 /ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb
parent5aceb7cf1efbfa21ab6a56e2e0cde13774217f97 (diff)
downloadshiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.tar.gz
shiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.tar.bz2
shiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.zip
More enhanced code management and DesktopEnvironment experiments
Diffstat (limited to 'ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb')
-rw-r--r--ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb85
1 files changed, 0 insertions, 85 deletions
diff --git a/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb b/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb
deleted file mode 100644
index 2fd17c1..0000000
--- a/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Cowsay.vb
+++ /dev/null
@@ -1,85 +0,0 @@
-Module Com_Cowsay
- Public Sub Cowsay(Say As String)
- Select Case Say.Length
- Case 1 To 40
- Dim SubtractLength As Integer = Say.Length + 1
- NewLine(" ")
- Do
- AddLine("_")
- SubtractLength = SubtractLength - 1
- If SubtractLength = 0 Then
- AddLine("_")
- SubtractLength = Say.Length + 1
- Exit Do
- End If
- Loop
- NewLine("< " & Say & " >")
- NewLine(" ")
- Do
- AddLine("-")
- SubtractLength = SubtractLength - 1
- If SubtractLength = 0 Then
- AddLine("-")
- SubtractLength = Say.Length + 1
- Exit Do
- End If
- Loop
- NewLine(" \ ^__^")
- NewLine(" \ (oo)\_______")
- NewLine(" (__)\ )\/\")
- NewLine(" ||----w |")
- NewLine(" || ||")
- Case 41 To 80
- NewLine(" __________________________________________ ")
- NewLine("/ " & Say.Substring(0, 40) & " \")
- Say = Say.Substring(40, Say.Length - 40)
- NewLine("\ " & Say)
- Dim Spaces As Integer = 40 - Say.Length
- Do
- AddLine(" ")
- If Spaces = 0 Then
- AddLine("/")
- Exit Do
- End If
- Spaces = Spaces - 1
- Loop
- NewLine(" ------------------------------------------ ")
- NewLine(" \ ^__^")
- NewLine(" \ (oo)\_______")
- NewLine(" (__)\ )\/\")
- NewLine(" ||----w |")
- NewLine(" || ||")
- Case >= 81
- NewLine("cowsay: Character limit exceeded")
- 'Dim SubtractLength As Integer = Say.Length + 1
- 'Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & " __________________________________________ "
- 'Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "/ " & Say.Substring(0, 40) & " \"
- 'Dim CurrentLength As Integer = 40
- 'Dim WhatSay As String
- 'Dim Spaces As Integer
- 'Do
- ' Try
- ' WhatSay = Say.Substring(CurrentLength, 40)
- ' Catch ex As Exception
- ' WhatSay = Say.Substring(CurrentLength, (CurrentLength + 40) - Say.Length)
- ' End Try
- ' Spaces = 40 - WhatSay.Length
- ' If Spaces > 0 Then
- ' Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "\ " & WhatSay
- ' Do
- ' Terminal.TextBox1.Text = Terminal.TextBox1.Text & " "
- ' If Spaces = 0 Then
- ' Terminal.TextBox1.Text = Terminal.TextBox1.Text & "/"
- ' Exit Do
- ' End If
- ' Spaces = Spaces - 1
- ' Loop
- ' Exit Do
- ' Else
- ' Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "| " & WhatSay & " |"
- ' CurrentLength = CurrentLength + 40
- ' End If
- 'Loop
- End Select
- End Sub
-End Module