diff options
author | 2017-05-07 21:44:33 +0000 | |
---|---|---|
committer | 2017-05-07 21:44:33 +0000 | |
commit | 8ea764d3c6784b4c56149a53db58300fe9dacf88 (patch) | |
tree | fe8a973406aeb7a96601affaaa305d8c52439405 /usr.bin/mandoc/man_term.c | |
parent | Up to now, tmux sees \033\033[OA as M-Up and since we turned on (diff) | |
download | wireguard-openbsd-8ea764d3c6784b4c56149a53db58300fe9dacf88.tar.xz wireguard-openbsd-8ea764d3c6784b4c56149a53db58300fe9dacf88.zip |
implement .DT in terms of .ta; needed for print/ghostview, for example
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 64ce13ed70d..dccd8e15c5c 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.151 2017/05/07 17:30:58 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.152 2017/05/07 21:44:33 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -66,6 +66,7 @@ static void print_bvspace(struct termp *, const struct roff_node *, int); static int pre_B(DECL_ARGS); +static int pre_DT(DECL_ARGS); static int pre_HP(DECL_ARGS); static int pre_I(DECL_ARGS); static int pre_IP(DECL_ARGS); @@ -115,7 +116,7 @@ static const struct termact __termacts[MAN_MAX - MAN_TH] = { { pre_literal, NULL, 0 }, /* fi */ { NULL, NULL, 0 }, /* RE */ { pre_RS, post_RS, 0 }, /* RS */ - { pre_ign, NULL, 0 }, /* DT */ + { pre_DT, NULL, 0 }, /* DT */ { pre_ign, NULL, MAN_NOTEXT }, /* UC */ { pre_PD, NULL, MAN_NOTEXT }, /* PD */ { pre_ign, NULL, 0 }, /* AT */ @@ -390,6 +391,15 @@ pre_in(DECL_ARGS) } static int +pre_DT(DECL_ARGS) +{ + term_tab_set(p, NULL); + term_tab_set(p, "T"); + term_tab_set(p, ".5i"); + return 0; +} + +static int pre_HP(DECL_ARGS) { struct roffsu su; |