Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10630

Re: read DEL and BACK key from stdin

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: read DEL and BACK key from stdin
Date 2011-12-09 10:29 -0800
Organization Canadian Mind Products
Message-ID <6qk4e7ta53lf0rmtc8jaif24ec5a9613mo@4ax.com> (permalink)
References <bfaf0d1a-2933-4e82-8856-2aac14e11ce9@l29g2000yqf.googlegroups.com>

Show all headers | View raw


On Fri, 9 Dec 2011 07:31:39 -0800 (PST), xdevel1999
<xdevel1999@gmail.com> wrote, quoted or indirectly quoted someone who
said :

>Is it possible to read DEL and BACKSPACE keys from standard in?

I don't think you see anything until the user hits enter.

If you want to see things in a keystroke by keystroke way you need
some sort of gui TextField or the like where you can intercept the
event for each keystroke.

The other way to do it is to use C.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.
 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

read DEL and BACK key from stdin xdevel1999 <xdevel1999@gmail.com> - 2011-12-09 07:31 -0800
  Re: read DEL and BACK key from stdin Lew <lewbloch@gmail.com> - 2011-12-09 08:19 -0800
  Re: read DEL and BACK key from stdin Roedy Green <see_website@mindprod.com.invalid> - 2011-12-09 10:29 -0800

csiph-web