terminfo.dev 2.0.0 → 2.1.0
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/index.ts +1 -1
- package/src/probes/index.ts +13 -5
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/probes/index.ts
CHANGED
|
@@ -1017,11 +1017,16 @@ const sixelRender: Probe = {
|
|
|
1017
1017
|
|
|
1018
1018
|
const osc52Clipboard: Probe = {
|
|
1019
1019
|
id: "extensions.osc52-clipboard",
|
|
1020
|
-
name: "Clipboard
|
|
1020
|
+
name: "Clipboard access (OSC 52)",
|
|
1021
1021
|
async run() {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1022
|
+
// Write a small test value to clipboard, then verify terminal responds
|
|
1023
|
+
// Don't use "?" query — it returns full clipboard as huge base64 that leaks into stdin
|
|
1024
|
+
const testData = btoa("terminfo-test")
|
|
1025
|
+
process.stdout.write(`\x1b]52;c;${testData}\x07`)
|
|
1026
|
+
// Verify terminal still responds after OSC 52 (didn't crash/ignore)
|
|
1027
|
+
const pos = await queryCursorPosition()
|
|
1028
|
+
if (!pos) return { pass: false, note: "No response after OSC 52" }
|
|
1029
|
+
return { pass: true }
|
|
1025
1030
|
},
|
|
1026
1031
|
}
|
|
1027
1032
|
|
|
@@ -1078,7 +1083,10 @@ const extTruecolor: Probe = {
|
|
|
1078
1083
|
if (!pos) return { pass: false, note: "No cursor response" }
|
|
1079
1084
|
return {
|
|
1080
1085
|
pass: pos[1] === 2,
|
|
1081
|
-
note:
|
|
1086
|
+
note:
|
|
1087
|
+
pos[1] === 2
|
|
1088
|
+
? undefined
|
|
1089
|
+
: `cursor at col ${pos[1]}, expected 2 (truecolor sequence may have been printed literally)`,
|
|
1082
1090
|
}
|
|
1083
1091
|
},
|
|
1084
1092
|
}
|