1. Symbol version mismatch? Section 16 of the general python library covers curses. Is the
library version identical with development? what does nm say?
2. Please show the output of
then we need to see the charsets:
I don't get why 764 characters to a textbox that is 153 chars wide?
TIOCGWINSZ succeeds as far as I can see. The qqqq part is a usually a border. addstr is barfing probably because you already blew the stack with ~754 (qqqqq's + the ANSI escapes). Let's focus on charsets first.
You could start by setting locale to POSIX (C) to rule out problems.
I am tring to install Lotus Domino/Notes 5.0.5 on a AIX 4.3.3 server.
I go to run the cdrom/ibmpow/install and I get the following error.
Lotus Notes for Unix Install Program
---------------------------------------------
./install: 10088 Segmentation fault
This had Lotus Notes installed... (1 Reply)
Hi,
on a linux Red HAT(with Oracle DB 9.2.0.7) I have following error :
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
Segmentation fault
What does it mean ? And the solution ?
Many thanks. (0 Replies)
Hi,
While comparing primary key data of two tables thr bteq script I am getting this Error. This script is a shell script.
*** Error: The following error was encountered on the output file.
Script.sh: 3043492 Segmentation fault(coredump)
Please let me know how to get through it.
... (5 Replies)
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)
This code is causing a segmentation fault and I can't figure out why. I'm new to UNIX and I need to learn how to avoid this segmentation fault thing. Thank you so much. Thanks also for the great answers to my last post.:):b:
int main()
{
mysqlpp::Connection conn(false);
if... (3 Replies)
i have this code
int already_there(char *client_names, char *username) {
int i;
for(i = 0; i<NUM; i++) {
printf("HERE\n");
if (strcmp(client_names, username)==0) return(1);
}
return(0);
}
and i get a segmentation fault, whats wrong here? (7 Replies)
I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this :
i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Oddities with gcc, 2.95.3 for the AMIGA and 4.2.1 for MY current OSX 10.14.1...
I am creating a basic calculator for the AMIGA ADE *NIX emulator in C as it does not have one.
Below are two very condensed snippets of which I have added the results inside the each code section.
IMPORTANT!... (11 Replies)
Discussion started by: wisecracker
11 Replies
LEARN ABOUT MOJAVE
scr_restore
curs_scr_dump(3X)curs_scr_dump(3X)NAME
scr_dump, scr_restore, scr_init, scr_set - read (write) a curses screen from (to) a file
SYNOPSIS
#include <curses.h>
int scr_dump(const char *filename);
int scr_restore(const char *filename);
int scr_init(const char *filename);
int scr_set(const char *filename);
DESCRIPTION
The scr_dump routine dumps the current contents of the virtual screen to the file filename.
The scr_restore routine sets the virtual screen to the contents of filename, which must have been written using scr_dump. The next call to
doupdate restores the screen to the way it looked in the dump file.
The scr_init routine reads in the contents of filename and uses them to initialize the curses data structures about what the terminal cur-
rently has on its screen. If the data is determined to be valid, curses bases its next update of the screen on this information rather
than clearing the screen and starting from scratch. scr_init is used after initscr or a system call to share the screen with another
process which has done a scr_dump after its endwin call. The data is declared invalid if the terminfo capabilities rmcup and nrrmc exist;
also if the terminal has been written to since the preceding scr_dump call.
The scr_set routine is a combination of scr_restore and scr_init. It tells the program that the information in filename is what is cur-
rently on the screen, and also what the program wants on the screen. This can be thought of as a screen inheritance function.
To read (write) a window from (to) a file, use the getwin and putwin routines [see curs_util(3X)].
RETURN VALUE
All routines return the integer ERR upon failure and OK upon success.
X/Open defines no error conditions. In this implementation, each will return an error if the file cannot be opened.
NOTES
Note that scr_init, scr_set, and scr_restore may be macros.
PORTABILITY
The XSI Curses standard, Issue 4, describes these functions (adding the const qualifiers).
The SVr4 docs merely say under scr_init that the dump data is also considered invalid "if the time-stamp of the tty is old" but do not de-
fine "old".
SEE ALSO curses(3X), curs_initscr(3X), curs_refresh(3X), curs_util(3X), system(3)curs_scr_dump(3X)