cheat.sh icon indicating copy to clipboard operation
cheat.sh copied to clipboard

copy: supported only in the Desktop version

Open hacker-DOM opened this issue 3 years ago • 5 comments

I installed rlwrap with homebrew. In the shell I get

✦ ❯ cht.sh --shell       
type 'help' for the cht.sh shell help
cht.sh> xargs
cht.sh> c
copy: supported only in the Desktop version

hacker-DOM avatar Sep 27 '22 17:09 hacker-DOM

The above comment doesn't show the output of xargs, but it is correctly opened in less

hacker-DOM avatar Sep 27 '22 17:09 hacker-DOM

I am seeing the same problem.

gennaro-tedesco avatar Oct 31 '22 10:10 gennaro-tedesco

I got the same problem on MacOS. Installed cht.sh with nix

howarddo2208 avatar Jul 10 '23 17:07 howarddo2208

this is also happening for me on a fresh install as of today.

tjex avatar Dec 11 '23 13:12 tjex

The problem is that the script is checking if $DISPLAY env variable has a value, and if it doesn't it returns with the error. But on modern mac systems we don't have $DISPLAY anymore. It comes from X11 days.

So I just removed the check entirely and it works. See here, this is the resulting script that runs when cht.sh is installed locally (via the curl download).

tjex avatar Dec 11 '23 13:12 tjex