nicm
38c9d6a44f
Ignore invalid styles rather than throwing away the whole format, this
...
matches what we used to do.
2019-03-20 07:24:03 +00:00
nicm
180e3f4c9d
Bit more logging to show drawing errors.
2019-03-20 07:13:02 +00:00
schwarze
7ce2854c5d
remove incorrect escaping of '+', correctly escape '-', and garbage collect .Tn
2019-03-20 04:38:10 +00:00
nicm
ca3753ceff
Include window-status-style and window-status-current style in the format.
2019-03-19 21:09:51 +00:00
nicm
cafd4ec8ef
Add a cursor_character format.
2019-03-19 19:01:50 +00:00
schwarze
18b6272148
When the last line of the input is empty and the previous line reduced
...
the line input buffer to a length of one byte, do not write one byte
past the end of the line input buffer. Minimal code to show the bug:
printf ".ds X\n.X\n\n" | MALLOC_OPTIONS=C mandoc
Bug found by bentley@ in the sysutils/rancid par(1) manual page.
2019-03-19 16:25:38 +00:00
nicm
9beccd0fdb
Rename the first KEY BINDINGS section to DEFAULT KEY BINDINGS.
2019-03-19 13:35:42 +00:00
millert
4218f86768
When running sendmail, set argv[0] to "sendmail" not "send-mail".
...
This was a historical oddity that dates back to back to the days
of delivermail.
2019-03-19 13:26:27 +00:00
nicm
d680d99b21
Free temporary screens when writing format.
2019-03-18 21:55:04 +00:00
nicm
b63b896a53
The individual -fg, -bg and -attr options have been deprecated (in
...
favour of -style), undocumented and hidden from show-options since
2014. Remove them, except for status-fg and status-bg.
2019-03-18 21:46:01 +00:00
nicm
65239c33e5
Add some bits to the STATUS LINE section about the new option.
2019-03-18 21:01:04 +00:00
nicm
4ffcb1c8b1
Extend the #[] style syntax and use that together with previous format
...
changes to allow the status line to be entirely configured with a single
option.
Now that it is possible to configure their content, enable the existing
code that lets the status line be multiple lines in height. The status
option can now take a value of 2, 3, 4 or 5 (as well as the previous on
or off) to configure more than one line. The new status-format array
option configures the format of each line, the default just references
the existing status-* options, although some of the more obscure status
options may be eliminated in time.
Additions to the #[] syntax are: "align" to specify alignment (left,
centre, right), "list" for the window list and "range" to configure
ranges of text for the mouse bindings.
The "align" keyword can also be used to specify alignment of entries in
tree mode and the pane status lines.
2019-03-18 20:53:33 +00:00
jmc
c99dd5cd55
add a temporary addition to NAME for openrsync; ok deraadt
2019-03-18 18:11:07 +00:00
deraadt
08a7862d66
repair a few more yoda compares
2019-03-18 15:33:21 +00:00
nicm
610f37cff0
Mode init needs to be fired with the mode on the list or it will not be
...
resized correctly.
2019-03-18 15:25:36 +00:00
nicm
71431f24a7
Add format variables for the default formats for the various modes
...
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.
2019-03-18 14:10:25 +00:00
nicm
39052edfed
Make array options a sparse tree instead of an array of char * and
...
remove the size limit.
2019-03-18 11:58:40 +00:00
nicm
483c5500f7
With force, kill previous job before starting new. Fixes problem
...
reported by Scott Mcdermott in GitHub issue 1627.
2019-03-18 09:46:42 +00:00
jmc
59175122cf
flesh out SYNOPSIS and usage() somewhat;
...
ok deraadt benno
2019-03-18 08:11:11 +00:00
schwarze
5f6e323293
fix a NULL pointer access on empty tbl(7) data cells
...
that bentley@ found in syncthing-bep(7)
2019-03-18 08:00:26 +00:00
deraadt
e762119d89
install rsync as openrsync, so that people can easily familiarize
...
themselves with using it (as front end -- it will talk to the installed
'rsync' on the remote side). this will allow folks to give it a shot,
identify weaknesses, collaborate, etc etc etc
discussed with benno
2019-03-18 04:32:31 +00:00
nicm
ac6eb6ef82
Break description of styles into its own section.
2019-03-17 19:33:12 +00:00
schwarze
8761b3c5ed
The header file "html.h" uses enum roff_tok,
...
so "roff.h" must be included before it.
Diff from bcallah@ tweaked by me;
he found the bug by compiling with pcc.
2019-03-17 18:20:07 +00:00
tb
bdd6a4690d
Add the SM4 block cipher from the Chinese standard GB/T 32907-2016.
...
Patch from Daniel Wyatt
ok inoguchi, jsing
2019-03-17 17:46:00 +00:00
jmc
8b06b5846b
correct example; from pierre emeriaud
...
ok claudio
2019-03-17 10:43:24 +00:00
schwarze
b3e6a3251d
When drawing a horizontal line in tbl(7) UTF-8 output, it is not
...
sufficient to look at two data rows, but up to three are needed:
the one above to identify vertical lines branching off upward, the
row itself (in case the line is in a data row rather than a layout
line) to figure out the horizontal line style, and the row below
to identify vertical lines branching off downward.
As an example, bentley@ reported from the mpv(1) manual page that
in a tbl(7) having a vertical line in the middle and a horizontal
line in the bottom data row, the vertical line extended below the
bottom horizontal line.
2019-03-16 21:35:11 +00:00
jmc
ce0bce58c0
benno helped me clean up the tcp forwarding section;
2019-03-16 19:14:21 +00:00
nicm
8e497f9e69
Use a pointer for the active screen in the status line instead of
...
copying them around all the time.
2019-03-16 19:12:13 +00:00
nicm
4c0022cb00
Give status_save_old the client so it can do the reinit too.
2019-03-16 17:53:55 +00:00
nicm
b2140406a2
Tidy and rename some bits of status line code.
2019-03-16 17:14:07 +00:00
sunil
7b3efaaaec
Fix a buffer over-read while dumping functions.
...
A bogus vlen in metadata could cause offset point beyond CTF section
boundary. Found by afl-fuzz.
Ok mpi@
2019-03-16 16:35:03 +00:00
sunil
cb8e4a7cb9
Fix a buffer over-read while dumping structs/unions.
...
A bogus vlen in metadata could cause offset point beyond CTF section
boundary. Found by afl-fuzz.
Ok mpi@
2019-03-16 15:34:58 +00:00
sunil
bc20f881bc
Fix a buffer over-read while dumping enums.
...
A bogus vlen in metadata could cause offset point beyond CTF section
boundary. Found by afl-fuzz.
Feedback and Ok mpi@
2019-03-16 07:36:56 +00:00
nicm
d1d49da972
Add a way to set individual defaults for an array option.
2019-03-15 21:54:47 +00:00
nicm
fe57de0c73
Add a : to make error messages clearer.
2019-03-15 15:20:00 +00:00
nicm
b4505042a7
Copy recursion counter into new formats when looping.
2019-03-15 15:02:25 +00:00
nicm
94912b4e39
Move status line free into its own function.
2019-03-15 14:46:58 +00:00
nicm
f20ce1f876
Remove unused member of struct client.
2019-03-15 10:48:05 +00:00
nicm
74d5c4a080
Only print format logging when the flag is set, even if also sending to log_debug.
2019-03-15 10:22:57 +00:00
nicm
d7ee9cc744
The pane and window loops need to pass the window and pane tags when
...
they build their format.
2019-03-15 10:07:24 +00:00
nicm
e1e244cd2e
Add a -v flag to display-message to show verbose messages as the format
...
is parsed, this gives the user a way to debug problems with formats
rather than just being confronted with (for example) a blank status
line.
2019-03-15 10:04:13 +00:00
nicm
cd6dea7c1c
Add a limit on how far format_expand can recurse.
2019-03-14 23:34:41 +00:00
nicm
a7d9196c0e
Store the time in the format tree rather than passing it around.
2019-03-14 23:14:27 +00:00
nicm
f252b7ef28
Remove some unnecessary temporary variables and be much less strict
...
about spacing in style_parse.
2019-03-14 21:46:08 +00:00
nicm
209b6808fd
Add format flags for start and end window.
2019-03-14 21:41:30 +00:00
nicm
4a183929bd
Add T format modifier like E but also do strftime(3).
2019-03-14 21:31:43 +00:00
nicm
555dc2651a
Accept 0 time as a shorthand for now to format_expand_time.
2019-03-14 21:27:26 +00:00
nicm
d675cb7b83
Fix ED1 (clear end of screen), reported by Marc Reisner.
2019-03-14 17:58:52 +00:00
schwarze
d0dcf7a64d
Cleanup and bugfix:
...
When looking for uppercase characters, iterate over multibyte
characters with the standard function mbtowc(3) rather than with
the buggy and outdated step_char(), skipping invalid bytes,
and correctly use iswupper(3) instead of the inapplicable isupper(3).
OK stsp@
2019-03-14 16:21:35 +00:00
nicm
fbc8812ee8
A little tidying in style_parse.
2019-03-14 10:19:52 +00:00