@gemdoq/codi 0.1.5 → 0.1.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/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -826,6 +826,22 @@ var Repl = class {
|
|
|
826
826
|
if (process.stdin.isTTY && os2.platform() !== "win32") {
|
|
827
827
|
process.stdout.write("\x1B[?2004h");
|
|
828
828
|
}
|
|
829
|
+
if (os2.platform() === "win32" && process.stdin.isTTY) {
|
|
830
|
+
process.stdin.on("keypress", (_str, key) => {
|
|
831
|
+
if (key && key.sequence === "") {
|
|
832
|
+
try {
|
|
833
|
+
const clip = execSync("powershell -command Get-Clipboard", {
|
|
834
|
+
encoding: "utf-8",
|
|
835
|
+
timeout: 3e3
|
|
836
|
+
}).replace(/\r\n$/, "");
|
|
837
|
+
if (clip && this.rl) {
|
|
838
|
+
this.rl.write(clip);
|
|
839
|
+
}
|
|
840
|
+
} catch {
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
}
|
|
829
845
|
this.printWelcome();
|
|
830
846
|
while (this.running) {
|
|
831
847
|
try {
|