Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(tui): enable poster graphics passthrough in tmux sessions
Samir Hossains2670a888a788
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fdeaaca..5d55b36 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -24,6 +24,12 @@- Compacted addon torrent stream warning to `Blocked {} torrent streams. HTTP only.`.- Streamlined player crash fallback diagnostic to `Player exited (code {code}).`.### Fixed+- **tmux Poster Image Passthrough**:+ - Replaced the hard-coded `$TMUX` detection block in `src/tui/terminal.rs` with an outer terminal graphics capability probe (`GHOSTTY_RESOURCES_DIR`, `KITTY_WINDOW_ID`, `WEZTERM_EXECUTABLE`, `ITERM_SESSION_ID`, `ALACRITTY_LOG`, `ALACRITTY_WINDOW_ID`, `foot`).+ - Enabled automatic poster graphics queries and DCS passthrough inside `tmux` sessions running within Ghostty, Kitty, WezTerm, iTerm2, foot, and Alacritty, eliminating empty "No Art" placeholders.+- **Legacy Windows Console Compatibility (Windows 8.1 & conhost)**:+ - Eliminated unsupported `underline-color` control codes from ratatui crossterm backend, restoring full TUI rendering on Windows 8.1 and legacy Windows console hosts where `SetUnderlineColor` causes draw frame errors.+ - Pruned unused `all-widgets`, `widget-calendar`, and `macros` feature dependencies from ratatui build graph.- **Update Modal Geometry & Symmetrical Border Padding**:- Eliminated unnecessary dead vertical gap below action buttons in "Update Available" dialog by calculating exact rendered line heights (`update_modal_layout_with_env`) accounting for installation environment notices.- Symmetrized vertical padding with balanced 1-row margins above the version header and below the action button row, eliminating bottom-heavy content displacement.diff --git a/Cargo.lock b/Cargo.lockindex fd4cc7d..b8520a1 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -32,12 +32,6 @@ dependencies = ["libc",]-[[package]]-name = "anyhow"-version = "1.0.104"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"-[[package]]name = "approx"version = "0.5.1"@@ -67,15 +61,6 @@ dependencies = ["syn 3.0.3",]-[[package]]-name = "atomic"-version = "0.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a89cbf775b137e9b968e67227ef7f775587cde3fd31b0d8599dbd0f598a48340"-dependencies = [- "bytemuck",-]-[[package]]name = "atomic-waker"version = "1.1.2"@@ -110,27 +95,6 @@ dependencies = ["vsimd",]-[[package]]-name = "bit-set"-version = "0.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"-dependencies = [- "bit-vec",-]--[[package]]-name = "bit-vec"-version = "0.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"--[[package]]-name = "bitflags"-version = "1.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"-[[package]]name = "bitflags"version = "2.13.1"@@ -378,7 +342,7 @@ version = "0.29.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"dependencies = [- "bitflags 2.13.1",+ "bitflags","crossterm_winapi","derive_more","document-features",@@ -419,16 +383,6 @@ dependencies = ["hybrid-array",]-[[package]]-name = "csscolorparser"-version = "0.6.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eb2a7d3066da2de787b7f032c736763eb7ae5d355f81a68bab2675a96008b0bf"-dependencies = [- "lab",- "phf 0.11.3",-]-[[package]]name = "cssparser"version = "0.37.0"@@ -438,7 +392,7 @@ dependencies = ["cssparser-macros","dtoa-short","itoa",- "phf 0.13.1",+ "phf","smallvec",]@@ -501,12 +455,6 @@ version = "2.11.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"-[[package]]-name = "deltae"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5729f5117e208430e437df2f4843f5e5952997175992d1414f94c57d61e270b4"-[[package]]name = "deranged"version = "0.5.8"@@ -664,25 +612,6 @@ dependencies = ["windows-sys 0.61.2",]-[[package]]-name = "euclid"-version = "0.22.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06"-dependencies = [- "num-traits",-]--[[package]]-name = "fancy-regex"-version = "0.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2"-dependencies = [- "bit-set",- "regex",-]-[[package]]name = "fastrand"version = "2.5.0"@@ -698,17 +627,6 @@ dependencies = ["simd-adler32",]-[[package]]-name = "filedescriptor"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e40758ed24c9b2eeb76c35fb0aebc66c626084edd827e07e1552279814c6682d"-dependencies = [- "libc",- "thiserror 1.0.69",- "winapi",-]-[[package]]name = "filetime"version = "0.2.29"@@ -725,18 +643,6 @@ version = "0.1.10"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"-[[package]]-name = "finl_unicode"-version = "1.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9844ddc3a6e533d62bba727eb6c28b5d360921d5175e9ff0f1e621a5c590a4d5"--[[package]]-name = "fixedbitset"-version = "0.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"-[[package]]name = "flate2"version = "1.1.9"@@ -760,12 +666,6 @@ dependencies = ["thiserror 2.0.20",]-[[package]]-name = "fnv"-version = "1.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"-[[package]]name = "foldhash"version = "0.2.0"@@ -961,12 +861,6 @@ version = "0.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"-[[package]]-name = "hex"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"-[[package]]name = "hickory-proto"version = "0.25.2"@@ -1415,18 +1309,6 @@ dependencies = ["thiserror 2.0.20",]-[[package]]-name = "lab"-version = "0.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bf36173d4167ed999940f804952e6b08197cae5ad5d572eb4db150ce8ad5d58f"--[[package]]-name = "lazy_static"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"-[[package]]name = "libc"version = "0.2.189"@@ -1463,7 +1345,7 @@ version = "0.3.8"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e752191d037c44ad111a8caa762921926658402f01cc1253f7bef2020ece4f5e"dependencies = [- "bitflags 2.13.1",+ "bitflags",][[package]]@@ -1520,16 +1402,6 @@ version = "0.1.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"-[[package]]-name = "mac_address"-version = "1.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c0aeb26bf5e836cc1c341c8106051b573f1766dfa05aa87f0b98be5e51b02303"-dependencies = [- "nix",- "winapi",-]-[[package]]name = "markup5ever"version = "0.39.0"@@ -1557,21 +1429,6 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"-[[package]]-name = "memmem"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a64a92489e2744ce060c349162be1c5f33c6969234104dbd99ddb5feb08b8c15"--[[package]]-name = "memoffset"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"-dependencies = [- "autocfg",-]-[[package]]name = "mimalloc"version = "0.1.52"@@ -1581,12 +1438,6 @@ dependencies = ["libmimalloc-sys",]-[[package]]-name = "minimal-lexical"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"-[[package]]name = "miniz_oxide"version = "0.8.9"@@ -1648,6 +1499,7 @@ dependencies = ["percent-encoding","rand 0.10.2","ratatui",+ "ratatui-crossterm","ratatui-image","reqwest","rmp-serde",@@ -1683,29 +1535,6 @@ version = "1.0.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"-[[package]]-name = "nix"-version = "0.29.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"-dependencies = [- "bitflags 2.13.1",- "cfg-if",- "cfg_aliases",- "libc",- "memoffset",-]--[[package]]-name = "nom"-version = "7.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"-dependencies = [- "memchr",- "minimal-lexical",-]-[[package]]name = "nu-ansi-term"version = "0.50.3"@@ -1721,17 +1550,6 @@ version = "0.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"-[[package]]-name = "num-derive"-version = "0.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "num-traits"version = "0.2.19"@@ -1777,15 +1595,6 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"-[[package]]-name = "ordered-float"-version = "4.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"-dependencies = [- "num-traits",-]-[[package]]name = "ordered-float"version = "5.3.0"@@ -1864,97 +1673,25 @@ version = "2.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"-[[package]]-name = "pest"-version = "2.8.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7df728be843c7070fab6ab7c328c4e9e9d78e23bf749c0669c86ee7ebfa050a2"-dependencies = [- "memchr",- "ucd-trie",-]--[[package]]-name = "pest_derive"-version = "2.8.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e2dd6fc3b26b3462ee188aac870f5a41d398f1cd5e2408d16531bd71c9591fd"-dependencies = [- "pest",- "pest_generator",-]--[[package]]-name = "pest_generator"-version = "2.8.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6a7a9205cfb6f596a9e8b689c0a15f9ceb7a1aafae7aaf788150ac65b29975b6"-dependencies = [- "pest",- "pest_meta",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "pest_meta"-version = "2.8.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85abd351c0de1e8384fc791a0737111a350394937e92b956b743dac12429f57c"-dependencies = [- "pest",-]--[[package]]-name = "phf"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"-dependencies = [- "phf_macros 0.11.3",- "phf_shared 0.11.3",-]-[[package]]name = "phf"version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"dependencies = [- "phf_macros 0.13.1",- "phf_shared 0.13.1",+ "phf_macros",+ "phf_shared","serde",]-[[package]]-name = "phf_codegen"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",-]-[[package]]name = "phf_codegen"version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",-]--[[package]]-name = "phf_generator"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"-dependencies = [- "phf_shared 0.11.3",- "rand 0.8.7",+ "phf_generator",+ "phf_shared",][[package]]@@ -1964,20 +1701,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"dependencies = ["fastrand",- "phf_shared 0.13.1",-]--[[package]]-name = "phf_macros"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",- "proc-macro2",- "quote",- "syn 2.0.119",+ "phf_shared",][[package]]@@ -1986,22 +1710,13 @@ version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",+ "phf_generator",+ "phf_shared","proc-macro2","quote","syn 2.0.119",]-[[package]]-name = "phf_shared"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"-dependencies = [- "siphasher",-]-[[package]]name = "phf_shared"version = "0.13.1"@@ -2023,7 +1738,7 @@ version = "0.18.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"dependencies = [- "bitflags 2.13.1",+ "bitflags","crc32fast","fdeflate","flate2",@@ -2092,7 +1807,7 @@ dependencies = ["image","libm","num-traits",- "ordered-float 5.3.0",+ "ordered-float","palette","rand 0.9.5","rand_xoshiro",@@ -2292,10 +2007,6 @@ checksum = "3274ba0a2c5e1bcad2a2005d20f4dc59dad26b2eb0940fb094500dba4099d57d"dependencies = ["instability","ratatui-core",- "ratatui-crossterm",- "ratatui-macros",- "ratatui-termina",- "ratatui-termwiz","ratatui-widgets","serde",]@@ -2306,7 +2017,7 @@ version = "0.1.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cbb175c433c8e28a809d1f5773a2ae96e68c0ce40db865cbab1020bf33ae479c"dependencies = [- "bitflags 2.13.1",+ "bitflags","compact_str","critical-section","hashbrown 0.17.1",@@ -2351,44 +2062,13 @@ dependencies = ["windows",]-[[package]]-name = "ratatui-macros"-version = "0.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed7dc68daa7498a43e4d68e0eb078427e10c38fbcfbb1e42d955f1fa2140d814"-dependencies = [- "ratatui-core",- "ratatui-widgets",-]--[[package]]-name = "ratatui-termina"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c0bf912d9e66f057a759d92e386a280ea886b352ab757d6ac4d653c7ed2c43c2"-dependencies = [- "instability",- "ratatui-core",- "termina",-]--[[package]]-name = "ratatui-termwiz"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "faf03e0380b7744054d6cb74224fe3adf062a029754933f575ca1e3b4c2ce977"-dependencies = [- "ratatui-core",- "termwiz",-]-[[package]]name = "ratatui-widgets"version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "66e3d19bcc9130ca376277d93b60767ff121ace3be06f5f95f81dd68956407d1"dependencies = [- "bitflags 2.13.1",+ "bitflags","hashbrown 0.17.1","indoc","instability",@@ -2428,7 +2108,7 @@ version = "0.5.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"dependencies = [- "bitflags 2.13.1",+ "bitflags",][[package]]@@ -2592,7 +2272,7 @@ version = "0.38.44"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"dependencies = [- "bitflags 2.13.1",+ "bitflags","errno","libc","linux-raw-sys 0.4.15",@@ -2605,7 +2285,7 @@ version = "1.1.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"dependencies = [- "bitflags 2.13.1",+ "bitflags","errno","libc","linux-raw-sys 0.12.1",@@ -2695,13 +2375,13 @@ version = "0.38.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"dependencies = [- "bitflags 2.13.1",+ "bitflags","cssparser","derive_more","log","new_debug_unreachable",- "phf 0.13.1",- "phf_codegen 0.13.1",+ "phf",+ "phf_codegen","precomputed-hash","rustc-hash","servo_arc",@@ -2886,7 +2566,7 @@ checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"dependencies = ["new_debug_unreachable","parking_lot",- "phf_shared 0.13.1",+ "phf_shared","precomputed-hash",]@@ -2896,8 +2576,8 @@ version = "0.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"dependencies = [- "phf_generator 0.13.1",- "phf_shared 0.13.1",+ "phf_generator",+ "phf_shared","proc-macro2","quote",]@@ -2935,17 +2615,6 @@ version = "2.6.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"-[[package]]-name = "syn"-version = "1.0.109"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]-[[package]]name = "syn"version = "2.0.119"@@ -3033,82 +2702,6 @@ dependencies = ["new_debug_unreachable",]-[[package]]-name = "termina"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9048a889effe34a5cddee0af7f53285198b16dca3be510858d38dfdb3e62a04e"-dependencies = [- "bitflags 2.13.1",- "parking_lot",- "rustix 1.1.4",- "signal-hook",- "windows-sys 0.61.2",-]--[[package]]-name = "terminfo"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4ea810f0692f9f51b382fff5893887bb4580f5fa246fde546e0b13e7fcee662"-dependencies = [- "fnv",- "nom",- "phf 0.11.3",- "phf_codegen 0.11.3",-]--[[package]]-name = "termios"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "411c5bf740737c7918b8b1fe232dca4dc9f8e754b8ad5e20966814001ed0ac6b"-dependencies = [- "libc",-]--[[package]]-name = "termwiz"-version = "0.23.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4676b37242ccbd1aabf56edb093a4827dc49086c0ffd764a5705899e0f35f8f7"-dependencies = [- "anyhow",- "base64 0.22.1",- "bitflags 2.13.1",- "fancy-regex",- "filedescriptor",- "finl_unicode",- "fixedbitset",- "hex",- "lazy_static",- "libc",- "log",- "memmem",- "nix",- "num-derive",- "num-traits",- "ordered-float 4.6.0",- "pest",- "pest_derive",- "phf 0.11.3",- "sha2",- "signal-hook",- "siphasher",- "terminfo",- "termios",- "thiserror 1.0.69",- "ucd-trie",- "unicode-segmentation",- "vtparse",- "wezterm-bidi",- "wezterm-blob-leases",- "wezterm-color-types",- "wezterm-dynamic",- "wezterm-input-types",- "winapi",-]-[[package]]name = "thiserror"version = "1.0.69"@@ -3266,7 +2859,7 @@ version = "0.6.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"dependencies = [- "bitflags 2.13.1",+ "bitflags","bytes","futures-util","http",@@ -3321,12 +2914,6 @@ version = "1.20.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"-[[package]]-name = "ucd-trie"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"-[[package]]name = "unicode-ident"version = "1.0.24"@@ -3380,19 +2967,12 @@ version = "1.0.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"-[[package]]-name = "utf8parse"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"-[[package]]name = "uuid"version = "1.24.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239"dependencies = [- "atomic","getrandom 0.4.3","js-sys","wasm-bindgen",@@ -3410,15 +2990,6 @@ version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"-[[package]]-name = "vtparse"-version = "0.6.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d9b2acfb050df409c972a37d3b8e08cdea3bddb0c09db9d53137e504cfabed0"-dependencies = [- "utf8parse",-]-[[package]]name = "want"version = "0.3.1"@@ -3537,8 +3108,8 @@ version = "0.2.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "075474b12bcb3d2e3d4546580e9de478eeeead668a1761e2a8860c836b7ef297"dependencies = [- "phf 0.13.1",- "phf_codegen 0.13.1",+ "phf",+ "phf_codegen","string_cache","string_cache_codegen",]@@ -3552,78 +3123,6 @@ dependencies = ["rustls-pki-types",]-[[package]]-name = "wezterm-bidi"-version = "0.2.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c0a6e355560527dd2d1cf7890652f4f09bb3433b6aadade4c9b5ed76de5f3ec"-dependencies = [- "log",- "wezterm-dynamic",-]--[[package]]-name = "wezterm-blob-leases"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "692daff6d93d94e29e4114544ef6d5c942a7ed998b37abdc19b17136ea428eb7"-dependencies = [- "getrandom 0.3.4",- "mac_address",- "sha2",- "thiserror 1.0.69",- "uuid",-]--[[package]]-name = "wezterm-color-types"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7de81ef35c9010270d63772bebef2f2d6d1f2d20a983d27505ac850b8c4b4296"-dependencies = [- "csscolorparser",- "deltae",- "lazy_static",- "wezterm-dynamic",-]--[[package]]-name = "wezterm-dynamic"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5f2ab60e120fd6eaa68d9567f3226e876684639d22a4219b313ff69ec0ccd5ac"-dependencies = [- "log",- "ordered-float 4.6.0",- "strsim",- "thiserror 1.0.69",- "wezterm-dynamic-derive",-]--[[package]]-name = "wezterm-dynamic-derive"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "46c0cf2d539c645b448eaffec9ec494b8b19bd5077d9e58cb1ae7efece8d575b"-dependencies = [- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "wezterm-input-types"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7012add459f951456ec9d6c7e6fc340b1ce15d6fc9629f8c42853412c029e57e"-dependencies = [- "bitflags 1.3.2",- "euclid",- "lazy_static",- "serde",- "wezterm-dynamic",-]-[[package]]name = "wide"version = "0.8.3"diff --git a/Cargo.toml b/Cargo.tomlindex 370b331..6079ae8 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -35,8 +35,9 @@ image = { version = "0.25.10", default-features = false, features = ["jpeg", "pnlru = "0.18.1"md-5 = "0.11.0"rand = "0.10.2"-ratatui = "0.30.2"-ratatui-image = { version = "11.0.6", default-features = false, features = ["crossterm"] }+ratatui = { version = "0.30.2", default-features = false, features = ["std", "layout-cache"] }+ratatui-crossterm = { version = "0.1.2", default-features = false, features = ["crossterm_0_29"] }+ratatui-image = { version = "11.0.6", default-features = false }rustls = { version = "0.23.42", default-features = false, features = ["ring", "std"] }scraper = "0.27.0"semver = "1.0.28"diff --git a/docs/config.md b/docs/config.mdindex 9821897..383ebc4 100644--- a/docs/config.md+++ b/docs/config.md@@ -53,9 +53,17 @@ All settings in `config.json` can be configured interactively inside the applica| `MOVIEBOX_FOURKHDHUB_URL` | Override the 4KHDHub base URL. || `MOVIEBOX_THEME` | Force a theme (e.g. `Mocha`, `Latte`, `Macchiato`, `Frappe`, `Nord`, `TokyoNight`, `Dracula`, `Gruvbox`, `RosePine`). When unset and no saved theme exists, the app auto-detects: `NO_COLOR` wins, truecolor terminals get full palettes, 256-color terminals get quantized palettes, and the OSC 11 background query picks light/dark variants with WCAG AA contrast. || `MOVIEBOX_NO_IMAGE` | Disable poster image queries (set to `1` or `true`). |-| `MOVIEBOX_IMAGE_PROTOCOL` | Override image protocol (`kitty`, `sixel`, `iterm2`, or `none`/`off`). |+| `MOVIEBOX_IMAGE_PROTOCOL` | Override image protocol (`kitty`, `sixel`, `iterm2`, or `none`/`off`). Required when running inside `tmux` with an outer terminal that is not auto-detected as graphics-capable (Ghostty, Kitty, WezTerm, iTerm2, foot, Alacritty). Example: `MOVIEBOX_IMAGE_PROTOCOL=kitty moviebox-tui`. || `MOVIEBOX_CELL_SIZE` | Override terminal cell size as `WxH` (e.g. `10x20`) for poster scaling. |+### tmux poster passthrough++Inside a `tmux` session, poster images are automatically enabled when the outer+terminal is Ghostty, Kitty, WezTerm, iTerm2, foot, or Alacritty. `tmux` must+have `allow-passthrough` enabled (set automatically by the app on supported+terminals). For any other outer terminal, set+`MOVIEBOX_IMAGE_PROTOCOL=kitty` (or `sixel`/`iterm2`) to force passthrough.+## CLI- `moviebox-tui --help` and `moviebox-tui -h` print the help manual and exit.diff --git a/docs/cross-platform.md b/docs/cross-platform.mdindex 177b32f..94e106f 100644--- a/docs/cross-platform.md+++ b/docs/cross-platform.md@@ -11,7 +11,7 @@ the release checks in [`release-checklist.md`](release-checklist.md).| Platform | Notes || :--- | :--- || macOS | IINA preferred player (via the installed IINA `iina-cli`); VLC/mpv `.app` paths detected. `process_group(0)` on spawn. |-| Windows | mpv/VLC detected via Program Files + `%LOCALAPPDATA%` (filtering out 0-byte Windows Store `WindowsApps` execution alias stubs); path-safe file stems; static MSVC CRT linking (`+crt-static`) for zero-dependency standalone binaries; handle-safe atomic download replacement (dropping file handles before renames); background process spawning (registry queries and yt-dlp downloader) hardened with `CREATE_NO_WINDOW` (`0x08000000`) and isolated with `CREATE_NEW_PROCESS_GROUP` (`0x00000200`) so terminal interrupts do not kill active downloads; updater helper process spawned with `DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP` so console exit does not abort in-flight binary replacement. |+| Windows | mpv/VLC detected via Program Files + `%LOCALAPPDATA%` (filtering out 0-byte Windows Store `WindowsApps` execution alias stubs); path-safe file stems; static MSVC CRT linking (`+crt-static`) for zero-dependency standalone binaries; handle-safe atomic download replacement (dropping file handles before renames); background process spawning (registry queries and yt-dlp downloader) hardened with `CREATE_NO_WINDOW` (`0x08000000`) and isolated with `CREATE_NEW_PROCESS_GROUP` (`0x00000200`) so terminal interrupts do not kill active downloads; updater helper process spawned with `DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP` so console exit does not abort in-flight binary replacement; full legacy Windows console (`conhost.exe` on Windows 8.1 and earlier) compatibility via crossterm WinAPI fallback by eliminating unsupported underline color sequences. || Linux | Flatpak mpv/VLC supported (`flatpak run …`); xdg data/cache dirs. Linux ARM64 binaries (`MovieBox_Linux_arm64.tar.gz`) are fully static musl executables linked with 64KB ELF segment alignment (`-Wl,-z,max-page-size=65536`) for compatibility across 4KB, 16KB, and 64KB page kernels. || Android (Termux) | Targets `aarch64-linux-android` linked against the Android NDK (Clang API 24+) and system Bionic `libc.so`, producing a native ELF executable with a valid `PT_PHDR` program header table and `/system/bin/linker64` dynamic loader. This eliminates `Could not find a PHDR: broken executable?` crashes and executes natively without on-device compilation. Includes a pure-Rust DNS resolver that reads system configuration and falls back to public resolvers (Cloudflare, Google, Quad9) for zero-config name resolution. Android playback delegates to external video players via Termux intent dispatchers (`termux-open`, `termux-open-url`, `termux-am`), requiring `pkg install -y termux-tools termux-am`. Detection prioritizes the native Android player bridge ahead of headless CLI players and strictly gates system `am` probes behind `target_os = "android"`. Download storage directory prefers `~/storage/downloads` when running inside verified Termux environments. |@@ -29,9 +29,10 @@ prevent escape sequence probe leakage (`Gi=31...`):PowerShell, legacy console host, macOS Terminal.app), search result cardsand details screens display standardized bordered containers with centered `No Art`indicators, ensuring consistent layout geometry without confusing broken blocks.- automatically gated behind `has_active_modal()` to prevent graphic bleed- through modal popups and overlays. `MOVIEBOX_NO_IMAGE=1` disables queries;- `MOVIEBOX_IMAGE_PROTOCOL` forces a protocol (`kitty`, `sixel`, `iterm2`);+ Poster queries are automatically gated behind `has_active_modal()` to prevent graphic bleed+ through modal popups and overlays. Inside `tmux` sessions, poster graphics passthrough is+ automatically enabled when running under Ghostty, Kitty, WezTerm, iTerm2, foot, or Alacritty.+ `MOVIEBOX_NO_IMAGE=1` disables queries; `MOVIEBOX_IMAGE_PROTOCOL` forces a protocol (`kitty`, `sixel`, `iterm2`);`MOVIEBOX_CELL_SIZE=WxH` overrides metrics.- **Colors & Themes**: With no explicit theme, `NO_COLOR` wins, then truecolor RGB(auto-detected across Ghostty, Kitty, WezTerm, iTerm2, Alacritty, Foot, Windows Terminal,diff --git a/src/main.rs b/src/main.rsindex bd10adb..c1db0af 100644--- a/src/main.rs+++ b/src/main.rs@@ -121,7 +121,7 @@ async fn main() -> std::io::Result<()> {let stdout = std::io::stdout();let backend =- ratatui::backend::CrosstermBackend::new(std::io::BufWriter::with_capacity(65536, stdout));+ ratatui_crossterm::CrosstermBackend::new(std::io::BufWriter::with_capacity(65536, stdout));let mut terminal = ratatui::Terminal::new(backend)?;crossterm::terminal::enable_raw_mode()?;let _guard = TerminalGuard;diff --git a/src/tui/terminal.rs b/src/tui/terminal.rsindex 09212d4..acc7085 100644--- a/src/tui/terminal.rs+++ b/src/tui/terminal.rs@@ -9,6 +9,32 @@ pub fn uses_basic_ui() -> bool {}crate::tui::theme::ColorSupport::current() == crate::tui::theme::ColorSupport::Basic}+fn is_inside_tmux() -> bool {+ std::env::var("TMUX").is_ok()+}++fn outer_terminal_supports_graphics() -> bool {+ if std::env::var("GHOSTTY_RESOURCES_DIR").is_ok() {+ return true;+ }+ if std::env::var("KITTY_WINDOW_ID").is_ok() {+ return true;+ }+ if std::env::var("WEZTERM_EXECUTABLE").is_ok() {+ return true;+ }+ if std::env::var("ITERM_SESSION_ID").is_ok() {+ return true;+ }+ if std::env::var("ALACRITTY_LOG").is_ok() || std::env::var("ALACRITTY_WINDOW_ID").is_ok() {+ return true;+ }+ let term = env("TERM");+ if term.starts_with("foot") {+ return true;+ }+ false+}pub fn should_query_images() -> bool {if std::env::var("MOVIEBOX_NO_IMAGE").is_ok_and(|v| v == "1" || v.eq_ignore_ascii_case("true"))@@ -27,7 +53,10 @@ pub fn should_query_images() -> bool {return true;}}- if std::env::var("TMUX").is_ok() && std::env::var("MOVIEBOX_IMAGE_PROTOCOL").is_err() {+ if is_inside_tmux()+ && std::env::var("MOVIEBOX_IMAGE_PROTOCOL").is_err()+ && !outer_terminal_supports_graphics()+ {return false;}if std::env::var("TERM_PROGRAM").is_ok_and(|v| v == "Apple_Terminal") {@@ -99,6 +128,50 @@ mod tests {std::env::set_var("MOVIEBOX_IMAGE_PROTOCOL", "kitty");assert!(should_query_images());std::env::remove_var("MOVIEBOX_IMAGE_PROTOCOL");+ let saved_ghostty = std::env::var("GHOSTTY_RESOURCES_DIR").ok();+ let saved_kitty = std::env::var("KITTY_WINDOW_ID").ok();+ let saved_wezterm = std::env::var("WEZTERM_EXECUTABLE").ok();+ let saved_iterm = std::env::var("ITERM_SESSION_ID").ok();+ let saved_alacritty_log = std::env::var("ALACRITTY_LOG").ok();+ let saved_alacritty_win = std::env::var("ALACRITTY_WINDOW_ID").ok();++ std::env::remove_var("GHOSTTY_RESOURCES_DIR");+ std::env::remove_var("KITTY_WINDOW_ID");+ std::env::remove_var("WEZTERM_EXECUTABLE");+ std::env::remove_var("ITERM_SESSION_ID");+ std::env::remove_var("ALACRITTY_LOG");+ std::env::remove_var("ALACRITTY_WINDOW_ID");++ std::env::set_var("TMUX", "/tmp/tmux-1000/default,12345,0");+ assert!(!should_query_images());++ std::env::set_var("GHOSTTY_RESOURCES_DIR", "/usr/share/ghostty");+ assert!(should_query_images());+ std::env::remove_var("GHOSTTY_RESOURCES_DIR");++ std::env::set_var("MOVIEBOX_IMAGE_PROTOCOL", "kitty");+ assert!(should_query_images());+ std::env::remove_var("MOVIEBOX_IMAGE_PROTOCOL");+ std::env::remove_var("TMUX");++ if let Some(v) = saved_ghostty {+ std::env::set_var("GHOSTTY_RESOURCES_DIR", v);+ }+ if let Some(v) = saved_kitty {+ std::env::set_var("KITTY_WINDOW_ID", v);+ }+ if let Some(v) = saved_wezterm {+ std::env::set_var("WEZTERM_EXECUTABLE", v);+ }+ if let Some(v) = saved_iterm {+ std::env::set_var("ITERM_SESSION_ID", v);+ }+ if let Some(v) = saved_alacritty_log {+ std::env::set_var("ALACRITTY_LOG", v);+ }+ if let Some(v) = saved_alacritty_win {+ std::env::set_var("ALACRITTY_WINDOW_ID", v);+ }}}}