Talkback for article: 233, March2002

Introduction to Ncurses

Back to:

From: Ole Jakob Sandberg <ojsa<at>> [ date: 2002-03-01 ]
Under SuSE 7.3 (and 6.3) i had some problems to compile the example file.

This solved the problem.

# cd /usr/lib
# ln -sf libncurses.a libcurses.a

From: Alain Gauthier <gauthiera(at)> [ date: 2002-03-08 ]
Congradulation for an excellent article
From: descent <descent(at)> [ date: 2002-03-12 ]
Thank you for your article.
I want to design UI like mc,but I don't know how to do.
You article give me a good ideal.
I see some documents , like programing with curses ( oreilly books ) , ncurses documents and ncurses programing howto.
But they don't give me example to build a ui like mc.
I only konw use panel , menu and form to build ui like mc.
Your article give me another way.
Thanks lot.
Are there few people want to write code for console?
Now people like graphic mode program like x window , but I still
text mode.
Thank you for your article.

From: Abhijeet Anant Sane <abhijeetsane(at)> [ date: 2002-04-03 ]
hi Reha
i read your article on the net , but i am facing some problem with ncurses . i am not able to design forms and panels using the library given
could you also send me the menu example fully developed for refernce

thatks for the nice article
From: Luciano Chavez <lnx1138(at)> [ date: 2002-04-03 ]
I inherited an ncurses utility that has a screen refresh problem. The application does not use new windows or sub windows to write to. Instead it simple uses x,y and length to emulate writing to a subwindow. Spaces are used to clear areas of the screen.

Under kterm, xterm and ETerm there are no screen refresh problems. But with gnome-terminal and multi-gnome-terminal you often get underlying areas not cleared. The gnome terminal variants use the ZvtWidget.

I am wondering if any ncurses app developers have ever seen a problem like this and what can be done to fix it.

From: Eric Reesor <jojo2(at)> [ date: 2002-04-23 ]
The use of Ncurses for music notation is a disinct possibility.
Does anybody know if there is a way to port a notation engine eg: Lilypond
so that a diplay of the lily out could be instantly seen in a child window.
I suppose the postscpript output of lilypond would need a pixal map engine, or is there a non X postscript viewer already out there.
Does Ncurses redraw the screen at a fast enough rate at higher resolutions?
If it doesn't then it would be too slow for this type of application.
The other possibility is to use Latext out from Lilypond. Or split the Lily output into postscript viewing and Latext for printing.
The problem is perhaps the use of fonts for music notation.
Is there a way to use fonts in a Ncurses child window without drawing the output to the parent input window?
The reason I'm writing this is that I'm tired by the guied up bug ridden
notation software that is already out there and want to help create a fast notation system for teachers, composers and musicians without the obligatory midi crap that gets in the way of musicianship and learning.
From: Görkem Türe <ture(at)> [ date: 2002-05-20 ]
aferim çok güzel olmuş. Başarılaarının devamını dilerim.
From: lazkerim <lazkerim(at)> [ date: 2002-08-05 ]
merhaba reha :) sayfani ilgiyle ve begeniyle okudum. gelecegin icin basarilar dilerim, mach weiter so :)
From: marius [ date: 2002-10-11 ]
I have a problem with window resizing for menus. Also yours, if you resize the shell window - make it little, it is not working anymore. I didn't find any example that is working fine. Do you have any idea how this could be solved?

From: kirk johnson [ date: 2002-10-18 ]
I enjoyed looking at this web page. The example is simple enough to easily understand the basics of ncurses for menus. I hope you will keep this web site going with updates and more examples in the future.
From: biggs <biggs(at)> [ date: 2002-12-20 ]
Yes !
I like this article. It is very well done. In fact, the author explain to us how it work and not the details of the functions.
It was just to say that !

I think that NCURSES is very fine.

thank you.
From: Stefan Abu Salah [ date: 2003-03-25 ]
Vielen Dank für diese sehr gut verständlichen infos!!! diese haben mir sehr geholfen! WEITER SO...


From: jphi [ date: 2003-03-31 ]
I've found this page on ncurses very good

Thank You
From: Juan <jufaeslo(at)> [ date: 2003-08-18 ]

I have installed gcc-2.96-98.i386.rpm and its dependence package gcc-2.96-98.i386.rpm.
I have some programas with curses in AIX, those are functioning correctly. When I try to compila with curses in Linux RedHat 7.2 occur this:

$ gcc teclas1.c -l curses
gcc: curses: No such file or directory

How can I fix it?

Guayaquil - Ecuador.

From: beks [ date: 2003-09-18 ]
fine article , this really gives me a good start and makes ncurses seem
managable .... other stuff i read b4 seemed really cryptic and intimidating
... thanx a lot
From: Rosmar Montilla <gconde2002(at)> [ date: 2003-10-21 ]
De verdad muchas gracias por el articulo publicado, me ha servido de gran utilidad para un proyecto q estoy haciendo.
Aparte de esto me gustaria saber como implemento un scroll en ncurses.
From: Igor Ilyinsky <mapnn(at)> [ date: 2003-11-19 ]
Thank you for article and example.
It is good idea.
From: Aida [ date: 2003-12-22 ]
Buen artículo, teníendo en cuenta que tmpc he encontrado mucho pr la net :)
Si..como dice Rosmar, estária bien comentar cómo hacer scrollbars, ya que són muy útiles.
From: FedeC <fedec(at)> [ date: 2003-12-29 ]
Un amigo mio ha realizado un sistema de gestion en C++, utilizando PostgreSQL como soporte para Bases de Datos y ncurses para la interfaz de usuario (UI). El sistema esta corriendo en una 486 con solo 8 Mb de RAM y un SuSE Linux 7.3 (si, no solo usa una maquina vieja, sino que corre una distribucion linux de las mas pesaditas....), como para ponerle la frutillita, el no sabia nada de ncurses, asi que tuvo que aprender para hacerlo de cero, y solo utilizo lo mas basico de ncurses (Por ejemplo, no tiene subventanas ni botones ni nada aun, solo menus). El se creo una libreria pequeña que guarda el estado de la pantalla, la cual hace las veces de soporte para la UI. El proximo paso sera incluir otras componentes de ncurses, que seguramente simplificaran mucho el diseño del sistema.
El objetivo de contar esto es mostrar como se logran mejores desarrollos bajo la filosofia open Source, puesto que sin ella no hubiera sido posible inspeccionar codigos, ni contar con HOWTO's o ayudas como estas on-line.
Creo firmemente que en un futuro no muy lejano este sera el modelo de desarrollo predominante, puesto que da unos resultados excelentes tanto para los usuarios finales como para los desarrolladores.
From: pierre [ date: 2004-03-10 ]

Thanks for this article; it is really useful.

Keep on enjoying ncurses.


From: jose manuel <jmcamacho(at)> [ date: 2004-07-20 ]
Hello, I'm an Spanish studient of Telematic in Cartagena and I am making my final proyect about a multicast protocol and I need ncurses to make an executable interface. But when I use my code in .c .h and executable.c with one makefile I have problems about variable WINDOW. It's unreconize, how can I repair this problem?
Thanks, and congratulations for your web
From: Ashish Bansal <ashish1405(at)> [ date: 2004-12-09 ]
i really impresed from your tutorial of ncurses. Actually th e one thing that really impressed me is the your example the way you have given in the tutorial.
I really impressed, A big thaks to my side..................
From: prabhudutta ray <rayprabhu(at)> [ date: 2005-07-22 ]
good example but for a large projects if we create several window and box es and attcah it with several form then it will create several segmentation fault problem and also create refresh problem
From: Yuan <yuan007qin(at)> [ date: 2005-09-02 ]
A good article, it's very useful for me,the beginner on curses.
Thank you very much.
From: Mahdi Pakdaman <pakdaman(at)> [ date: 2006-08-09 ]
Thank you very much for your tutorial. It gives me a bright clue to use ncurses library in my application.

Thank you again.
From: sesam [ date: 2006-10-27 ]
thanks for this nice example and intro. now I can use ncurses. :-)

From: sesam [ date: 2006-10-27 ]
thanks for this nice example and intro. now I can use ncurses. :-)

From: sesam [ date: 2006-10-27 ]
thanks for this nice example and intro. now I can use ncurses. :-)

28 talkbacks in English
Other talkbacks:   Portugues Italiano Francais

Due to the increased amount of web spam we have deciced to removed the talkback posting possibility. You can read old talkbacks but you can no longer post new ones.

Back to

Please contact webmaster(at) if you have any questions with regards to this talkback

lftalkback version 3.10