summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-14 12:35:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-14 12:35:02 +0000
commitff2d2efac021b47be5131aeb11372e2fa6c73f0f (patch)
tree1f39ca4e4068ff7b4589e4259eb1997fb02e067f /term.c
parentf24d8846442dca61e961b029eb67ce69c086dc41 (diff)
downloadmandoc-ff2d2efac021b47be5131aeb11372e2fa6c73f0f.tar.gz
mandoc-ff2d2efac021b47be5131aeb11372e2fa6c73f0f.tar.zst
mandoc-ff2d2efac021b47be5131aeb11372e2fa6c73f0f.zip
Added colour styles (not being used) to struct termp.
Added nroff style-escape encoding. Removed ANSI schema string tables (there's only ANSI and nroff/backspace). Pushed styling directly into pword (simpler).
Diffstat (limited to 'term.c')
-rw-r--r--term.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/term.c b/term.c
index 4ba00b1b..06d4bc3f 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.58 2009/03/13 07:46:10 kristaps Exp $ */
+/* $Id: term.c,v 1.59 2009/03/14 12:35:02 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -67,28 +67,28 @@
/* TODO: abstract this into mdocterm.c. */
const int ttypes[TTYPE_NMAX] = {
- TERMP_BOLD, /* TTYPE_PROG */
+ TERMP_BOLD, /* TTYPE_PROG */
TERMP_BOLD, /* TTYPE_CMD_FLAG */
- TERMP_UNDERLINE, /* TTYPE_CMD_ARG */
+ TERMP_UNDER, /* TTYPE_CMD_ARG */
TERMP_BOLD, /* TTYPE_SECTION */
TERMP_BOLD, /* TTYPE_FUNC_DECL */
- TERMP_UNDERLINE, /* TTYPE_VAR_DECL */
- TERMP_UNDERLINE, /* TTYPE_FUNC_TYPE */
+ TERMP_UNDER, /* TTYPE_VAR_DECL */
+ TERMP_UNDER, /* TTYPE_FUNC_TYPE */
TERMP_BOLD, /* TTYPE_FUNC_NAME */
- TERMP_UNDERLINE, /* TTYPE_FUNC_ARG */
- TERMP_UNDERLINE, /* TTYPE_LINK */
+ TERMP_UNDER, /* TTYPE_FUNC_ARG */
+ TERMP_UNDER, /* TTYPE_LINK */
TERMP_BOLD, /* TTYPE_SSECTION */
- TERMP_UNDERLINE, /* TTYPE_FILE */
- TERMP_UNDERLINE, /* TTYPE_EMPH */
+ TERMP_UNDER, /* TTYPE_FILE */
+ TERMP_UNDER, /* TTYPE_EMPH */
TERMP_BOLD, /* TTYPE_CONFIG */
TERMP_BOLD, /* TTYPE_CMD */
TERMP_BOLD, /* TTYPE_INCLUDE */
TERMP_BOLD, /* TTYPE_SYMB */
TERMP_BOLD, /* TTYPE_SYMBOL */
TERMP_BOLD, /* TTYPE_DIAG */
- TERMP_UNDERLINE, /* TTYPE_LINK_ANCHOR */
+ TERMP_UNDER, /* TTYPE_LINK_ANCHOR */
TERMP_BOLD, /* TTYPE_LINK_TEXT */
- TERMP_UNDERLINE /* TTYPE_REF_TITLE */
+ TERMP_UNDER /* TTYPE_REF_TITLE */
};
static int arg_hasattr(int, const struct mdoc_node *);