Add reading method via shell
This commit is contained in:
parent
5a3c2d7ce4
commit
bf3341383d
2 changed files with 9 additions and 0 deletions
6
lib/read.bat
Normal file
6
lib/read.bat
Normal 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
3
lib/read.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
read LINE </dev/tty
|
||||||
|
echo -n $LINE
|
||||||
|
exit 0
|
Loading…
Reference in a new issue