-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!--
****************************************************************************
- * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2007,2010 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* sale, use or other dealings in this Software without prior written *
* authorization. *
****************************************************************************
- * @Id: curs_termattrs.3x,v 1.8 2002/05/11 21:32:26 tom Exp @
+ * @Id: curs_termattrs.3x,v 1.12 2010/12/04 18:40:45 tom Exp @
-->
<HTML>
<HEAD>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
+<STRONG><A HREF="curs_termattrs.3x.html">curs_termattrs(3x)</A></STRONG> <STRONG><A HREF="curs_termattrs.3x.html">curs_termattrs(3x)</A></STRONG>
+
+
+
</PRE>
<H2>NAME</H2><PRE>
saved between calls to <STRONG>newterm</STRONG> if <STRONG>longname</STRONG> is going to be
used with multiple terminals.
- If a given terminal doesn't support a video attribute that
- an application program is trying to use, <STRONG>curses</STRONG> may sub-
- stitute a different video attribute for it. The <STRONG>termattrs</STRONG>
- and <STRONG>term_attrs</STRONG> functions return a logical <STRONG>OR</STRONG> of all video
- attributes supported by the terminal using <EM>A</EM><STRONG>_</STRONG> and <EM>WA</EM><STRONG>_</STRONG> con-
- stants respectively. This information is useful when a
- <STRONG>curses</STRONG> program needs complete control over the appearance
- of the screen.
+ If a given terminal does not support a video attribute
+ that an application program is trying to use, <STRONG>curses</STRONG> may
+ substitute a different video attribute for it. The <STRONG>ter-</STRONG>
+ <STRONG>mattrs</STRONG> and <STRONG>term_attrs</STRONG> functions return a logical <STRONG>OR</STRONG> of all
+ video attributes supported by the terminal using <EM>A</EM><STRONG>_</STRONG> and
+ <EM>WA</EM><STRONG>_</STRONG> constants respectively. This information is useful
+ when a <STRONG>curses</STRONG> program needs complete control over the
+ appearance of the screen.
- The <STRONG>termname</STRONG> routine returns the value of the environmen-
- tal variable <STRONG>TERM</STRONG> (truncated to 14 characters).
+ The <STRONG>termname</STRONG> routine returns the terminal name used by
+ <STRONG>setupterm</STRONG>.
</PRE>
<H2>PORTABILITY</H2><PRE>
The XSI Curses standard, Issue 4 describes these func-
tions. It changes the return type of <STRONG>termattrs</STRONG> to the new
- type <STRONG>attr_t</STRONG>.
+ type <STRONG>attr_t</STRONG>. Most versions of curses truncate the result
+ returned by <STRONG>termname</STRONG> to 14 characters.
</PRE>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ <STRONG><A HREF="curs_termattrs.3x.html">curs_termattrs(3x)</A></STRONG>
</PRE>
<HR>
<ADDRESS>