storymode-cli 1.3.5 → 1.3.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.
- package/package.json +1 -1
- package/src/cli.mjs +4 -1
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -203,7 +203,10 @@ export async function run(args) {
|
|
|
203
203
|
// but iTerm2's \x1b[2J is intercepted by tmux). So for iTerm2 we use native
|
|
204
204
|
// splits (AppleScript) instead of tmux, keeping the companion process direct.
|
|
205
205
|
const renderMode = detectGraphicsProtocol();
|
|
206
|
-
|
|
206
|
+
// iTerm2 inside tmux: can't clear inline images (\x1b[2J intercepted by tmux).
|
|
207
|
+
// Kitty/Ghostty work fine in tmux (a=d,d=a deletes placements).
|
|
208
|
+
const useHd = renderMode.protocol === 'kitty'
|
|
209
|
+
|| (renderMode.protocol === 'iterm2' && !renderMode.inTmux);
|
|
207
210
|
const paneWidth = useHd && size === 'full' ? 80 : size === 'full' ? 62 : size === 'tiny' ? 14 : 22;
|
|
208
211
|
|
|
209
212
|
// If we're already the companion pane (spawned by tmux split), play inline
|