Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > E

erasechar(3X)

CURSES
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

erasechar, killchar — single-byte terminal environment query functions

SYNOPSIS

#include <curses.h>

char erasechar(void);

char killchar(void);

DESCRIPTION

The erasechar() function returns the current erase character. The erasewchar() function stores the current erase character in the object pointed to by ch. If no erase character has been defined, the function will fail and the object pointed to by ch will not be changed.

The killchar() function returns the current line kill character.

RETURN VALUE

The erasechar() function returns the erase character and killchar() returns the line kill character. The return value is unspecified when these characters are multi-byte characters.

ERRORS

No errors are defined.

APPLICATION USAGE

The erasechar() and killchar() functions are only guaranteed to operate reliably on character sets in which each character fits into a single byte, whose attributes can be expressed using only constants with the A_ prefix. Moreover, they do not reliably indicate cases in which when the erase or line kill character, respectively, has not been defined. The erasewchar() and killwchar() functions overcome these limitations.

SEE ALSO

clearok(3X), delscreen(3X), erasewchar(3X), curses_intro(3X), see Attributes, <curses.h>, tcattribute(3C) (in the X/Open System Interfaces and Headers, Issue 4, Version 2 specification).

CHANGE HISTORY

First released in X/Open Curses, Issue 2.

X/Open Curses, Issue 4

The killchar() function is merged with this entry. In previous issues, it appeared in an entry of its own.

The entry is rewritten for clarity. The argument list for the erasechar() and killchar() functions is explicitly declared as void.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.