Update devcontainer

This commit is contained in:
Cyril DUPONT
2022-11-18 19:06:00 +01:00
committed by cyd01
parent 811e2a5ce2
commit a07e694663
4 changed files with 28 additions and 0 deletions
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

+1
View File
@@ -23,6 +23,7 @@
* [Automatic command](pages/AutomaticCommand.md)
* [Force CR/LF on enter key](pages/ForceCRLF.md)
* [Running a locally saved script on a remote session](pages/LocalScript.md)
* [Standard output to clipboard](pages/StdoutToClipboard.md)
[Graphical]()
+27
View File
@@ -0,0 +1,27 @@
<div style="text-align: center;"><iframe src="gad.html" frameborder="0" scrolling="no" style="border: 1px solid gray; padding: 0; overflow:hidden; scrolling: no; top:0; left: 0; width: 100%;" onload="this.style.height=(this.contentWindow.document.body.scrollHeight+5)+'px';"></iframe></div>
## Standard output to clipboard
With **KiTTY**, it is possible to send standard output directly to Windows Clipboard.
First, it is necessary to configure a *fake* printer into **Terminal** panel of the configuration box:
![stdouttoclipboard](../img/StdoutToClipboard.png "Send standard output to clipboard")
Then start the session and create this build-in shell function:
```bash
# Function to send standard output to Windows clipboard
function wcl {
echo -ne '\e''[5i'
cat $*
echo -ne '\e''[4i'
echo "Copied to Windows clipboard" 1>&2
}
```
And use is with pipe:
```bash
$ ls -lart | wcl
Copied to Windows clipboard
```