@dunkinfrunkin/mdcat 0.1.6 → 0.1.7
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/tui.js +4 -4
package/package.json
CHANGED
package/src/tui.js
CHANGED
|
@@ -122,7 +122,7 @@ export function launch(title, lines) {
|
|
|
122
122
|
let matchIdx = 0;
|
|
123
123
|
|
|
124
124
|
// Mouse / clipboard state
|
|
125
|
-
let mouseEnabled =
|
|
125
|
+
let mouseEnabled = false;
|
|
126
126
|
let toast = ""; // brief status message
|
|
127
127
|
let toastTimer = null;
|
|
128
128
|
|
|
@@ -248,9 +248,9 @@ export function launch(title, lines) {
|
|
|
248
248
|
|
|
249
249
|
const mouseHint = mouseEnabled ? "" : `${C.matchFg} [select mode]${RESET}`;
|
|
250
250
|
const mouseW = mouseEnabled ? 0 : " [select mode]".length;
|
|
251
|
-
const hints = `${C.dim} q y / j k ↑↓ space g G${RESET}`;
|
|
251
|
+
const hints = `${C.dim} q y / j k ↑↓ space g G M${RESET}`;
|
|
252
252
|
const right = `${C.dimFg} ${pct} ${RESET}`;
|
|
253
|
-
const hintsW = " q y / j k ↑↓ space g G".length;
|
|
253
|
+
const hintsW = " q y / j k ↑↓ space g G M".length;
|
|
254
254
|
const rightW = ` ${pct} `.length;
|
|
255
255
|
const gap = Math.max(0, w - hintsW - mouseW - rightW);
|
|
256
256
|
return `${C.chromeBg}${hints}${mouseHint}${" ".repeat(gap)}${right}${RESET}`;
|
|
@@ -373,7 +373,7 @@ export function launch(title, lines) {
|
|
|
373
373
|
|
|
374
374
|
// ─── Boot ──────────────────────────────────────────────────────────────────
|
|
375
375
|
|
|
376
|
-
process.stdout.write(ALT_ON + HIDE_CUR
|
|
376
|
+
process.stdout.write(ALT_ON + HIDE_CUR);
|
|
377
377
|
if (process.stdin.setRawMode) {
|
|
378
378
|
process.stdin.setRawMode(true);
|
|
379
379
|
process.stdin.resume();
|