saya coba insert getch() sebelum endwin() tapi malah setelah dijalanin
keluar message coredump.

> ----------
> From:         Andy[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         16 Oktober 1999 16:38
> To:   [EMAIL PROTECTED]
> Subject:      Re: [pau-mikro] programming unix curses
> 
> On Sat, 16 Oct 1999 [EMAIL PROTECTED] wrote:
> 
> > "M. Djamal" <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > > file coba.c
> > > 
> > > 
> > > #include <curses.h>
> > > 
> > > void main()
> > > {
> > >     WINDOW *mywindow;
> > >     mywindow = initscr();  /* initialize the screen */
> > >     mvwprintw(mywindow, 0, 0, "Hello World %d", 12345);
> > 
> > kode anda ok; tapi setelah endwin() screen akan dibersihkan, dan normal
> > tty mode akan dikembalikan. 
> > coba insert: 
> >       getch()
> > voila !
> > >     endwin(); /* tutup layar*/
> > > 
> 
> ikutan nimbrung neh, program diatas setelah saya compile koq keluar pesan
> error
> 
> [Admin@nexus]$ gcc -o coba coba.c
> coba.c: In function `main':
> coba.c:4: warning: return type of `main' is not `int'
> /tmp/ccevBZ4n.o: In function `main':
> /tmp/ccevBZ4n.o(.text+0x7): undefined reference to `initscr'
> /tmp/ccevBZ4n.o(.text+0x23): undefined reference to `mvwprintw'
> /tmp/ccevBZ4n.o(.text+0x2b): undefined reference to `stdscr'
> /tmp/ccevBZ4n.o(.text+0x31): undefined reference to `wgetch'
> /tmp/ccevBZ4n.o(.text+0x39): undefined reference to `endwin'
> collect2: ld returned 1 exit status
> 
> padahal saya udah berhasil melakukan make menuconfig yang otomatis di
> sistem saya sudah ada ncurses bukan??
> 
> mohon pencerahan.
> 
> rgds
> -andy
> 
> 
> ---------------------------------------------------------------------
> Mailing list archive: http://www2.nusantara.net/pau-mikro
> To subscribe, e-mail: [EMAIL PROTECTED]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Current subscriber count: 715
> 


    milis ini didukung oleh :
 >> http://www.indolinux.com - dunia linux indonesia
 -------------------------------------------------------------------
 untuk berhenti kirim  email  ke  [EMAIL PROTECTED]
 untuk melihat peraturan kirim email  ke  [EMAIL PROTECTED]
 arsip berada di  http://www.mail-archive.com/milis@hackerlink.or.id
 

Kirim email ke