term.h revision 698f87a48e2e945bfe5493ce168e0d0ae1cedd5c
/* $Id: term.h,v 1.97 2013/12/25 00:39:31 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef TERM_H
#define TERM_H
struct termp;
enum termenc {
};
enum termtype {
};
enum termfont {
TERMFONT_NONE = 0,
};
typedef void (*term_margin)(struct termp *, const void *);
struct termp_tbl {
int width; /* width in fixed chars */
int decimal; /* decimal point position */
};
struct termp {
int mdocstyle; /* imitate mdoc(7) output */
int overstep; /* See termp_flushln(). */
int skipvsp; /* Vertical space to skip. */
int flags;
int *buf; /* Output buffer. */
int fonti; /* Index of font stack. */
const struct roffsu *);
};
void term_newln(struct termp *);
void term_vspace(struct termp *);
void term_flushln(struct termp *);
term_margin, const void *);
const struct roffsu *);
const struct roffsu *);
const void *term_fontq(struct termp *);
void term_fontpop(struct termp *);
void term_fontpopq(struct termp *, const void *);
void term_fontlast(struct termp *);
#endif /*!TERM_H*/