Hi James,
I don't know what's going wrong, but it did what you said it would do.
I ran it on a SparcServer 20.
For fun, I wrote this program:
#include <stdio.h>
int main ()
{
int c;
puts ("Type a character.");
c = getchar (stdin);
putchar (c);
}
When I ran a.out, it displayed "c", the character I typed, and then it
put the cursor about five columns to the right of the host name. So
I backspaced, only to hear a beep. But the cursor would move again
after I hit the "enter" key. In your program, "c = getc (stdin)" kept
getting a "[".
I'm stumped.
Bill
- Weird keyboard i/o James
- Re: Weird keyboard i/o Henrik Nordstrom
- Re: Weird keyboard i/o John Gorman
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o James
- Re: Weird keyboard i/o Joseph Martin
- Re: Weird keyboard i/o MCENANEY WILLIAM J
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o MCENANEY WILLIAM J
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
