Dr J R Stockton
2011-12-04 22:18:49 UTC
Can command-line JScript, running in Windows script Host, read a
*single* character from the keyboard without needing Enter? My old
16-bit Pascal directory program HUNT accepts single-character responses
for Yes/No/Quit, and it would be nice to have my 32-bit WSH version of
it do the same.
If anyone wants to look, the WSH is SEAKFYLE.JS ("documentation" is
SEAKFYLE.HTM), which is called by SEEK.BAT, all linked from
<http://www.merlyn.demon.co.uk/programs/32-bit/00index.htm>.
*single* character from the keyboard without needing Enter? My old
16-bit Pascal directory program HUNT accepts single-character responses
for Yes/No/Quit, and it would be nice to have my 32-bit WSH version of
it do the same.
If anyone wants to look, the WSH is SEAKFYLE.JS ("documentation" is
SEAKFYLE.HTM), which is called by SEEK.BAT, all linked from
<http://www.merlyn.demon.co.uk/programs/32-bit/00index.htm>.
--
(c) John Stockton, nr London UK ?@merlyn.demon.co.uk IE8 FF8 Op11 Sf5 Cr15
news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
<http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
(c) John Stockton, nr London UK ?@merlyn.demon.co.uk IE8 FF8 Op11 Sf5 Cr15
news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
<http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.