929 B
929 B
## 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:
Then start the session and create this build-in shell function:
# 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:
$ ls -lart | wcl
Copied to Windows clipboard
