rcurses 6.1.5 → 6.1.7
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/input.rb +6 -4
- data/lib/rcurses/pane.rb +2 -2
- 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: 0c6cd88e7945b9df842bb148be5d71b6e04bf912bbe16ab676bab21b940479ce
|
|
4
|
+
data.tar.gz: 71bc49050001d78f38f2d749c74c2648c9278ccf7dc5b33f576a9d4f4b3ab639
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c6f5962a5ae1899560583246982bdaea68191fa9c71dde9e1b51c57b641dfd3a4e39aacaedbb4e7df6e97b460189abac7cda426f32fc57d0d03c9d737d28acf
|
|
7
|
+
data.tar.gz: d88ded84e69538f801f6e01f32fcfd4a664b05df2ee01cd92868b399228bc034c0883b822e34c0ad6ccf652bfe4fa7ab41213f7c4628048862dfed3c45443a89
|
data/lib/rcurses/input.rb
CHANGED
|
@@ -47,9 +47,9 @@ module Rcurses
|
|
|
47
47
|
return { 'A' => "C-UP", 'B' => "C-DOWN", 'C' => "C-RIGHT", 'D' => "C-LEFT" }[m[1]]
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
# 7) Plain arrows
|
|
51
|
-
if m = seq.match(/\A\e\[([
|
|
52
|
-
return { 'A' => "UP", 'B' => "DOWN", 'C' => "RIGHT", 'D' => "LEFT" }[m[1]]
|
|
50
|
+
# 7) Plain arrows and Home/End (xterm style)
|
|
51
|
+
if m = seq.match(/\A\e\[([ABCDHF])\z/)
|
|
52
|
+
return { 'A' => "UP", 'B' => "DOWN", 'C' => "RIGHT", 'D' => "LEFT", 'H' => "HOME", 'F' => "END" }[m[1]]
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# 8) CSI + '~' sequences (Ins, Del, Home, End, PgUp, PgDn, F5-F12)
|
|
@@ -74,13 +74,15 @@ module Rcurses
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# 9) SS3 function keys F1-F4
|
|
77
|
+
# 9) SS3 function keys F1-F4, Ctrl+arrows, and Home/End (application mode)
|
|
78
78
|
if seq.start_with?("\eO") && seq.length == 3
|
|
79
79
|
return case seq[2]
|
|
80
80
|
when 'P' then "F1"
|
|
81
81
|
when 'Q' then "F2"
|
|
82
82
|
when 'R' then "F3"
|
|
83
83
|
when 'S' then "F4"
|
|
84
|
+
when 'H' then "HOME" # SS3 Home (kitty/wezterm application mode)
|
|
85
|
+
when 'F' then "END" # SS3 End (kitty/wezterm application mode)
|
|
84
86
|
when 'a' then "C-UP" # Some terminals send ESC O a for Ctrl+Up
|
|
85
87
|
when 'b' then "C-DOWN" # Some terminals send ESC O b for Ctrl+Down
|
|
86
88
|
when 'c' then "C-RIGHT" # Some terminals send ESC O c for Ctrl+Right
|
data/lib/rcurses/pane.rb
CHANGED
|
@@ -279,8 +279,8 @@ module Rcurses
|
|
|
279
279
|
pl = 0 if pl < 0
|
|
280
280
|
hl = pl / 2
|
|
281
281
|
|
|
282
|
-
# Check if text has ANSI background colors (48 or
|
|
283
|
-
has_bg_color = @txt[l] =~ /\e\[
|
|
282
|
+
# Check if text has ANSI background colors (48;5;N or 48;2;R;G;B)
|
|
283
|
+
has_bg_color = @txt[l] =~ /\e\[[\d;]*48;[25];/
|
|
284
284
|
|
|
285
285
|
if @skip_colors || (@txt[l].include?("\e[") && !@bg)
|
|
286
286
|
# No pane colors to apply, or text has ANSI but pane has no bg
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rcurses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.1.
|
|
4
|
+
version: 6.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geir Isene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clipboard
|