From HN comment https://news.ycombinator.com/item?id=21780608
echo -n "$selected_symbol" | xclip -i
And then fake a middle click to insert in the current application:
xdotool click 2o
Also maybe send as direct input (xdotool can do this, but is apparently not reliable across all apps/characters).
Can also link to libX11, but this requires cgo and makes builds harder.
From HN comment https://news.ycombinator.com/item?id=21780608
Also maybe send as direct input (xdotool can do this, but is apparently not reliable across all apps/characters).
Can also link to libX11, but this requires cgo and makes builds harder.