storymode-cli 1.3.1 → 1.3.2
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.
- package/package.json +1 -1
- package/src/cli.mjs +5 -1
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -199,8 +199,12 @@ export async function run(args) {
|
|
|
199
199
|
const reactive = !flags['no-reactive'];
|
|
200
200
|
|
|
201
201
|
// Auto-detect graphics protocol for HD rendering
|
|
202
|
+
// iTerm2 inside tmux can't clear previous inline images (no equivalent of
|
|
203
|
+
// Kitty's a=d,d=a — \x1b[2J is intercepted by tmux, not forwarded to iTerm2).
|
|
204
|
+
// So HD only works for: Kitty/Ghostty (any context) or iTerm2 (direct, no tmux).
|
|
202
205
|
const renderMode = detectGraphicsProtocol();
|
|
203
|
-
const useHd =
|
|
206
|
+
const useHd = renderMode.protocol === 'kitty'
|
|
207
|
+
|| (renderMode.protocol === 'iterm2' && !renderMode.inTmux);
|
|
204
208
|
const paneWidth = useHd && size === 'full' ? 80 : size === 'full' ? 62 : size === 'tiny' ? 14 : 22;
|
|
205
209
|
|
|
206
210
|
// If we're already the companion pane (spawned by tmux split), play inline
|