oroute-cli 0.2.1 → 0.2.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/dist/oroute.cjs +2 -1
- package/package.json +1 -1
package/dist/oroute.cjs
CHANGED
|
@@ -244126,7 +244126,8 @@ ${GRAY4} \u2584\u2584\u2588\u2588\u2588\u2584\u2584
|
|
|
244126
244126
|
\u2514\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2518${RESET2}`;
|
|
244127
244127
|
function displayInlineImage(imagePath, width = 20) {
|
|
244128
244128
|
const termProgram = process.env["TERM_PROGRAM"] ?? "";
|
|
244129
|
-
const
|
|
244129
|
+
const isWindows = process.platform === "win32";
|
|
244130
|
+
const supportsImages = !isWindows && ["iTerm.app", "WezTerm"].includes(termProgram);
|
|
244130
244131
|
if (!supportsImages) return false;
|
|
244131
244132
|
try {
|
|
244132
244133
|
const imageData = fs19.readFileSync(imagePath);
|