From: Matan Ziv-Av (matan@svgalib.org)
Date: Sun 27 Aug 2000 - 18:19:42 IDT
On Sat, 26 Aug 2000, Nicolas Raitman wrote:
> I want to do something like
> this
>
> scanf("%f", &x);
In general - don't use the standard input/output libc calls. Use
vga_getch to read one char at a time, and then convert to float with
sscanf. This will work only if you did set the keyboard to raw mode
(with keyboard_init).
--
Matan Ziv-Av. matan@svgalib.org
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST