rubytext 0.0.55 → 0.0.56

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/lib/version.rb +1 -1
  4. data/lib/window.rb +2 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e76b63a284c3e46a82ebdbffe93539688f3e05e5ba07c3bcd1b3134a8e4e3f6
4
- data.tar.gz: ec46b8c22012c818b4d920758e7dee6e07fdc10aa791a987293cadb011f8e3a0
3
+ metadata.gz: 816db72a80a18295580c068e903fb244dcb3dbfca34f88573ccc16474e05e849
4
+ data.tar.gz: b854625bf74e0102a45f0787e083376a32b9311369a900621f42082d4a078ddd
5
5
  SHA512:
6
- metadata.gz: ffe47e4511c9a9156fb6c0e93853b3bfa83f9c8b48c76db46f42eabb8f849227aa25a0c682231948eca23f0150602f6122db7d7a37914d1a1378b05d8d386529
7
- data.tar.gz: 38bd6f8a6757d99f292dcd2731d0bd57d3275047aca5aadf5977c47b30b9f771912f648847594933c23a637b99c8175630191b1f9423177459a85908ca1c5da7
6
+ metadata.gz: 16e754dd142473631aea79029b4c1840b25604730d9b8349a10886986823a89e3c5afc0738e9a7fb33fc7ee943e1e36bd2c4a2de623826d381305642bbf70ba4
7
+ data.tar.gz: 30b79202b76c227d2dbda1b3b473835270a91535e013c985ae13b46810cb540d576575ecadd779db042c288f730faa21fb040dc69dad9774904b49a8d42b2e4c
data/README.md CHANGED
@@ -30,6 +30,8 @@ puts "Hello, world!"
30
30
  getch
31
31
  ```
32
32
 
33
+ <img src=readme-images/hw.png>
34
+
33
35
  You invoke `RubyText.start` to initialize the curses environment with default settings. If you
34
36
  then use `puts`, it will write to the standard screen (called `STDSCR` in this library).
35
37
 
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.55"
3
+ VERSION = "0.0.56"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
data/lib/window.rb CHANGED
@@ -9,6 +9,7 @@ class RubyText::Window
9
9
  @wide, @high, @r0, @c0 = wide, high, r0, c0
10
10
  @border, @fg, @bg = border, fg, bg
11
11
  @win = X::Window.new(high, wide, r0, c0)
12
+ @win.scrollok(true)
12
13
  debug "outer = #{@win.inspect}"
13
14
  debug "@border = #@border"
14
15
  debug "Calling 'colors': #{[@win, fg, bg]}"
@@ -66,7 +67,7 @@ class RubyText::Window
66
67
  end
67
68
 
68
69
  def scroll(n=1)
69
- @win.scrl(n)
70
+ n.times { @win.scroll }
70
71
  @win.refresh
71
72
  end
72
73
 
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.55
4
+ version: 0.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton