2017-11-17 20:12:59 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* apps/graphics/pdcurses/term.h
|
2019-01-05 20:25:12 +01:00
|
|
|
*
|
2022-03-09 15:48:47 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2017-11-17 20:12:59 +01:00
|
|
|
*
|
2022-03-09 15:48:47 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2017-11-17 20:12:59 +01:00
|
|
|
*
|
2022-03-09 15:48:47 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2017-11-17 20:12:59 +01:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-03-09 15:48:47 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Adapted from the original public domain pdcurses by Gregory Nutt
|
|
|
|
****************************************************************************/
|
|
|
|
|
2017-11-17 20:12:59 +01:00
|
|
|
#ifndef __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H
|
2020-01-31 16:18:05 +01:00
|
|
|
#define __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H
|
2017-11-17 20:12:59 +01:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "graphics/curses.h"
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Types
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
# define EXTERN extern "C"
|
|
|
|
#else
|
|
|
|
# define EXTERN extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2019-01-05 20:25:12 +01:00
|
|
|
FAR const char *_termname;
|
2017-11-17 20:12:59 +01:00
|
|
|
} TERMINAL;
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-01-05 20:25:12 +01:00
|
|
|
#ifndef CONFIG_PDCURSES_MULTITHREAD
|
2017-11-17 20:12:59 +01:00
|
|
|
EXTERN TERMINAL *cur_term;
|
2019-01-05 20:25:12 +01:00
|
|
|
#endif
|
2017-11-17 20:12:59 +01:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Function Prototypes
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-01-05 20:25:12 +01:00
|
|
|
FAR void *pdc_alloc_terminal_ctx(void);
|
2017-11-17 20:12:59 +01:00
|
|
|
int del_curterm(TERMINAL *);
|
|
|
|
int putp(const char *);
|
|
|
|
int restartterm(const char *, int, int *);
|
|
|
|
TERMINAL *set_curterm(TERMINAL *);
|
|
|
|
int setterm(const char *);
|
|
|
|
int setupterm(const char *, int, int *);
|
|
|
|
int tgetent(char *, const char *);
|
|
|
|
int tgetflag(const char *);
|
|
|
|
int tgetnum(const char *);
|
|
|
|
char *tgetstr(const char *, char **);
|
|
|
|
char *tgoto(const char *, int, int);
|
|
|
|
int tigetflag(const char *);
|
|
|
|
int tigetnum(const char *);
|
|
|
|
char *tigetstr(const char *);
|
2017-11-17 20:23:02 +01:00
|
|
|
char *tparm(const char *, long, long, long, long, long,
|
2017-11-17 20:12:59 +01:00
|
|
|
long, long, long, long);
|
|
|
|
int tputs(const char *, int, int (*)(int));
|
|
|
|
|
|
|
|
#undef EXTERN
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H */
|