summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-01-18Make HTML output more human readable by overhauling line break logicIngo Schwarze
around tags and by introducing some simple indentation. No change of HTML semantics intended.
2017-01-18Plain stravis() because it will mangle UTF-8 characters, so addNicholas Marriott
utf8_stravis() which calls our existing utf8_strvis() and use it instead
2017-01-18Run arguments through vis() as well when printing them.Nicholas Marriott
2017-01-18Do not reset idx, it has just been set.Nicholas Marriott
2017-01-18options_match needs to explicitly check for user options.Nicholas Marriott
2017-01-17Completely delete the buf field of struct html and all the buf*()Ingo Schwarze
interfaces. Such a static buffer was a bad idea in the first place, causing unfixable truncation that was only prevented by triggering an assertion failure. Instead, let the small number of remaining users allocate and free their own, temporary dynamic buffers, or for the case of .Xr and .In, pass the original data to be assembled in print_otag().
2017-01-17Simplify the usage of print_otag() by making it accept a variableIngo Schwarze
number of arguments. Delete struct htmlpair and all the PAIR_*() macros. Delete enum htmlattr, handle that in print_otag() instead. Minus 190 lines of code; no functional change except better ordering of attributes (class before style) in three cases.
2017-01-16Correctly handle -style options without all of a corresponding -fg/-bg/-attr.Nicholas Marriott
2017-01-16Revert WIP parts of previous I didn't mean to commit yet.Nicholas Marriott
2017-01-16getopt() has a struct option so just return to using options_entry.Nicholas Marriott
2017-01-15It is silly for cmd_list_parse to return an integer error when it couldNicholas Marriott
just return NULL.
2017-01-15-q flag now needs to be checked in a couple more places.Nicholas Marriott
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsNicholas Marriott
commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.
2017-01-15Remove unused quiet option.Nicholas Marriott
2017-01-15Append needs to go old,new not new,old...Nicholas Marriott
2017-01-15When looking up macro values while the macro tables are being builtIngo Schwarze
in makewhatis(8), use ohash rather than linear searches. This was identified as the main makewhatis(8) performance bottleneck by Baptiste Daroussin <bapt at FreeBSD>, who also suggested part of the improved algorithm. This reduces the run time of "makewhatis /usr/share/man" from eleven to five seconds on my notebook. Note that the changed code is not used in apropos(1), so don't expect speedups there. While here, sort macro values asciibetically, to improve reproducibility - which still isn't perfect, but getting better.
2017-01-14killp -a should not kill the window if only one pane.Nicholas Marriott
2017-01-14add a geteuid check to make sure we're root before plowing into setauth.Ted Unangst
spare some debugging effort in case doas is not installed setuid.
2017-01-14HTTPS proxy support for ftp-ssl.Jeremie Courreges-Anglas
The install media already allow for plaintext HTTP proxying. The code to support CONNECT is short enough. Reported/fix tested by rpe@, ok deraadt@
2017-01-13options_get_style return const too.Nicholas Marriott
2017-01-13Make options_get_string return const string.Nicholas Marriott
2017-01-13Add -E to detach-client to exec a command to replace the client insteadNicholas Marriott
of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
2017-01-12Fix the "t" command for the case where we go down by just a few lines:Ingo Schwarze
clear the status before printing content on the last line of the screen. OK millert@ tom@
2017-01-12Skipping all escape sequences at the beginning of strings in deroff()Ingo Schwarze
was too aggressive. There are strings that legitimately begin with an escape sequence. Only skip leading escape sequences representing whitespace. Bug reported by martijn@.
2017-01-12show meta data for -Ttree outputIngo Schwarze
2017-01-12Simplify appending to string options.Nicholas Marriott
2017-01-12Put all palette functions together in the file.Nicholas Marriott
2017-01-12aixterm colours can be used if -2 is given, as well as if TERM tells usNicholas Marriott
the terminal has >=16 colours.
2017-01-12Erm the aixterm colours should start at 8, not 7.Nicholas Marriott
2017-01-12Fix setting the palette of aixterm colours (90-97).Nicholas Marriott
2017-01-11Be less aggressive about turning margins off.Nicholas Marriott
2017-01-11Add some missing special keys to key_string_lookup_key, fix a mouseNicholas Marriott
check in server_client_handle_key, and tweak a comment.
2017-01-11Do text production for .Bt, .Ex, .Rv, .Ud at the validation stageIngo Schwarze
rather than in the formatters. Use NODE_NOSRC flag for .Lb and NODE_NOSRC and NODE_NOPRT for .St. Results in a more rigorous syntax tree and in 135 lines less code. This work was triggered by a question from Abhinav Upadhyay <er dot abhinav dot upadhyay at gmail dot com> (NetBSD) on discuss@.
2017-01-11Add a format for terminal type.Nicholas Marriott
2017-01-11Use a macro for looking up tty types.Nicholas Marriott
2017-01-11Some tidying and tweaks to options code.Nicholas Marriott
2017-01-11Add "support" for AArch64 to make it compile.Patrick Wildt
2017-01-11Don't attempt to read .netrc when we already force anonymous FTP (-a).Vadim Zhukov
Patch from Anton Lindqvist via tech@, thanks! okay deraadt@
2017-01-10Use new NODE_NOSRC and NODE_NOPRT flags for .Bx and .At.Ingo Schwarze
More rigorous AST and 40 lines less code.
2017-01-10For the .Ux/.Ox family of macros, do text production at the validationIngo Schwarze
stage rather than in each and every individual formatter, using the new NODE_NOSRC flag. More rigorous and also ten lines less code.
2017-01-10Minor tidying in a couple of commands.Nicholas Marriott
2017-01-10Need to escape ; twice because the command list parser will eat one,Nicholas Marriott
reported by Theo Buehler.
2017-01-10Pledge more strictly. This is only enabled on the ramdisk version of theTheo de Raadt
ftp(1) client, which operates only in URL mode. Not willing to spend the time tracking piles of global variables for sub-modes, and finding all the pledge interactions. Would rather have the install media ftp(1) as safe as possible, immediately. ok tb jca
2017-01-10simplify; NODE_ENDED does no harm in man(7)Ingo Schwarze
2017-01-10unify names of AST node flags; no change of cpp outputIngo Schwarze
2017-01-10Introduce flags NODE_NOSRC and NODE_NOPRT for AST nodes.Ingo Schwarze
Use them to mark generated nodes and nodes that shall not produce output. Let -Ttree output mode display these new flags. Use NODE_NOSRC for .Ar, .Mt, and .Pa default arguments. Use NODE_NOPRT for .Dd, .Dt, and .Os. These will help to make handling of text production macros more rigorous.
2017-01-10Quote backslash as well for %%%.Nicholas Marriott
2017-01-10Some manpage fixes: rephrase a convoluted sentence, make the names ofNicholas Marriott
some keys more standard, and use Ql instead of Dq.
2017-01-10avoid unneccessary markup; tweaked and ok nicmJason McIntyre
2017-01-09Add %if/%endif for conditionals when parsing configuration files, theNicholas Marriott
argument is a format (the new == and != are useful).