endwin(3cur)endwin(3cur)Name
endwin - restore initial terminal environment
Syntax
int endwin()
Description
This routine restores tty modes, moves the cursor to the lower left corner of the screen and resets the terminal to the last non-mode.
A program should always call before exiting or escaping from mode temporarily. Call or to resume after a temporary escape.
Return Values
The function returns OK on success and ERR on error.
See Alsodoupdate(3cur), refresh(3cur)endwin(3cur)
Check Out this Related Man Page
endwin(3XCURSES) X/Open Curses Library Functions endwin(3XCURSES)NAME
endwin, isendwin - restore initial terminal environment
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int endwin(void);
bool isendwin(void);
DESCRIPTION
The endwin() function restores the terminal after Curses activity by at least restoring the saved shell terminsl mode, flushing any output
to the terminal, and moving the cursor to the first column of the last line of the screen. Refreshing a window resumes program mode. The
application must call endwin() for each terminal being used before exiting. If newterm(3XCURSES) is called more than once for the same ter-
minal, the first screen created must be the last one for which endwin() is called.
The isendiwin() function indicates whether or not a screen has been refreshed since the last call to endwin().
RETURN VALUES
Upon successful completion, the endwin() function returns OK. Otherwise, it returns ERR.
The isendwin() function returns TRUE if endwin() has been called without any subsequent refresh. Otherwise, it returns FALSE.
ERRORS
Non errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO doupdate(3XCURSES), libcurses(3XCURSES), newterm(3XCURSES), attributes(5), standards(5)SunOS 5.10 5 Jun 2002 endwin(3XCURSES)
Hi guys,
I've got the following code for clearing the screen in my Python shell using curses:
import curses
scrn = curses.initscr()
scrn.clear()
However, upon execution, my shell crashes. Would appreciate a pointer in the right direction. Thanks. :D (4 Replies)
I am trying to compile pro*c program on aix 5.3. The program compiled fine when I was using curses library. After switching to ncurses, I have started getting compilation errors. After installing ncurses on the box, I changed the -lcurses flag to -lncurses. I have also updated the path to the... (13 Replies)
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)
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)
I'm working with an extremely outdated and old system at work. We do not have ncurses, but we do have curses. I need to make a user interface for users connecting with xterm. One issue I've encountered is if the user resizes the window, I'd like to provide functionality to redraw the screen with... (4 Replies)
I've tried to figure out what the linker is smoking in AIX to no avail...so I'm trying to find a little information to see why it's being inconsistent.
I have the following code in a shared library, it doesn't do anything useful, it's just there to exercise functions in a few system libraries:
... (11 Replies)
I have an array in an external file, "array.txt", which contains:
char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)
Hi,
I have an array, that works well. But, I want to have it display every other line. Like so, 1, 3, 5, 7, etc, etc.
Here is the relevant code:
I'm sorry for the pastebin link. For some reason, I can't get the code to format properly with the code tags.
code tags work fine... everyone... (4 Replies)