fatty 0.99.8.5 → 0.99.8.6

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: 6d2ce5d4499e640b71d333ef143a02f3590aa44514f6ad64c21017ff4eb829f7
4
- data.tar.gz: 5c9ac04a0c7975c71756c3a9364ab0222e43ec5696150cfed3526b589b3cdd48
3
+ metadata.gz: 8562f60e8a05b35d373ee1d0b5e6e825bfd9febd4f725882808447661cc23b24
4
+ data.tar.gz: a56b9cffd9f555f7c5e790825c3b449ff07bea8c1474a7084c50216177a6741a
5
5
  SHA512:
6
- metadata.gz: a9fab1feaae8bacc7dcda281b9081fed3bab00440445763ab25577399e233321574828b1b014fc3ab9121d35aee69be66dbf2380cc03a16697c4aab4605930cb
7
- data.tar.gz: 7c6c437ca0b0b3e5ab28a4488a30a770ef3ab127b2467c83b255e9551db7ce40294e469c2e4817f964171bde56847ef6bdfe99e2a936bbcc17c729bd0c7b6226
6
+ metadata.gz: 80c8c5d52c3fd7e36ed85548aaafcc43c48d2e4b60ae78da95b6311e06298a9b3b352974eaf22628b7bee6bb9ddaf4be5164ca67864af8b5d7c802ff689537e6
7
+ data.tar.gz: 220dfef58f987ab32a237cc2b9917fe96b71436163cb290036e6de62b43c5b94d12e13349085569c4187d381510b9da512e678629c25f7b52fe9c7e8948e17f8
data/CHANGELOG.org CHANGED
@@ -6,6 +6,11 @@
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.6 [2026-10-04 Sun]
10
+
11
+ - Fix the truecolor display going blank after returning from an external command.
12
+ - Add =clear_now= to clear and immediately redraw the output pane from a callback.
13
+
9
14
  * Version 1.0.0
10
15
  Initial stable release.
11
16
 
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.
@@ -26,6 +26,12 @@ module Fatty
26
26
  nil
27
27
  end
28
28
 
29
+ def clear_now
30
+ terminal.apply_command(Command.session(output_id, :clear))
31
+ terminal.render_frame
32
+ nil
33
+ end
34
+
29
35
  def markdown(text)
30
36
  md = Fatty::Markdown.render(
31
37
  text,
@@ -202,7 +202,12 @@ module Fatty
202
202
  ctx.resume
203
203
  reconcile_terminal_size!
204
204
  renderer.invalidate!
205
- renderer.clear_physical_screen! if renderer.context.truecolor
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fatty
4
- VERSION = "0.99.8.5"
4
+ VERSION = "0.99.8.6"
5
5
  end
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.5
4
+ version: 0.99.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-10-03 00:00:00.000000000 Z
10
+ date: 2026-10-04 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: curses