10 More Discussions You Might Find Interesting
1. Programming
I am using ncurses to develop a user interface. Perhaps I should be using something else, but I am reasonably comfortable with ncurses and don't really want to climb another learning curve at this time.
One problem I have dealt with for many years is ncurses' colors. I have simply been... (23 Replies)
Discussion started by: BillLee
23 Replies
2. Programming
Hi guys I'm a newbie.Got a school project:need to convert Linux Hunt game,which is in K&R C to C99.I got some problems over Ncurses files:new library it's very different from the old one.There are some variables that with gcc are considered undefined 'cause they are no more used in the new Ncurses... (2 Replies)
Discussion started by: fracche
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, all -
New to ncurses, rusty as hell with UNIX, I"m sure I'm going to have lots of questions. What forum is best for ncurses questions? Currently I'm experiencing configuration issues (I believe). I'm running Mac 10.6, and using the Terminal utility.
Thanks! (3 Replies)
Discussion started by: mzimmers
3 Replies
4. Programming
i have read in one of links, there its documented
but i am using following code
int main ()
{
char ch;
initscr();
printw("Enter a char :");
ch=getch();
printw("You Entered '%c' ",ch);
getch();
endwin();
return 0;
}
the code does... (2 Replies)
Discussion started by: MrUser
2 Replies
5. UNIX for Dummies Questions & Answers
I tried to complile a text-based messenger program but, while configuring, got a message saying that ncurses wasn't found. Though it appears to be there...
This is the program: http://sourceforge.net/project/showfiles.php?group_id=110124&package_id=119574&release_id=373164
I get the error... (5 Replies)
Discussion started by: riwa
5 Replies
6. Programming
Help with ncurses Hi,
I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am.
Code:
#include <stdio.h>
#include <termios.h>
#include... (1 Reply)
Discussion started by: rakesh_01
1 Replies
7. Linux
Hi,
I am new to this programming with ncurses. I want to work out few examples on this ncurses. I jus want to know whether this ncurses works with Ubuntu OS? I found tat ncurses doesn come with AIX OS, may be it could be installed as a SupportPac or something, not sure about it.
Can u please... (4 Replies)
Discussion started by: julie_s
4 Replies
8. UNIX for Advanced & Expert Users
Hi,
Somebody has told me that NCurses can be used to test vi. But i was unable to figure out how. If anybody has done anything with NCurses please reply.
Also is there any othre way by which we can test vi automatically? (2 Replies)
Discussion started by: rahulrathod
2 Replies
9. Programming
hello there,
i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies
10. Programming
I am using Darwin on Mac OS X.I.I (new to both Unix and C++).
I downloaded the ncurses library from http://prdownloads.sourceforge.net/gnu-darwin/ncurses-5.2.tgz,
but I don't know what to do with it now. Stuffit has expanded the archive, but I still have the original .tgz as well (if that's... (1 Reply)
Discussion started by: parmenides
1 Replies
memleaks(3NCURSES) memleaks(3NCURSES)
NAME
_nc_freeall _nc_free_and_exit - curses memory-leak checking
SYNOPSIS
#include <curses.h>
void _nc_freeall(void);
void _nc_free_and_exit(int);
DESCRIPTION
These functions are used to simplify analysis of memory leaks in the ncurses library. They are normally not available; they must be con-
figured into the library at build time using the --disable-leaks option. That compiles-in code that frees memory that normally would not
be freed.
Any implementation of curses must not free the memory associated with a screen, since (even after calling endwin), it must be available for
use in the next call to refresh. There are also chunks of memory held for performance reasons. That makes it hard to analyze curses ap-
plications for memory leaks. To work around this, one can build a debugging version of the ncurses library which frees those chunks which
it can, and provides these functions to free all of the memory allocated by the ncurses library.
The _nc_free_and_exit function is the preferred one since some of the memory which is freed may be required for the application to continue
running. Its parameter is the code to pass to the exit routine.
RETURN VALUE
These functions do not return a value.
PORTABILITY
These functions are not part of the XSI interface.
SEE ALSO
ncurses(3NCURSES).
memleaks(3NCURSES)