1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

2845 Commits

Author SHA1 Message Date
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
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
nicm
9beccd0fdb Rename the first KEY BINDINGS section to DEFAULT KEY BINDINGS. 2019-03-19 13:35:42 +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
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
nicm
ac6eb6ef82 Break description of styles into its own section. 2019-03-17 19:33:12 +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
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
nicm
fbc8812ee8 A little tidying in style_parse. 2019-03-14 10:19:52 +00:00
nicm
a36fe1f828 Add a wrapper (struct style) around styles rather than using the
grid_cell directly. There will be some non-cell members soon.
2019-03-14 09:53:52 +00:00
nicm
ec36fca03d Do not use const on struct window_pane, it causes more trouble than it
is worth.
2019-03-14 09:50:09 +00:00
nicm
85d5a2d13c Missing space in capture-pane usage, from Ben Boeckel.
Also man page fixed from jmc.
2019-03-14 06:36:21 +00:00
nicm
edcf3982bf Add actual HPA (\033[`), the existing one is CHA. From Marc Reisner. 2019-03-14 06:33:43 +00:00
nicm
c80216a3ba Need to set attributes before clearing. 2019-03-13 22:01:22 +00:00
nicm
6e770396c8 The pane's style should be initialized to default before parsing the
argument.
2019-03-13 21:39:21 +00:00
nicm
ae692c54ce Tweak format_replace logging. 2019-03-13 18:09:12 +00:00
nicm
ef24672c17 Add formats to list sessions, windows or panes. 2019-03-13 15:37:28 +00:00
nicm
4c09f2100f Apply length limits and substitution even to literal formats. 2019-03-13 14:27:17 +00:00
nicm
df755e2f48 Add E: format to expand a format twice (useful to expand the value of an
option).
2019-03-13 14:19:54 +00:00
nicm
a0c9684256 Make format parsing build the modifiers into a list, standardize how
arguments are given and allow multiple modifiers on a format (separated
by ;).
2019-03-13 14:10:34 +00:00
nicm
1fbe58cc3c Do not use origin for VPA. 2019-03-13 07:34:36 +00:00
nicm
d1450c2b0e Set a flag on cells are genuinely empty (cleared and never written to)
and use tty_clear_line (which will choose the best escape sequence) to
clear any batches of cells with that flag when redrawing a line from the
stored screen.
2019-03-12 23:21:45 +00:00
nicm
5c6c700103 DECRC and DECSC apparently need to preserve origin mode as well, based
on a fix from Marc Reisner.
2019-03-12 20:02:47 +00:00
nicm
c15b234755 Fix HPA in origin mode. 2019-03-12 18:30:08 +00:00
nicm
3248c88064 Tidy up a lot of &ictx->ctx by using a local variable. 2019-03-12 18:26:57 +00:00
nicm
db993454ab Fix resizing of control clients, should be ignored until SIZECHANGED flag set. 2019-03-12 13:56:30 +00:00