From: David Vallner Date: 2006-10-01T01:50:45+09:00 Subject: Re: How to get a character from keyboard? --------------enigDF50C2898F616D30E2C7546A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Luo Yong wrote: > Hi all, >=20 > I found that the STDIN.getc seem using a buffered input.It can't > return anything until you enter a "\n". >=20 > Is there any way to get a character directly from keyboard? >=20 > Thanks. >=20 Use curses. Curses.getch is the method you're looking for. David Vallner --------------enigDF50C2898F616D30E2C7546A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFHqBly6MhrS8astoRAkJVAJ4yhSFqtBPMaYnGjWGGLsWF3x8/EQCfYNvr UcihQleIOk0YWpUoi8SqSd4= =kyhZ -----END PGP SIGNATURE----- --------------enigDF50C2898F616D30E2C7546A--