consolle 0.3.0 → 0.3.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/.version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/consolle/server/console_supervisor.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 985e37c4ac0dab7d0404e36898e75e23e4337a9d5e57b379f4e4f6b57e6461b2
|
|
4
|
+
data.tar.gz: fe8fa63ff1d743359391c81a0d3f1a472d494f72eb86a88d6be1e852d1f57e5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d490d26a53d2db34d1943c162dcbeea8b359632c36846ddf803afcee7b6d93f11cc1e759e9e06b66b743d2fd38c2d8ba71a39ac5623318f106227229bf977ad6
|
|
7
|
+
data.tar.gz: 94610670b7059fe04fff2fb143b63502c29171b3f435c06f808897f74cbd05e16732efcf89ea9a27e4944680501d0b7ed93879ce10e5b67b02e57349ada15815
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
data/Gemfile.lock
CHANGED
|
@@ -318,6 +318,13 @@ module Consolle
|
|
|
318
318
|
chunk = @reader.read_nonblock(4096)
|
|
319
319
|
output << chunk
|
|
320
320
|
marker_found = output.include?(marker)
|
|
321
|
+
|
|
322
|
+
# Respond to cursor position request during initialization
|
|
323
|
+
if chunk.include?("\e[6n")
|
|
324
|
+
logger.debug "[ConsoleSupervisor] Detected cursor position request during init, sending response"
|
|
325
|
+
@writer.write("\e[1;1R")
|
|
326
|
+
@writer.flush
|
|
327
|
+
end
|
|
321
328
|
rescue IO::WaitReadable
|
|
322
329
|
IO.select([@reader], nil, nil, 0.1)
|
|
323
330
|
rescue Errno::EIO
|
|
@@ -420,6 +427,13 @@ module Consolle
|
|
|
420
427
|
last_data_time = Time.now
|
|
421
428
|
logger.debug "[ConsoleSupervisor] Got chunk: #{chunk.inspect}"
|
|
422
429
|
|
|
430
|
+
# Respond to cursor position request (ESC[6n)
|
|
431
|
+
if chunk.include?("\e[6n")
|
|
432
|
+
logger.debug "[ConsoleSupervisor] Detected cursor position request, sending response"
|
|
433
|
+
@writer.write("\e[1;1R") # Report cursor at position 1,1
|
|
434
|
+
@writer.flush
|
|
435
|
+
end
|
|
436
|
+
|
|
423
437
|
clean = strip_ansi(output)
|
|
424
438
|
# Check each line for prompt pattern
|
|
425
439
|
clean.lines.each do |line|
|