diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-04 03:21:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-04 03:21:02 +0000 |
commit | 246a96d69c628a5c6aa18bf731dddc2c8723a518 (patch) | |
tree | d2d330998930b31c1e79461479d4d5def0153f59 /term.h | |
parent | fef738d3d7e452c2c278c16a710c696968d41718 (diff) | |
download | mandoc-246a96d69c628a5c6aa18bf731dddc2c8723a518.tar.gz |
Implement centering and adjustment to the right margin directly in
the terminal filling routine, controlled by new flags TERMP_CENTER
and TERMP_RIGHT.
This became possible by the recent term_flushln() rewrite.
No functional change yet, but to be used by upcoming commits.
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* $Id$ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2011-2015, 2017, 2019 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 @@ -99,6 +99,8 @@ struct termp { #define TERMP_NEWMC (1 << 18) /* No .mc printed yet. */ #define TERMP_ENDMC (1 << 19) /* Next break ends .mc mode. */ #define TERMP_MULTICOL (1 << 20) /* Multiple column mode. */ +#define TERMP_CENTER (1 << 21) /* Center output lines. */ +#define TERMP_RIGHT (1 << 22) /* Adjust to the right margin. */ enum termtype type; /* Terminal, PS, or PDF. */ enum termenc enc; /* Type of encoding. */ enum termfont fontl; /* Last font set. */ |