Add reading method via shell

This commit is contained in:
anseki 2014-06-27 10:08:05 +09:00
parent 5a3c2d7ce4
commit bf3341383d
2 changed files with 9 additions and 0 deletions

6
lib/read.bat Normal file
View file

@ -0,0 +1,6 @@
@ECHO OFF
SETLOCAL
SET /P LINE=
SET /P DUM=%LINE%<NUL
ENDLOCAL
EXIT /B 0

3
lib/read.sh Normal file
View file

@ -0,0 +1,3 @@
read LINE </dev/tty
echo -n $LINE
exit 0