rubytext 0.0.94 → 0.0.95
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b4abf42b65f12ba6d2fdd80c8332464c0caa13d1af2a2a11c21c3c11c91eae
|
4
|
+
data.tar.gz: c190e438cc97061329d7e9e2d974803291e8e5e5fd2e45166e7ba5241960d588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 910bd333267aa82b64f7e80e2f8896041b03865efc2944ce2ce20f6c9abc9b1010d098f1bff3075fe57961a0aa9e5f2f5f2e3b8b2d7341b8b357251dac4137aa
|
7
|
+
data.tar.gz: d2b373c7f000a7660e682700cf1cf92e46e4da2cffec8eb7dab24b5de584c1e1b1be236e098a7cbdab6525af8f1039c42cc416bd23006515b898795ba941188d
|
data/README.md
CHANGED
@@ -84,11 +84,12 @@ win = RubyText.window(8, 39, r: 4, c: 9, fg: Black, bg: Blue)
|
|
84
84
|
win.puts "If your text is longer than " +
|
85
85
|
"the width of the window, by default it will " +
|
86
86
|
"wrap around."
|
87
|
-
|
88
|
-
win.puts "Scrolling is not yet supported."
|
89
87
|
```
|
90
88
|
|
91
|
-
|
89
|
+
<img src=readme-images/noscroll.png>
|
90
|
+
|
91
|
+
Scrolling is not enabled by default for a window (except STDSCR).
|
92
|
+
|
92
93
|
```ruby
|
93
94
|
require 'rubytext'
|
94
95
|
win = RubyText.window(10, 70, r: 2, c: 14, fg: Yellow, bg: Black)
|
@@ -102,10 +103,12 @@ win.output do
|
|
102
103
|
|
103
104
|
10.times {|i| puts "Printing line #{i}..."; sleep 0.2 }
|
104
105
|
end
|
105
|
-
|
106
106
|
```
|
107
107
|
|
108
|
+
<img src=readme-images/noscroll.png>
|
109
|
+
|
108
110
|
You can use `print` and `p` as well as `puts`.
|
111
|
+
|
109
112
|
```ruby
|
110
113
|
require 'rubytext'
|
111
114
|
win = RubyText.window(10, 60, r: 2, c: 14, fg: Blue, bg: Black)
|
@@ -124,6 +127,7 @@ end
|
|
124
127
|
```
|
125
128
|
|
126
129
|
You can still use `puts` (etc.) with files, but watch for `STDOUT` and `STDERR`.
|
130
|
+
|
127
131
|
```ruby
|
128
132
|
require 'rubytext'
|
129
133
|
win = RubyText.window(10, 50, r: 0, c: 5, fg: Yellow, bg: Blue)
|
data/lib/version.rb
CHANGED