fatty 0.99.8.5 → 0.99.8.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/CHANGELOG.org +11 -0
- data/README.md +8 -0
- data/README.org +6 -0
- data/lib/fatty/api/output.rb +6 -0
- data/lib/fatty/curses/curses_coder.rb +2 -0
- data/lib/fatty/terminal.rb +6 -1
- data/lib/fatty/version.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: 519b734dc4d7f0897a42e766e58732f13458b7f8f1bfac59f0582b1862006805
|
|
4
|
+
data.tar.gz: 003edc0102fda74f0b9d530fb2682f9b810a5bd9756eec6464f0e0443a3efb9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9691e1dafdd5c714b9e490d91be490bb5d05c591d74ffb8b7421f9092d2b083c7d035d9afeebb933ed096783c9214638059d738caff2441541ead719aa03d8d
|
|
7
|
+
data.tar.gz: a77da76a84bdbf1a8806fa9f921fbf3c13aa509b7ccfa0a476a4bfc92111d29687b382a10e4d311a4ab59693de1064a8874da804a9ee19077d7bf66e8a7a56f8
|
data/CHANGELOG.org
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
user would find useful.
|
|
7
7
|
5. Give each heading a version number and an inactive date (C-c ! is useful here).
|
|
8
8
|
|
|
9
|
+
* Version 0.99.8.7 [2026-10-06 Tue]
|
|
10
|
+
|
|
11
|
+
- Recognize Backspace and Meta-Backspace when terminals send raw DEL (127),
|
|
12
|
+
including FreeBSD's XFCE terminal, without requiring custom key definitions.
|
|
13
|
+
- Preserve the forward Delete key and user-defined key mappings.
|
|
14
|
+
|
|
15
|
+
* Version 0.99.8.6 [2026-10-04 Sun]
|
|
16
|
+
|
|
17
|
+
- Fix the truecolor display going blank after returning from an external command.
|
|
18
|
+
- Add =clear_now= to clear and immediately redraw the output pane from a callback.
|
|
19
|
+
|
|
9
20
|
* Version 1.0.0
|
|
10
21
|
Initial stable release.
|
|
11
22
|
|
data/README.md
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
- [The Callback API](#org5f103bb)
|
|
22
22
|
- [`append(text, follow: true, role: nil)`](#orgf90a804)
|
|
23
23
|
- [`append_now(text, follow: true, mode: nil, role: nil)`](#org96421ae)
|
|
24
|
+
- [`clear_now`](#org4e94048)
|
|
24
25
|
- [`markdown(text)`](#orge61ad54)
|
|
25
26
|
- [`status(text, role: :info)`](#org8d20d95)
|
|
26
27
|
- [`good(text, replace: false, render: true)`](#org4430a3b)
|
|
@@ -478,6 +479,13 @@ Setting the mode to `:scrolling` or `:paging` determines whether the output is s
|
|
|
478
479
|
You can specify a "role" of `:good`, `:info`, `:warn`, or `:error` to color the output according to the current theme's coloring scheme for those roles. Those role names can be symbols or strings.
|
|
479
480
|
|
|
480
481
|
|
|
482
|
+
<a id="org4e94048"></a>
|
|
483
|
+
|
|
484
|
+
### `clear_now`
|
|
485
|
+
|
|
486
|
+
Clear the callback's output pane and redraw immediately. Use this before displaying a fresh report or starting the next step of a guided workflow. This affects output already displayed; queued `append` commands remain queued, just as they do when calling `append_now`.
|
|
487
|
+
|
|
488
|
+
|
|
481
489
|
<a id="orge61ad54"></a>
|
|
482
490
|
|
|
483
491
|
### `markdown(text)`
|
data/README.org
CHANGED
|
@@ -396,6 +396,12 @@ You can specify a "role" of =:good=, =:info=, =:warn=, or =:error= to color
|
|
|
396
396
|
the output according to the current theme's coloring scheme for those roles.
|
|
397
397
|
Those role names can be symbols or strings.
|
|
398
398
|
|
|
399
|
+
*** =clear_now=
|
|
400
|
+
Clear the callback's output pane and redraw immediately. Use this before
|
|
401
|
+
displaying a fresh report or starting the next step of a guided workflow.
|
|
402
|
+
This affects output already displayed; queued =append= commands remain queued,
|
|
403
|
+
just as they do when calling =append_now=.
|
|
404
|
+
|
|
399
405
|
*** =markdown(text)=
|
|
400
406
|
Render the given text as markdown source according to the current theme then
|
|
401
407
|
=append= the result to the output pane.
|
data/lib/fatty/api/output.rb
CHANGED
|
@@ -540,6 +540,8 @@ module Fatty
|
|
|
540
540
|
# Special case for TAB. Curses::KEY_CTRL_I may not get defined on all
|
|
541
541
|
# platforms.
|
|
542
542
|
9 => Fatty::KeyEvent.new(key: :tab, raw: 9),
|
|
543
|
+
# Some terminals return the raw DEL byte instead of KEY_BACKSPACE.
|
|
544
|
+
127 => Fatty::KeyEvent.new(key: :backspace, raw: 127),
|
|
543
545
|
::Curses::KEY_RESIZE => Fatty::KeyEvent.new(key: :resize, raw: ::Curses::KEY_RESIZE),
|
|
544
546
|
::Curses::KEY_BTAB => Fatty::KeyEvent.new(key: :tab, shift: true, raw: ::Curses::KEY_BTAB),
|
|
545
547
|
::Curses::KEY_BACKSPACE => Fatty::KeyEvent.new(key: :backspace, raw: ::Curses::KEY_BACKSPACE),
|
data/lib/fatty/terminal.rb
CHANGED
|
@@ -202,7 +202,12 @@ module Fatty
|
|
|
202
202
|
ctx.resume
|
|
203
203
|
reconcile_terminal_size!
|
|
204
204
|
renderer.invalidate!
|
|
205
|
-
|
|
205
|
+
if renderer.context.truecolor
|
|
206
|
+
# Layout reconciliation rebuilds the input window. Its first getch
|
|
207
|
+
# would refresh curses' blank backing screen over the ANSI frame.
|
|
208
|
+
ctx.input_win&.refresh
|
|
209
|
+
renderer.clear_physical_screen!
|
|
210
|
+
end
|
|
206
211
|
render_frame
|
|
207
212
|
@deferred_render = true
|
|
208
213
|
end
|
data/lib/fatty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fatty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.99.8.
|
|
4
|
+
version: 0.99.8.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel E. Doherty
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-10-
|
|
10
|
+
date: 2026-10-06 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: curses
|