rubytext 0.0.67 → 0.0.68
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/examples/multitest.rb +45 -0
- data/lib/color.rb +2 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
- data/examples/wtf.out +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0f3ff5611efd4871e31da6cbf2fc7131f5fdd546e651362449e4be0f91e4a5a
|
4
|
+
data.tar.gz: ae5fae35dca133795f63db64798ea6afb379feb18d3672c90f088ea55900b89b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 108d7bb54f633c16b0c3d66e6d13d8ce8bee681a81fdba7567d5c26a2e98e25cd9b8b49aa54aba0def9c9b29f4e7312af7c00076fd0d71dcf2b8bc789eb85f21
|
7
|
+
data.tar.gz: 102b62ce8a5ba35cdced7c93ff52ff9b15d41e9b6f854055255747c7300e79b75198327cd6d069c8df1a296e60ab267550b88528db9ae34a50826ca5541cbfc4
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'rubytext'
|
2
|
+
|
3
|
+
RubyText.start(fg: White, bg: Black)
|
4
|
+
|
5
|
+
def any_key
|
6
|
+
STDSCR.bottom
|
7
|
+
print " "*30 + "Press any key..."
|
8
|
+
getch
|
9
|
+
end
|
10
|
+
|
11
|
+
puts "Colors...\n " # window must be >= 96 cols?
|
12
|
+
|
13
|
+
r0 = 3
|
14
|
+
Colors.each do |fg|
|
15
|
+
c0 = 0
|
16
|
+
Colors.each do |bg|
|
17
|
+
win = RubyText.window(2, 12, r0, c0, border: false, fg: fg, bg: bg)
|
18
|
+
win.puts " #{fg} on\n #{bg}"
|
19
|
+
c0 += 14
|
20
|
+
end
|
21
|
+
r0 += 3
|
22
|
+
end
|
23
|
+
|
24
|
+
any_key
|
25
|
+
|
26
|
+
STDSCR.clear
|
27
|
+
|
28
|
+
15.times { puts }
|
29
|
+
|
30
|
+
puts "Here is some"
|
31
|
+
puts " random text...\n "
|
32
|
+
sleep 2.5
|
33
|
+
|
34
|
+
STDSCR.scrolling(true)
|
35
|
+
|
36
|
+
puts "Scroll up 3..."
|
37
|
+
3.times { STDSCR.scroll; sleep 0.9 }
|
38
|
+
|
39
|
+
sleep 0.9
|
40
|
+
|
41
|
+
puts "... now scroll down 5."
|
42
|
+
5.times { STDSCR.scroll(-1); sleep 0.9 }
|
43
|
+
|
44
|
+
sleep 0.9
|
45
|
+
any_key
|
data/lib/color.rb
CHANGED
@@ -12,6 +12,8 @@ end
|
|
12
12
|
Black, Blue, Cyan, Green, Magenta, Red, White, Yellow =
|
13
13
|
:black, :blue, :cyan, :green, :magenta, :red, :white, :yellow
|
14
14
|
|
15
|
+
Colors = [Black, Blue, Cyan, Green, Magenta, Red, White, Yellow]
|
16
|
+
|
15
17
|
class RubyText::Color
|
16
18
|
Colors = [Black, Blue, Cyan, Green, Magenta, Red, White, Yellow]
|
17
19
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubytext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.68
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- examples/check.rb
|
45
45
|
- examples/demo.rb
|
46
46
|
- examples/ide.rb
|
47
|
+
- examples/multitest.rb
|
47
48
|
- examples/prog01.rb
|
48
49
|
- examples/prog02.rb
|
49
50
|
- examples/prog03.rb
|
@@ -68,7 +69,6 @@ files:
|
|
68
69
|
- examples/prog22.rb
|
69
70
|
- examples/showme.rb
|
70
71
|
- examples/slides
|
71
|
-
- examples/wtf.out
|
72
72
|
- lib/_window.rb
|
73
73
|
- lib/color.rb
|
74
74
|
- lib/effects.rb
|
data/examples/wtf.out
DELETED
File without changes
|