/*
 * termcap.h / term.h: the termcap calls that old tty programs (Hack) use, for an xterm-like terminal whose
 * output goes through cw_ansi_write() (see curses.h and README.md). Implemented in termcap.c.
 * Copyright (C) 2026 FredyGames. Distributed under the MIT License (see LICENSE).
 */
#ifndef CURSES_WEB_TERMCAP_H
#define CURSES_WEB_TERMCAP_H

#ifdef __cplusplus
extern "C" {
#endif

extern char PC;
extern char *BC;
extern char *UP;
extern short ospeed;

int tgetent(char *bp, const char *name);
int tgetflag(const char *id);
int tgetnum(const char *id);
char *tgetstr(const char *id, char **area);
char *tgoto(const char *cap, int col, int row);
int tputs(const char *str, int affcnt, int (*putc_fn)(int));

#ifdef __cplusplus
}
#endif

#endif
