nicm
10d60faba5
Store the time in the format tree rather than passing it around.
2019-03-14 23:14:27 +00:00
nicm
bace79a571
Remove some unnecessary temporary variables and be much less strict
...
about spacing in style_parse.
2019-03-14 21:46:08 +00:00
nicm
4206bcc10e
Add format flags for start and end window.
2019-03-14 21:41:30 +00:00
nicm
38064e7593
Add T format modifier like E but also do strftime(3).
2019-03-14 21:31:43 +00:00
nicm
1416ceb575
Accept 0 time as a shorthand for now to format_expand_time.
2019-03-14 21:27:26 +00:00
nicm
9bd4b96766
Fix ED1 (clear end of screen), reported by Marc Reisner.
2019-03-14 17:58:52 +00:00
nicm
0425e3178d
A little tidying in style_parse.
2019-03-14 10:19:52 +00:00
nicm
13f9a061ac
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
1e9f8a3523
Missing space in capture-pane usage, from Ben Boeckel.
...
Also man page fixed from jmc.
2019-03-14 06:36:21 +00:00
nicm
2fbd491ff0
Add actual HPA (\033[`), the existing one is CHA. From Marc Reisner.
2019-03-14 06:33:43 +00:00
nicm
5755bfc619
Need to set attributes before clearing.
2019-03-13 22:01:22 +00:00
nicm
10f0094be9
The pane's style should be initialized to default before parsing the
...
argument.
2019-03-13 21:39:21 +00:00
nicm
6dffbc4849
Tweak format_replace logging.
2019-03-13 18:09:12 +00:00
nicm
95ab1aaaec
Add formats to list sessions, windows or panes.
2019-03-13 15:37:28 +00:00
nicm
49f04a997a
Apply length limits and substitution even to literal formats.
2019-03-13 14:27:17 +00:00
nicm
9032ac2a05
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
71e00c718c
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
feaa5660a3
Do not use origin for VPA.
2019-03-13 07:34:36 +00:00
nicm
b2bc34af12
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
938156d73b
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
2796ae81d0
Fix HPA in origin mode.
2019-03-12 18:30:08 +00:00
nicm
f3f534a3a0
Tidy up a lot of &ictx->ctx by using a local variable.
2019-03-12 18:26:57 +00:00
nicm
028f9d1d87
Fix resizing of control clients, should be ignored until SIZECHANGED flag set.
2019-03-12 13:56:30 +00:00
nicm
303d20a758
Fix wrapping after origin mode change.
2019-03-12 13:14:14 +00:00
nicm
3f0efc050a
When asked for a window index, return it even if the window exists.
2019-03-12 13:14:04 +00:00
nicm
7804fa1b82
Revert to not clearing history on RIS, apparently some bootloaders send
...
this and it doesn't really do any harm.
2019-03-12 12:58:40 +00:00
nicm
7b819357ff
Tweak target debug logging.
2019-03-12 12:49:46 +00:00
nicm
3f6bfbaf2b
Allow multiple modes to be open in a pane. A stack of open modes is kept
...
and the previous restored when the top is exited. If a mode that is
already on the stack is entered, the existing instance is moved to the
top as the active mode rather than being opened new.
2019-03-12 11:16:49 +00:00
nicm
ff4c80d53d
Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.
2019-03-12 07:39:27 +00:00
nicm
de730f68a4
Make the mode used to view command output (a variant of copy mode) use
...
its own mode definition struct with a different init function rather
than calling special setup functions.
2019-03-08 10:34:20 +00:00
nicm
9cc04a0f9a
Do not use window mode entry after free.
2019-03-08 10:29:25 +00:00
nicm
f98c66ece8
Add a separate mode struct for the active window mode if any.
2019-03-07 20:24:21 +00:00
nicm
3c24bc5617
Tidy changing the mode into window_copy_init_for_output.
2019-03-07 19:34:22 +00:00
nicm
7f093fcddc
Make adding mode formats a function pointer as well.
2019-03-07 19:01:21 +00:00
nicm
5cdd578906
Fix sense of aggressive-resize flag.
2019-03-04 09:29:52 +00:00
nicm
a870c255c4
Don't set client offset if client is not a terminal
2019-03-04 09:29:40 +00:00
nicm
fa33603dc1
Do not look at next key byte if the length is 0, originally from Shingo
...
NISHIOKA in GitHub issue 1601.
2019-02-16 19:04:34 +00:00
nicm
82f0c859a2
Use starting client cwd in config file, GitHub issue 1606.
2019-02-16 11:42:08 +00:00
nicm
f9c396db41
Completion of command-alias members.
2019-02-09 18:18:36 +00:00
nicm
afd3127d89
Add -b to display-panes like run-shell, GitHub issue 1559.
2019-02-06 07:36:06 +00:00
nicm
2ea22fce5e
Should use DECFRA if not default, not if default. From Karl Beldan.
2019-01-20 15:57:27 +00:00
nicm
cd39920abd
Should save the bg colour when setting it to default, not the fg.
2019-01-15 12:08:53 +00:00
nicm
34c0807be6
Do not highlight characters which will not be copied, reported by
...
Jaroslaw Rzeszotko.
2019-01-15 09:56:31 +00:00
nicm
bde0224deb
Pass window into mode functions.
2018-12-18 13:20:44 +00:00
nicm
4e3d661284
Fix parsing of empty colon-separated fields, reported by Siarhei Siniak.
2018-12-17 21:52:59 +00:00
nicm
67254ed8df
Clear PANE_EXITED flag when starting new child process in case the pane
...
has been respawned.
2018-11-30 08:44:40 +00:00
nicm
40d246b29c
Handle UTF-8 in word-separators option, GitHub issue 1551.
2018-11-28 11:20:13 +00:00
nicm
3a7b9d5735
Do not use PWD unless it actually matches the real working directory.
2018-11-22 10:36:40 +00:00
nicm
749f67b7d8
evbuffer_new and bufferevent_new can both fail (when malloc fails) and
...
return NULL. GitHub issue 1547.
2018-11-19 13:35:40 +00:00
kn
f103927a52
Add [template] to display-panes and choose-{buffer,client,tree} usage
...
OK nicm
2018-11-15 10:38:53 +00:00