/*
* 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 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdlib.h>
#include "curses_inc.h"
/*
* When the keyboard can send more than eight bits, offsets array
* should be changed from chars to shorts.
* The offsets MUST match what is in curses.h.
*/
{ '`', '*' }, /* ACS_DIAMOND */
{ 'a', ':' }, /* ACS_CKBOARD */
{ 'f', '\'' }, /* ACS_DEGREE */
{ 'g', '#' }, /* ACS_PLMINUS */
{ 'o', '-' }, /* ACS_S1 */
{ 'q', '-' }, /* ACS_HLINE */
{ 's', '_' }, /* ACS_S9 */
{ 'x', '|' }, /* ACS_VLINE */
{ '~', 'o' }, /* ACS_BULLET */
{ ',', '<' }, /* ACS_LARROW */
{ '+', '>' }, /* ACS_RARROW */
{ '.', 'v' }, /* ACS_DARROW */
{ '-', '^' }, /* ACS_UARROW */
{ 'h', '#' }, /* ACS_BOARD */
{ 'i', '#' }, /* ACS_LANTERN */
{ '0', '#' }, /* ACS_BLOCK */
};
int
init_acs(void)
{
char *cp;
#ifdef _VR3_COMPAT_CODE
#else /* _VR3_COMPAT_CODE */
#endif /* _VR3_COMPAT_CODE */
{
#ifdef _VR3_COMPAT_CODE
bad:
#endif /* _VR3_COMPAT_CODE */
#ifdef DEBUG
#endif /* DEBUG */
return (ERR);
}
/* Default acs chars for regular ASCII terminals are plus signs. */
/*
* Now load in defaults for some of the characters which have close
* approximations in the normal ascii set.
*/
while (i-- > 0)
/* Now do mapping for terminals own ACS, if any */
while (*cp) {
#ifdef DEBUG
if (outf)
#endif /* DEBUG */
}
#ifdef _VR3_COMPAT_CODE
if (_y16update) {
goto bad;
}
for (i = 0; i < 0400; i++)
/*LINTED*/
}
#endif /* _VR3_COMPAT_CODE */
return (OK);
}