pipetext 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{bin → exe}/pipetext +6 -8
- data/lib/pipetext/pipetext/pipetext.rb +2408 -0
- data/lib/pipetext/{substitute_emoji_names.rb → pipetext/substitute_emoji_names.rb} +273 -256
- data/lib/pipetext/pipetext/version.rb +7 -0
- data/lib/pipetext/pipetext.rb +9 -1227
- metadata +10 -10
- data/lib/pipetext/version.rb +0 -8
- data/lib/pipetext.rb +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba53fc33438b2a42562a17da2505e8da554cd98f5d368036a78e2c90e71f8ad7
|
|
4
|
+
data.tar.gz: b982603d2a79f87c2f0d0a48e2bb60db73950d85137c5d19d98e0eb5504d8441
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3674e697f5b8752e9c18d084cd842a7f993250d3b4c2a88793b068db87a7ae36bbe3d0d835da6861e1b79b53560b49bfaa8ceba8c02faf02eac770ae20da7082
|
|
7
|
+
data.tar.gz: 0a81c29b126508d23c687af4364af8c8c64ade4f5fbe89110b89f5dffef044051bec007da56502b2ad5b9ca5045747e7e35bd67e04a986bfa84d98675d8a0c70
|
data/{bin → exe}/pipetext
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
# Allow older versions of Ruby to respond to the require_relative method
|
|
5
4
|
if(!Kernel.respond_to?(:require_relative))
|
|
@@ -10,12 +9,12 @@ if(!Kernel.respond_to?(:require_relative))
|
|
|
10
9
|
end
|
|
11
10
|
end
|
|
12
11
|
|
|
13
|
-
require_relative
|
|
12
|
+
require_relative File.join("..", "lib", "pipetext", "pipetext.rb")
|
|
14
13
|
|
|
15
14
|
pipe = Class.new.extend(PipeText)
|
|
16
15
|
|
|
17
16
|
pipetext_example = '|| pipe |||| && ampersand &&&& Toggle (&) background color mode ||&
|
|
18
|
-
|
|
|
17
|
+
|wwhite |n||w |Wbright white |n||W |k&wblack text on white background&n|n ||k&&w
|
|
19
18
|
|rred |n||r |Rbright red |n||R &rred background&n &&r
|
|
20
19
|
|ggreen |n||g |Gbright green |n||G &ggreen background&n &&g
|
|
21
20
|
|bblue |n||b |Bbright blue |n||B &bblue background&n &&b
|
|
@@ -26,7 +25,7 @@ pipetext_example = '|| pipe |||| && ampersand &&&& Toggle (&) backgrou
|
|
|
26
25
|
|pC1&pF8Palette colors (256) |Rusing Hex|pC1:|n&n ||pC1&&pF8 Clear screen ||!
|
|
27
26
|
|K&wblack with white background&n |n||K&&w |@Blink|@ing ||@
|
|
28
27
|
|w&mwhite with magenta background&n |n||w&&m |w&mi|invert&n|i ||i
|
|
29
|
-
|
|
|
28
|
+
|W&gbright white with green background&n |n||s&&g |_Underline|_d ||_
|
|
30
29
|
|r&cred with cyan background&n |n||r&&c |~Italic|~s ||~
|
|
31
30
|
|R&bbright red with blue background&n |n||R&&b |+Bold|+ ||+
|
|
32
31
|
|g&ygreen with yellow background&n |n||g&&y |.Faint|. ||.
|
|
@@ -35,7 +34,7 @@ pipetext_example = '|| pipe |||| && ampersand &&&& Toggle (&) backgrou
|
|
|
35
34
|
|
|
36
35
|
Center text using current position and line end number ||{text to center}
|
|
37
36
|
Add spaces to line end ||; Set line end ||]#
|
|
38
|
-
Set current x,y cursor position ||[x,y] Terminal bell ||[
|
|
37
|
+
Set current x,y cursor position ||[x,y] Terminal bell ||[b]
|
|
39
38
|
Move cursor up 1 line ||^ Hide cursor ||h
|
|
40
39
|
Move cursor down 1 line ||v Unhide cursor ||H
|
|
41
40
|
Move cursor forward 1 character ||> Sleep timer in seconds ||[#s]
|
|
@@ -49,8 +48,8 @@ Copy variable to current number ||(#variable name)
|
|
|
49
48
|
|
|
50
49
|
Emojis: https://unicode.org/emoji/charts/full-emoji-list.html
|
|
51
50
|
||[Abbreviated CLDR Short Name] |[smiling face with heart-eyes] ||[smiling face with heart-eyes] or
|
|
52
|
-
|[gear]
|
|
53
|
-
|U2714 ||U2714 |U274c ||U274c
|
|
51
|
+
|[gear] ||[gear] |[zzz] ||[zzz] |[man] ||[man] |[sm f w he e] ||[sm f w he e]
|
|
52
|
+
|U2714 ||U2714 |U274c ||U274c |u262E ||u262E |u1f48e ||u1f48e |u1f49c ||u1f49c
|
|
54
53
|
|
|
55
54
|
Single or double line box mode with ||- or ||=
|
|
56
55
|
|
|
@@ -77,7 +76,6 @@ if(ARGV[0] == nil && STDIN.tty? == true)
|
|
|
77
76
|
puts "PipeText capabilities:"
|
|
78
77
|
puts
|
|
79
78
|
pipe.paint(pipetext_example)
|
|
80
|
-
puts
|
|
81
79
|
puts "Command Syntax: #{File.basename(__FILE__)} <filename> | <pipetext>"
|
|
82
80
|
puts "Example usages:"
|
|
83
81
|
puts
|