Sty0nX wrote:
> 
> untuk membaca masukan sebuah karakter tanpa menekan enter,  c di windows ada perintah
> getch() dan getche()  dengan file header conio.h kalo di linux gimana ???
> 
> makasih sebelumnya

#include <stdio.h>
int c;

...
system("stty -icanon");
c = getchar();
system("stty icanon");
...

tapi system(3) biasanya kurang aman,
anda bisa liat source dari stty untuk melihat tty ioctl()
call untuk -icanon...

-- 
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang                   MIS Department          |
| |  Phone:  +62-21-344-1316 ext 317     GSM: +62-816-1972-051   |
+--------| http://www.rad.net.id/users/personal/s/supes |--------+
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT dx s: a- C+++ UL++++$ P- L+++(++++) E--- W++ N+++ o? K? w-- O-
M- V-- PS+ PE Y-- PGP t+@ 5 X+ R- tv- b+ DI? D++(+) G e++ h* r+ y++
------END GEEK CODE BLOCK------

--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
Hosted by http://www.Indoglobal.com

Kirim email ke