LogIn E-mail
¼³°èÀ̾߱â
[csh]Get Character and get char without 'return'
# 9 JMJS    10.2.8 03:57

#
echo -n "Do you want to email this file?(y/N):"
set line = $<
set names = ($line)

if($line == "y" || $line == "Y") then
        sleep 1800
        goto mailall
endif

$ cat key.csh
#! /bin/csh -f
# key.csh
set noglob
set stty_setting = `stty -g`
echo -n "Press any key to continue: "
stty raw -echo
# with a little help from Mr Bourne
set key = `sh -c 'dd count=1 bs=1 2>/dev/null'`
stty "$stty_setting"
echo "You pressed key: <$key:q>"

°Ô½Ã¹°: 112 °Ç, ÇöÀç: 2 / 2 ÂÊ
¹øÈ£ Á¦       ¸ñ ÀÛ¼ºÀÚ µî·ÏÀÏ ¹æ¹®
12  [Tcl]Tool Command Language JMJS 09.7.24 2995
11  [csh]vi.csh JMJS 00.6.27 1608
10  [csh]Check Process JMJS 00.6.27 1539
9  [csh]Get Character and get char without 'return' JMJS 10.2.8 1671
8  [csh]foreach SED JMJS 00.6.27 1978
7  [Window]¿À·ùº¸°í ¾È ¶ß°ÔÇÏ´Â ¹æ¹ý JMJS 09.9.23 1551
6  [csh]echo.csh JMJS 00.6.27 1731
5  set DDD = `date '+%y%m'` JMJS 00.6.27 1458
4  [SH]Advanced Bash-Scripting Guide JMJS 09.4.24 1411
3  [csh]Beep : echo ^G;sleep 1 JMJS 00.6.27 1746
2  [csh]if ($abc == $bbc) then _ else _ endif JMJS 00.6.27 1941
1  [csh]ARGV JMJS 00.6.27 2013
[1] [2]