rubytext 0.0.80 → 0.0.81

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7735514df07902180ab1f24ba6542cd2cc097dd3b71cde486e3bc56d88d60952
4
- data.tar.gz: 9a6b6c7260b4ced05a8c255846c478950ead15131853b572d5d2a440bb828fd7
3
+ metadata.gz: 87a05838e1cc579cdf013056ac5264886691d94639b728ee66c8882900505e4b
4
+ data.tar.gz: 9d6e520c32aecff63b3817ddf030ec972e5334058e69bbb81d50598555ab0924
5
5
  SHA512:
6
- metadata.gz: 2c7d7f3f1b2f6b84b1543dfc79c4421260cd4c5c58d88ba2659454126da71f4131421cb649507f129f4f60d4ed13587a7754715d23d1a561187001a3c421daa3
7
- data.tar.gz: 3d45b23db340a053e8746dce57f0170dfa4ac80d76eb0372fb4b942b4668a78604ee7f16ed992df08d226ba0158e25d6d1466f51935fb7920a3ba61f501dc800
6
+ metadata.gz: ceb638773d9f8b5030e6a3ec7025982b630a6c0571935e61035ebe2f242d2866ca53b7031c2717908b5eb02e4f4c723cd7269d07a1ad83d151dcb66e75107ffb
7
+ data.tar.gz: a0b1e4e6b2ee4aca0011e936ad9f5fa3a7d43b1b6205e63779d9bc3fc888d7d2a11353e417ceb5f11444d4061acbfa2f04601caba1aca6c5ebfa2067ad51d38e
data/lib/menu.rb CHANGED
@@ -2,13 +2,14 @@ module RubyText
2
2
 
3
3
  def self.menu(win: STDSCR, r: 0, c: 0, items:, curr: 0,
4
4
  fg: White, bg: Blue)
5
+ # save_flags
6
+ RubyText.hide_cursor
5
7
  high = items.size + 2
6
8
  wide = items.map(&:length).max + 4
7
9
  win.saveback(high, wide, r, c)
8
10
  mwin = RubyText.window(high, wide, r+win.r0+1, c+win.c0+1,
9
11
  fg: fg, bg: bg)
10
12
  X.stdscr.keypad(true)
11
- RubyText.hide_cursor
12
13
  sel = curr
13
14
  max = items.size - 1
14
15
  norm = RubyText::Effects.new(:normal)
@@ -27,11 +28,17 @@ module RubyText
27
28
  sel += 1 if sel < max
28
29
  when 27
29
30
  win.restback(high, wide, r, c)
31
+ RubyText.show_cursor
32
+ # rest_flags
30
33
  return [nil, nil]
31
34
  when 10
32
35
  win.restback(high, wide, r, c)
36
+ RubyText.show_cursor
37
+ # rest_flags
33
38
  return [sel, items[sel]]
34
39
  end
40
+ RubyText.show_cursor
41
+ # rest_flags
35
42
  end
36
43
  end
37
44
 
data/lib/settings.rb CHANGED
@@ -99,6 +99,7 @@ module RubyText
99
99
  def self.rest_flags
100
100
  @flags = @fstack.pop
101
101
  @flags.uniq!
102
+ self.set(*@flags)
102
103
  rescue
103
104
  @flags = @defaults
104
105
  end
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.80"
3
+ VERSION = "0.0.81"
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.80
4
+ version: 0.0.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton