다음 코드는 "Ctrl"+ "upArrow"키 조합과 같이 하나의 버튼을 누른 상태에서 다른 키를 눌러 스크립트를 실행할 수 있기를 원합니다. '키 - 다운'및 '키 - 업'기능이 필요한 것입니다. 어떤 아이디어?bash 스크립트로 키 조합 읽기
#!/bin/bash
read -rsn1 input
while [ "$input" = "a" ]; do
read -rsn1 input2
if [ "$input" = "b" ]; then #spaces are important for control flow in bash-script
echo "Rest in pepperoni memeroni";
fi
done
이 예에서 기능 키를 사용할 수 있습니다. – tale852150