(feat): add osc52 support

This commit is contained in:
bumpsoo 2025-04-17 04:26:25 +00:00
parent ff50325ade
commit e08ef74fa4
4 changed files with 43 additions and 1 deletions

9
bin/osc52_copy Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# OSC52로 클립보드에 복사하는 스크립트
if [ -t 0 ]; then
input="$*"
else
input="$(cat)"
fi
printf '\033]52;c;%s\a' "$(printf "%s" "$input" | base64 | tr -d '\r\n')"