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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8dc65aadeb8d0dea863bb60bda36ed074a3f505c1127eb3350ea39baae51cc6
4
- data.tar.gz: aae046ee6d03631eb6c56a5bb77ddd5342334f1a843c592fb0d14f0185302be5
3
+ metadata.gz: 0c6cd88e7945b9df842bb148be5d71b6e04bf912bbe16ab676bab21b940479ce
4
+ data.tar.gz: 71bc49050001d78f38f2d749c74c2648c9278ccf7dc5b33f576a9d4f4b3ab639
5
5
  SHA512:
6
- metadata.gz: 06cff198d73cab23c5d063405186ba3613042abaa3e6f889eede18f8d1606480c715d38ff7f0df4082ee28e9f154b733283684e0bae1e66a433195db45c693ea
7
- data.tar.gz: '0796b77ec48324ece4f2218f14f84156bcde021736ab197dbc596da05996a7df866ca0d79d174a6d1e23ed3761ce8eaccb6c96113cd2388f3d43012e6d279b9a'
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\[([ABCD])\z/)
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 and Ctrl+arrows
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 4x codes)
283
- has_bg_color = @txt[l] =~ /\e\[(?:\d+;)*4[0-9](?:;\d+)*m/ || @txt[l] =~ /\e\[(?:\d+;)*48(?:;\d+)*m/
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.5
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: 2025-10-13 00:00:00.000000000 Z
11
+ date: 2026-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clipboard