nicm
7f2925a01d
Support the application escape sequence mintty (means tmux doesn't have
...
to delay to wait for Escape).
2020-04-17 09:06:10 +00:00
nicm
363d950ac0
Send secondary device attributes instead of primary which gives us a bit
...
more useful information on some terminals.
2020-04-16 15:14:25 +00:00
nicm
5ec80bd249
Move the UTF-8 flag to terminal flags.
2020-04-16 14:25:35 +00:00
nicm
4744aa43af
Add a helper function to get the terminal flags.
2020-04-16 14:03:51 +00:00
nicm
b2443aa2f9
Add support for the iTerm2 sychronized updates escape sequence which
...
drastically reduces flickering.
2020-04-16 13:35:24 +00:00
nicm
0e8710f507
Wait until the initial command sequence is done before sending a device
...
attributes request and other bits that prompt a reply from the terminal.
This means that stray relies are not left on the terminal if the command
has attached and then immediately detached and tmux will not be around
to receive them. Prompted by a problem report from espie@.
2020-04-09 12:16:16 +00:00
nicm
8a838b0372
Add support for overlay popup boxes to show text or output temporarily
...
above the normal layout. These work similarly to menus and are created
with the display-popup command.
2020-03-24 08:09:43 +00:00
nicm
1ddc128860
Do not return early if no bits changed because may still need to change the style.
2020-03-17 12:20:12 +00:00
nicm
37b7a29cca
VTE treats each mouse mode bit as independent, so turning off 1000
...
doesn't also turn off 1001, so don't rely on that behaviour. GitHub
issue 2116.
2020-03-16 10:49:06 +00:00
nicm
7cae4e8e89
Turn off mouse mode 1003 as well as the rest when exiting.
2020-03-16 09:18:47 +00:00
Nicholas Marriott
3a741aacd1
Merge branch 'sixel-passthrough' into sixel
2020-01-30 09:11:01 +00:00
Nicholas Marriott
92ed9fc0b2
Merge branch 'master' into sixel-passthrough
2020-01-30 09:03:38 +00:00
nicm
531daba584
Do not send DA and DSR again if already have a response.
2020-01-29 15:07:49 +00:00
nicm
a6129e9974
If we can identify the terminal as iTerm2 or as tmux, we can be sure
...
they support 256 and RGB colours, so set those flags too.
2020-01-28 11:39:51 +00:00
nicm
da515570dc
Stop handling DA and DSR after a second (they should be the first thing
...
sent) so this should be plenty.
2020-01-13 11:59:21 +00:00
nicm
835a6c0cf0
Be more specific in the DSR we are looking for so it doesn't get
...
confused with mouse sequences. Also set a flag and don't bother checking
for it if we have already seen it (same for DA), and don't check if we
never asked for it.
2020-01-13 08:12:53 +00:00
nicm
381333c4a9
Detect iTerm2 and enable DECSLRM.
2020-01-12 22:00:20 +00:00
nicm
193e637de0
The terminal type was never as much use as I expected so remove it in
...
favour of a couple of flags for the features used (DECSLRM and DECFRA).
Also rename the flag for no xenl to be more obvious while here.
2020-01-12 21:07:07 +00:00
Nicholas Marriott
5bb075487f
Merge branch 'master' into sixel-passthrough
2019-12-18 20:24:42 +00:00
Nicholas Marriott
dd3c72f132
Merge branch 'master' into sixel
2019-12-18 20:24:26 +00:00
nicm
f733d3f3eb
Do not set cursor colour to default unless it has been changed, GitHub
...
issue 2013.
2019-12-11 12:13:37 +00:00
Nicholas Marriott
b642eac450
Redraw and scroll images and part of invalidating them.
2019-12-05 09:11:24 +00:00
Nicholas Marriott
7566e37a46
Call sixel_scale with the right number of arguments.
2019-12-05 08:51:24 +00:00
Nicholas Marriott
49f2f0a8f1
Store images, currently at most 10.
2019-12-05 00:02:55 +00:00
Nicholas Marriott
a5b1e20941
Add a flag to disable blocking while sending a SIXEL image (turned off when the
...
buffer hits 0 size).
2019-11-30 09:31:29 +00:00
Nicholas Marriott
968382aa6a
Pass through SIXEL DCS sequences (treat similarly to the passthrough escape
...
sequence) if it appears the terminal outside supports them.
2019-11-30 09:30:21 +00:00
Nicholas Marriott
b1904c9b8d
Store SIXELs as a box for the moment.
2019-11-30 09:17:18 +00:00
Nicholas Marriott
d2e3f3c1cc
Add a flag to disable blocking while sending a SIXEL image (turned off when the
...
buffer hits 0 size).
2019-11-28 14:20:22 +00:00
Nicholas Marriott
e01df67ca1
Crop and scale images as needed when drawing them.
2019-11-28 13:21:40 +00:00
Nicholas Marriott
b34111b3da
Pass through SIXEL DCS sequences (treat similarly to the passthrough escape
...
sequence) if it appears the terminal outside supports them.
2019-11-28 12:35:18 +00:00
nicm
bc5881c4d2
Long lines and spacing fixes.
2019-11-28 09:56:25 +00:00
nicm
067604bf8c
Store xpixel/ypixel from TIOCGWINSZ and add formats.
2019-11-28 09:05:34 +00:00
nicm
eb399e64d5
CUB and CUF are also limited by the margins so use CUP instead when
...
margins are enabled (we already do this for linefeed).
2019-11-14 07:56:32 +00:00
nicm
d018477359
Do not use bright when emulating 256 colours on an 8 colour terminal
...
because it is also bold on some terminals. GitHub issue 1914.
2019-09-19 08:56:37 +00:00
nicm
45f4ff5485
Add support for the SD (scroll down) escape sequence, GitHub issue 1861.
2019-08-05 06:42:02 +00:00
nicm
49bf7dc77e
xterm 348 now disables margins when resized, so send DECLRMM again.
2019-08-01 11:45:34 +00:00
nicm
99852f8401
Fix check for wrapping when redrawing entire lines, GitHub issue 1836.
2019-07-16 14:11:52 +00:00
nicm
dae2868d12
Add support for underscore colours with Setulc capability, mostly from
...
Kai Moschcau.
2019-06-27 15:17:41 +00:00
nicm
80d76612b8
Fix some comments (top/bottom not left/right).
2019-06-26 13:05:06 +00:00
nicm
5f92f92908
Add a per-pane option set. Pane options inherit from window options (so
...
there should be no change to existing behaviour) and are set and shown
with set-option -p and show-options -p.
Change remain-on-exit and window-style/window-active-style to be pane
options (some others will be changed later).
This makes select-pane -P and -g unnecessary so no longer document them
(they still work) and no longer document set-window-option and
show-window-options in favour of set-option -w and show-options -w.
2019-06-20 11:59:59 +00:00
nicm
89d2c7eb26
I had hoped that non-xenl terminals had died out, at least in fairly
...
modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it
at least somewhat. GitHub issue 1763.
2019-05-30 07:42:41 +00:00
nicm
1ee944a19d
Add support for overline (SGR 53), from Ricardo Banffy.
2019-05-13 20:10:23 +00:00
nicm
a609e6361a
Need a fallback for -2 for aixterm colours.
2019-04-25 19:03:43 +00:00
nicm
6aa0bedad2
Use bg not fg when adjusting for aixterm, from Ailin Nemui.
2019-04-24 20:32:31 +00:00
nicm
c660e46149
Set the window size as well as the layout size when using the preset
...
layouts.
2019-04-17 14:43:49 +00:00
nicm
9bd4b96766
Fix ED1 (clear end of screen), reported by Marc Reisner.
2019-03-14 17:58: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
5755bfc619
Need to set attributes before clearing.
2019-03-13 22:01:22 +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
a870c255c4
Don't set client offset if client is not a terminal
2019-03-04 09:29:40 +00:00