🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #908

Entrada de un caracter en java

#908
From: Alef_0
Date: Fri, 06 Oct 2006 07:23
7 lines
1238 bytes
Necesito una forma de entrada de un solo car�cter por el teclado que no
requiera pulsar Intro. Por ejemplo, supongamos que el programa pide por
consiola Salir? S/N, son System.in.read() para salir tendr� que pulsar
S+Intro, pero lo que yo quiero es pulsar S solamente al estilo de ncurses
en C con getc(); �Es esto posible en Java?
Gracias anticipadas.
Alef_0
Technical Details
Message-ID: <pan.2006.10.06.07.23.30.698105@parametr.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,8cb94bc4dbe5fcbf,start
X-Google-Attributes: gid1116f3,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsf01.ono.com!news.ono.com.POSTED!53ab2750!not-for-mail
From: Alef_0 <altair@parametr.com>
Subject: Entrada de un caracter en java
User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))
Message-ID: <pan.2006.10.06.07.23.30.698105@parametr.com>
Newsgroups: es.comp.lenguajes.java
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Lines: 7
Date: Fri, 06 Oct 2006 09:23:30 +0200
NNTP-Posting-Host: 81.203.107.62
X-Trace: news.ono.com 1160119373 81.203.107.62 (Fri, 06 Oct 2006 09:22:53 MEST)
NNTP-Posting-Date: Fri, 06 Oct 2006 09:22:53 MEST