rcurses 3.8 → 3.8.1
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/lib/rcurses/pane.rb +2 -3
- data/lib/rcurses.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce853c344b8eb5bf0f3cf398344fd038a54052687036dacd3ffe9030eb9d0ed2
|
4
|
+
data.tar.gz: bd6899c2572a9d663bb02436061733f369cb8857d19bce499d737dae2f683785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d6db33bd763b7f2f6db4098babede2d6500b3a3d10d467849457791e2ed8a5975eacbfd7c5376fda1b1592401024ddb2f952631a82c45dc5b101a0b89bb583
|
7
|
+
data.tar.gz: 0e4ce716e6398e86c213105932345215e684ec4b7e02b9a3332e513c73a5cf4f5664fd1cc11b706e550ce398745be49191a2faeb3cbfe394d819cc442dd631f1
|
data/lib/rcurses/pane.rb
CHANGED
@@ -208,8 +208,7 @@ module Rcurses
|
|
208
208
|
new_frame.each_with_index do |line, i|
|
209
209
|
row_num = @y + i
|
210
210
|
col_num = @x
|
211
|
-
if @prev_frame.nil? || @prev_frame[i] != line
|
212
|
-
(@border && (i == 0 || i == new_frame.size - 1))
|
211
|
+
if @prev_frame.nil? || @prev_frame[i] != line
|
213
212
|
diff_buf << "\e[#{row_num};#{col_num}H" << line
|
214
213
|
end
|
215
214
|
end
|
@@ -221,7 +220,7 @@ module Rcurses
|
|
221
220
|
|
222
221
|
# Draw scroll markers after printing the frame.
|
223
222
|
if @scroll
|
224
|
-
marker_col = @
|
223
|
+
marker_col = @x + @w - 1
|
225
224
|
if @ix > 0
|
226
225
|
print "\e[#{@y};#{marker_col}H" + "∆".c(fmt)
|
227
226
|
end
|
data/lib/rcurses.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# Web_site: http://isene.com/
|
6
6
|
# Github: https://github.com/isene/rcurses
|
7
7
|
# License: Public domain
|
8
|
-
# Version: 3.8:
|
8
|
+
# Version: 3.8.1: Code clean-up
|
9
9
|
|
10
10
|
require 'io/console' # Basic gem for rcurses
|
11
11
|
require 'io/wait' # stdin handling
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcurses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
@@ -30,7 +30,7 @@ description: 'Create curses applications for the terminal easier than ever. Crea
|
|
30
30
|
color, blink and in any 256 terminal colors for foreground and background. Use a
|
31
31
|
simple editor to let users edit text in panes. Left, right or center align text
|
32
32
|
in panes. Cursor movement around the terminal. New in 3.8: Fixed border fragments
|
33
|
-
upon utf-8 characters.'
|
33
|
+
upon utf-8 characters. 3.8.1: Code clean-up'
|
34
34
|
email: g@isene.com
|
35
35
|
executables: []
|
36
36
|
extensions: []
|