#!/bin/bash # keypress.sh: Å°´©¸§ ¾Ë¾Æ³»±â("hot keyboard"). echo old_tty_settings=$(stty -g) # ÇöÀç ¼¼ÆÃÀ» ÀúÀå. stty -icanon Keypress=$(head -c1) # GNU ½Ã½ºÅÛÀÌ ¾Æ´Ï¶ó¸é # $(dd bs=1 count=1 2> /dev/null) echo echo "\""$Keypress"\" Å°°¡ ´·È½À´Ï´Ù." echo stty "$old_tty_settings" # ¿ø·¡ ¼¼ÆÃÀ¸·Î º¹±¸. # Thanks, Stephane Chazelas. exit 0