Re: OT: C/C++-Programmierung: wie liesst man ein einzelnes Zeichen ein
struct termios termios, tmp; int c; tcgetattr(0, &termios); tmp=termios; tmp.c_iflag|=IUCLC; tmp.c_lflag&=~(ICANON|ECHO); tmp.c_cc[VMIN]=1; tmp.c_cc[VTIME]=0; tcsetattr(0, TCSANOW, &tmp); c=getchar(); tcsetattr (0, TCSANOW, &termios); PS: Der Listserver kommt wohl mit signierten Mails nicht zurecht? -- _, Regards, (_ ,_)ven Hansen. +-------------------------------------------------------+ | Sven Hansen Celo Communications GmbH | | Dipl.-Chem. Weissenfelser Strasse 46a | | Senior Software Engineer D-06217 Merseburg | | mailto:sh@celocom.de http://www.celocom.de | | Phone: +49 (0)3461/3318-24 Fax: +49 (0)3461/415072 | +-------------------------------------------------------+ Unix _IS_ user friendly - it's just selective about who its friends are ! --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
participants (1)
-
sh@celocom.de