rubytext 0.0.21 → 0.0.22

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 (4) hide show
  1. checksums.yaml +5 -5
  2. data/lib/rubytext.rb +3 -4
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a05b2ae8802e7304f0787f3a8823738d43ff6ee8
4
- data.tar.gz: 2232e7b343f4b9410bf4b7e00df24b854b63d7e4
2
+ SHA256:
3
+ metadata.gz: 5ce6ce1babc242791b52446219ca4071369be4602132367b6eb8218c1884c61c
4
+ data.tar.gz: 7527c1b1a7b232bfcc1f7ecb9d2cc17feeb167a07a99e0ddf5efd4b8ce4b59c4
5
5
  SHA512:
6
- metadata.gz: 9528eaf48304325b79286e892c6516f15730d46ab0aafe6368f4d1b3db43c8032ad07a2c2fcbc8d708138b66f3f9997d2b051970dbf6bd104c4a31265b151518
7
- data.tar.gz: 3d33beb960f317a38e1de21c4f0eda0b90d49ca83d307b38eefc8ed2a60f91981854a9b7af258165711ed319b3ab184f841985d1ccf0dd8244f5dcd0bbf451a7
6
+ metadata.gz: a70f0c667f122012e57f87c941e04a4ef45a925c69e750bd74866f7c38552fda74ed1f8aabe022c70265ed54dd8ead0a1362a8844e0b8904fc6fe3ec8529f33f
7
+ data.tar.gz: a00c86e65801204eb5a9cd54ffe4d794234643918db194d4562b38b7089ae3ba8d45cf1dab9978b948542b9f3cac301467e1b5a992fb4bbfc33201eb5cafdaee
data/lib/rubytext.rb CHANGED
@@ -63,10 +63,6 @@ module RubyText
63
63
  cfg, cbg, cp = fb2cp(fg, bg)
64
64
  X.init_pair(cp, cfg, cbg)
65
65
  win.color_set(cp|X::A_NORMAL)
66
- num = win.maxx * win.maxy
67
- win.addstr(' '*num)
68
- win.setpos(0, 0)
69
- win.refresh
70
66
  end
71
67
 
72
68
  def self.main(fg: nil, bg: nil)
@@ -74,6 +70,7 @@ module RubyText
74
70
  @main_win = X.init_screen
75
71
  X.start_color
76
72
  colors(@main_win, fg, bg)
73
+ # FIXME clear??
77
74
  debug "About to call .make"
78
75
  rows, cols = @main_win.maxy, @main_win.maxx
79
76
  @screen = self.make(@main_win, rows, cols, 0, 0, false)
@@ -189,6 +186,7 @@ class RubyText::Window
189
186
  debug "@border = #@border"
190
187
  debug "Calling 'colors': #{[@win, fg, bg]}"
191
188
  RubyText::Window.colors(@win, fg, bg)
189
+ self.clear
192
190
  if @border
193
191
  @win.box(Vert, Horiz)
194
192
  @outer = @win
@@ -206,6 +204,7 @@ class RubyText::Window
206
204
 
207
205
  def delegate_output(sym, *args)
208
206
  args = [""] if args.empty?
207
+ RubyText::Window.colors(@win, fg, bg) # FIXME?
209
208
  # debug "#{sym}: args = #{args.inspect}"
210
209
  if sym == :p
211
210
  args.map!(&:inspect)
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.2.2
57
+ rubygems_version: 2.7.7
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: A thick wrapper for Curses