/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1995-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* LINTLIBRARY */
/*
*
* XCurses Library
*
* Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved.
*
*/
#if M_RCSID
#ifndef lint
"1995/07/10 16:09:34 ant Exp $";
#endif
#endif
#include <private.h>
#include <ctype.h>
termattrs(void)
{
return (ch);
}
term_attrs(void)
{
char *p;
if (set_attributes) {
for (p = set_attributes; *p != '\0'; ++p) {
continue;
p += 2;
switch (*p) {
case 1:
at |= WA_STANDOUT;
break;
case 2:
at |= WA_UNDERLINE;
break;
case 3:
at |= WA_REVERSE;
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
case 8:
at |= WA_PROTECT;
break;
case 9:
at |= WA_ALTCHARSET;
break;
}
}
}
if (set_a_attributes) {
for (p = set_a_attributes; *p != '\0'; ++p) {
continue;
p += 2;
switch (*p) {
case 1:
at |= WA_HORIZONTAL;
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
at |= WA_VERTICAL;
break;
}
}
}
if (enter_alt_charset_mode != NULL)
at |= WA_ALTCHARSET;
if (enter_blink_mode != NULL)
if (enter_bold_mode != NULL)
if (enter_secure_mode != NULL)
if (enter_dim_mode != NULL)
if (enter_protected_mode != NULL)
at |= WA_PROTECT;
if (enter_reverse_mode != NULL)
at |= WA_REVERSE;
if (enter_standout_mode != NULL)
at |= WA_STANDOUT;
if (enter_underline_mode != NULL)
at |= WA_UNDERLINE;
if (enter_horizontal_hl_mode != NULL)
at |= WA_HORIZONTAL;
if (enter_left_hl_mode != NULL)
if (enter_low_hl_mode != NULL)
if (enter_right_hl_mode != NULL)
if (enter_top_hl_mode != NULL)
if (enter_vertical_hl_mode != NULL)
at |= WA_VERTICAL;
return (at);
}