term.h revision 371584c2eae4cf827fd406ba26c14f021adaaa70
/* $Id: term.h,v 1.118 2015/11/07 14:01:16 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015 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 AUTHORS DISCLAIM ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS 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.
*/
enum termenc {
};
enum termtype {
};
enum termfont {
TERMFONT_NONE = 0,
};
struct roff_meta;
struct termp;
struct termp_tbl {
int width; /* width in fixed chars */
int decimal; /* decimal point position */
};
struct termp {
int synopsisonly; /* print the synopsis only */
int mdocstyle; /* imitate mdoc(7) output */
int overstep; /* See termp_flushln(). */
int skipvsp; /* Vertical space to skip. */
int flags;
int *buf; /* Output buffer. */
int fontsz; /* Allocated size of font stack */
int fonti; /* Index of font stack. */
const struct roffsu *);
};
struct tbl_span;
struct eqn;
const char *ascii_uc2str(int);
void term_newln(struct termp *);
void term_vspace(struct termp *);
void term_flushln(struct termp *);
term_margin, const struct roff_meta *);
void term_setwidth(struct termp *, const char *);
void term_fontpop(struct termp *);
void term_fontpopq(struct termp *, int);
void term_fontlast(struct termp *);