You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% function wcl {
echo -ne '\e''[5i'
cat $*
echo -ne '\e''[4i'
echo "Copied to Windows clipboard" 1>&2
}
% echo £500 | wcl
Copied to Windows clipboard
This is what I get when I paste into notepad:
£500
€100 pastes as €100
I tried piping the cat to iconv to convert it to something else like utf-16 but it's even worse. I tried several (definitely not all!) different encodings in iconv but I couldn't find one which was clean.
Any idea if this is an encoding issue?
The text was updated successfully, but these errors were encountered:
Set up KiTTY to send stdout to ansi printer as per http://www.9bis.net/kitty/index.html#!pages/StdoutToClipboard.md
Create the bash function as directed:
This is what I get when I paste into notepad:
€100
pastes as€100
I tried piping the cat to iconv to convert it to something else like utf-16 but it's even worse. I tried several (definitely not all!) different encodings in iconv but I couldn't find one which was clean.
Any idea if this is an encoding issue?
The text was updated successfully, but these errors were encountered: