Skip to content

Overstrike convention for bold/underline? #1069

Answered by tstack
trantor asked this question in Q&A
Discussion options

You must be logged in to vote

(Last time I saw an overstrike was when I was using a typewriter XD)

That's pretty much what it's about. You can use lnav to view man pages with export "MANPAGER=lnav -q" and the way roff does bold/underline is to write out the character, then a backspace, and then either the character again for bold or an underscore for underline.

The relevant code is in the following block:

ssize_t fill_index = sf.sf_begin;
line_range bold_range;
line_range ul_range;
auto sub_sf = sf;
while (!sub_sf.empty()) {
auto lhs_opt = sub_sf.consume_codepoint();
if (!lhs_opt) {
return;
}
auto

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by trantor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants