nicm
35779d655d
Fix definition of padding cells so they are not extended cells.
2020-05-25 18:55:36 +00:00
nicm
49ec074271
Tidy up new UTF-8 code and make it more generic.
2020-05-25 18:19:29 +00:00
nicm
dc893405e1
Fix some error strings, from Kris Katterjohn.
2020-05-25 18:17:14 +00:00
Thomas Adam
b34af611a5
Merge branch 'obsd-master'
2020-05-25 18:01:20 +01:00
nicm
bbfb44e9b2
Make some data types consistent.
2020-05-25 15:02:25 +00:00
Thomas Adam
32ce468b22
Merge branch 'obsd-master'
2020-05-25 14:01:19 +01:00
nicm
4589297e43
Do not attempt to divide by zero when working out copy position.
2020-05-25 12:12:58 +00:00
nicm
26e8e467e8
Include title for the width of the menu.
2020-05-25 11:59:50 +00:00
Thomas Adam
bb5a1925ab
Merge branch 'obsd-master'
2020-05-25 12:01:19 +01:00
nicm
3a5219c6d0
Instead of storing all UTF-8 characters in the extended cell which means
...
that 14 bytes are wasted for each character in the BMP, only store
characters of three bytes or less in the cell itself and store others
(outside the BMP or with combining characters) in a separate global
tree. Can reduce grid memory use for heavy Unicode users by around 30%.
2020-05-25 09:32:10 +00:00
Thomas Adam
e16191dbfc
Merge branch 'obsd-master'
2020-05-24 16:01:20 +01:00
nicm
14a9fd58d5
Remove leftover call to control_free_offsets and do not use for
...
non-control clients.
2020-05-24 14:45:00 +00:00
Thomas Adam
aeefd585a0
Merge branch 'obsd-master'
2020-05-24 12:01:21 +01:00
nicm
18aab90959
Give control code its own state struct.
2020-05-24 09:40:17 +00:00
nicm
6c82982711
Now the tty has a pointer back to the client there is no point (and a
...
bit confusing) in it keeping a copy of the fd as well. Remove it.
2020-05-24 09:13:06 +00:00
Thomas Adam
e71c5efd58
Merge branch 'obsd-master'
2020-05-22 18:01:20 +01:00
Nicholas Marriott
2ac6cc2633
Put headers back how they were.
2020-05-22 17:34:30 +01:00
Nicholas Marriott
a48cc458a6
Maybe this is better.
2020-05-22 17:27:07 +01:00
Nicholas Marriott
1fdacba111
Think Solaris needs term.h here.
2020-05-22 17:24:42 +01:00
Nicholas Marriott
b3e5a99c8f
And tweak again.
2020-05-22 17:22:03 +01:00
Nicholas Marriott
6ae26a6b54
Fix utf8proc version logging.
2020-05-22 17:20:35 +01:00
Nicholas Marriott
87a59efc94
Log ncurses and utf8proc versions.
2020-05-22 17:14:35 +01:00
nicm
033d6472cb
FocusIn keys can also update the latest client, like normal keys.
2020-05-22 15:43:38 +00:00
nicm
a06a0e1392
xterm* can have focus too.
2020-05-22 15:08:38 +00:00
Thomas Adam
d48f0e114e
Merge branch 'obsd-master'
2020-05-22 13:40:33 +01:00
nicm
9a0763c3a0
Move client offset stuff into control.c since only control clients will
...
need it.
2020-05-22 11:07:04 +00:00
Thomas Adam
2420bd8584
spawn.c: fix up bad merge
2020-05-21 09:02:36 +01:00
Thomas Adam
40126ee96c
Merge branch 'obsd-master'
2020-05-21 08:55:31 +01:00
nicm
31e3f2d530
Support code for control mode flow control: allow clients to have
...
separate offsets (used and acknowleged) into the pane buffers; turn off
reading from panes when no clients can accept the data; and add a -A
flag to refresh-client to let clients turn receiving a pane on and off.
2020-05-21 07:24:13 +00:00
Nicholas Marriott
98a18d064a
Fix a regression test, size is not updated until end of event loop.
2020-05-21 08:20:37 +01:00
Thomas Adam
5ac5cd995e
Merge branch 'obsd-master'
2020-05-20 10:01:19 +01:00
nicm
6bde1c1837
Fix a couple more places where the key flags need to be masked off.
2020-05-20 07:11:45 +00:00
Thomas Adam
fa835339fd
Merge branch 'obsd-master'
2020-05-20 08:01:18 +01:00
nicm
b53e60f4c6
Remove a redundant if statement.
2020-05-20 06:18:22 +00:00
nicm
2a9e2b556a
Key strings need to include the cursor and keypad flags now since the
...
output key lookup expects them already set.
2020-05-20 06:13:09 +00:00
Thomas Adam
fb9e53ba19
Merge branch 'obsd-master'
2020-05-19 14:01:17 +01:00
Nicholas Marriott
e10f5a72ce
Add FreeBSD CI, from Jan Beich.
2020-05-19 12:34:34 +01:00
nicm
8425084b8a
Some other ctrl keys need to be translated with extended keys on.
2020-05-19 10:59:09 +00:00
Nicholas Marriott
dc56b3cd32
No paths.h.
2020-05-16 20:27:00 +01:00
Thomas Adam
2bc05db54f
remove vis.h: portable doesn't need this
2020-05-16 18:42:53 +01:00
Thomas Adam
bd87f6bf00
Merge branch 'obsd-master'
2020-05-16 18:36:35 +01:00
nicm
574a9e4b6c
Move lazy resize from the pane to the window, there is no point in
...
resizing the window unless it is the current window, and if we do and
don't resize the pane until later there are problems if the size changes
from A to B then back to A.
2020-05-16 16:50:55 +00:00
nicm
844b363baf
On select-window, make this client the latest client for the window.
2020-05-16 16:45:55 +00:00
nicm
0ab82d9531
Add a terminal feature for enable/disable extended keys (supported by
...
xterm and mintty) and add an option to make tmux send it. Only forward
extended keys if the application has requested them, even though we use
the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
2020-05-16 16:44:54 +00:00
nicm
292b335ca5
Separate key flags and modifiers, log key flags, make the "xterm" flag
...
more explicit and fix M- keys with a leading escape.
2020-05-16 16:35:13 +00:00
nicm
e2a26740b9
Add an option to set the pane border lines style from a choice of single
...
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or
number (the pane numbers). Lines that won't work on a non-UTF-8 terminal
are translated back into ACS when they are output.
2020-05-16 16:26:34 +00:00
nicm
ecbdcc256f
Add screen write flags instead of individual bits and fix line length
...
calculation with padding.
2020-05-16 16:22:01 +00:00
nicm
303d342d5f
Add a client flag 'active-pane' which stores the active pane in the
...
client and allows it to be changed independently from the real active
pane stored in the window. This is can be used with session groups which
allow an independent current window (although it would be nice to have a
flag for this too and remove session groups). The client active pane is
only really useful interactively, many things (hooks, window-style,
zooming) still use the window active pane.
2020-05-16 16:20:59 +00:00
nicm
c914abfa19
Expand target from client and use it to expand the prompt.
2020-05-16 16:16:07 +00:00
nicm
72984c4834
Move editor stuff to common code in popup.c.
2020-05-16 16:13:09 +00:00