OpenBSD CVS

CVS log for src/usr.bin/tmux/input.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.224 / (download) - annotate - [select for diffs], Wed Apr 10 07:36:25 2024 UTC (5 weeks, 4 days ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.223: +4 -2 lines
Diff to previous 1.223 (colored)

Add an option allow-set-title to forbid applications from changing the
pane title, from someone in GitHub issue 3930.

Revision 1.223 / (download) - annotate - [select for diffs], Wed Dec 27 20:13:35 2023 UTC (4 months, 3 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.222: +19 -7 lines
Diff to previous 1.222 (colored)

Correctly handle window ops with no pane, GitHub issue 3747.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Sep 15 06:31:49 2023 UTC (8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.221: +2 -2 lines
Diff to previous 1.221 (colored)

Add -t to source-file, GitHub issue 3473.

Revision 1.221 / (download) - annotate - [select for diffs], Fri Sep 15 06:28:15 2023 UTC (8 months ago) by nicm
Branch: MAIN
Changes since 1.220: +32 -9 lines
Diff to previous 1.220 (colored)

Add some more WINOPS and a placeholder for SMGRAPHICS.

Revision 1.220 / (download) - annotate - [select for diffs], Wed Aug 23 08:30:07 2023 UTC (8 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.219: +7 -4 lines
Diff to previous 1.219 (colored)

Log what input_dcs_dispatch does with the input data.

Revision 1.219 / (download) - annotate - [select for diffs], Tue Aug 8 08:21:29 2023 UTC (9 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.218: +4 -1 lines
Diff to previous 1.218 (colored)

Add flag to next-prompt/previous-prompt to go to command output instead,
from Magnus Gross.

Revision 1.218 / (download) - annotate - [select for diffs], Thu Jul 13 06:03:48 2023 UTC (10 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.217: +2 -2 lines
Diff to previous 1.217 (colored)

Use 8 for underscore colour defaults instead of 0 which is less
confusing, and fix writing tge default colour. GitHub issue 3627.

Revision 1.217 / (download) - annotate - [select for diffs], Mon Jul 3 16:47:43 2023 UTC (10 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.216: +23 -1 lines
Diff to previous 1.216 (colored)

Add support for marking lines with a shell prompt based on the OSC 133
extension, from Munif Tanjim in GitHub issue 3596.

Revision 1.216 / (download) - annotate - [select for diffs], Fri Jun 30 13:19:32 2023 UTC (10 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.215: +4 -2 lines
Diff to previous 1.215 (colored)

Get rid of some warnings with GCC 10, from Thomas Klausner.

Revision 1.215 / (download) - annotate - [select for diffs], Sun Jun 25 15:53:07 2023 UTC (10 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.214: +4 -2 lines
Diff to previous 1.214 (colored)

SGR 0 should not end hyperlink, reported by Lucas Trzesniewski.

Revision 1.214 / (download) - annotate - [select for diffs], Mon Mar 27 08:47:57 2023 UTC (13 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.213: +5 -1 lines
Diff to previous 1.213 (colored)

Add a format to show if there are unseen changes while in a mode, from
Dan Aloni in GitHub issue 3498.

Revision 1.213 / (download) - annotate - [select for diffs], Tue Jan 3 11:43:24 2023 UTC (16 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.212: +63 -54 lines
Diff to previous 1.212 (colored)

Query the client terminal for foreground and background colours and if
OSC 10 or 11 is received but no colour has been set inside tmux, return
the colour from the first attached client (probably most people will
have all light or or all dark terminals).

Revision 1.212 / (download) - annotate - [select for diffs], Fri Nov 11 08:37:55 2022 UTC (18 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.211: +3 -3 lines
Diff to previous 1.211 (colored)

Parse primary device attributes as well as secondary and add a SIXEL
flag (not used yet), from Anindya Mukherjee.

Revision 1.211 / (download) - annotate - [select for diffs], Fri Oct 28 13:00:02 2022 UTC (18 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.210: +1 -2 lines
Diff to previous 1.210 (colored)

Add paste-buffer-deleted notification and fix name of paste-buffer-changed.

Revision 1.210 / (download) - annotate - [select for diffs], Fri Oct 28 12:20:28 2022 UTC (18 months, 3 weeks ago) by nicm
Branch: MAIN
Changes since 1.209: +1 -11 lines
Diff to previous 1.209 (colored)

Do not send focus sequences when reporting is enabled, matches other
terminals behaviour.

Revision 1.209 / (download) - annotate - [select for diffs], Mon Sep 12 12:02:17 2022 UTC (20 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.208: +3 -3 lines
Diff to previous 1.208 (colored)

Don't use options from pane if pane is NULL.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Aug 31 08:07:05 2022 UTC (20 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored)

Fix window size report, from Vincent Bernat.

Revision 1.207 / (download) - annotate - [select for diffs], Tue Aug 2 11:09:26 2022 UTC (21 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.206: +9 -4 lines
Diff to previous 1.206 (colored)

Add a third state "all" to allow-passthrough to work even in invisible
panes, from Sergei Grechanik in GitHub issue 3274.

Revision 1.206 / (download) - annotate - [select for diffs], Thu Jun 30 09:55:53 2022 UTC (22 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.205: +46 -1 lines
Diff to previous 1.205 (colored)

Add support for OSC 8 hyperlinks (a VTE extension now supported by other
terminals such as iTerm2). Originally written by me then extended and
completed by first Will Noble and later Jeff Chiang. GitHub issues 911,
2621, 2890, 3240.

Revision 1.205 / (download) - annotate - [select for diffs], Sat Jun 11 16:59:33 2022 UTC (23 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.204: +2 -2 lines
Diff to previous 1.204 (colored)

Fix size of flags output buffer.

Revision 1.204 / (download) - annotate - [select for diffs], Fri Jun 10 11:55:30 2022 UTC (23 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.203: +3 -1 lines
Diff to previous 1.203 (colored)

Ignore OSC if the first argument is not properly terminated.

Revision 1.203 / (download) - annotate - [select for diffs], Thu Jun 9 09:12:55 2022 UTC (23 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.202: +11 -2 lines
Diff to previous 1.202 (colored)

If an application gives the first parameter to OSC 52, validate and pass
on to outside terminal. GitHub issue 3192.

Revision 1.202 / (download) - annotate - [select for diffs], Mon May 30 13:00:18 2022 UTC (23 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.201: +4 -1 lines
Diff to previous 1.201 (colored)

Add a way for lines added to copy mode to be passed through the parser
to handle escape sequences and use it for run-shell, GitHub issue 3156.

Revision 1.201 / (download) - annotate - [select for diffs], Mon May 30 12:51:27 2022 UTC (23 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.200: +3 -1 lines
Diff to previous 1.200 (colored)

Do not send focus sequences when focus is enabled or disabled by the
application if it is turned off. GitHub issue 3142.

Revision 1.200 / (download) - annotate - [select for diffs], Tue Mar 8 12:01:19 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.199: +29 -20 lines
Diff to previous 1.199 (colored)

Add argument to refresh-client -l to forward clipboard to a pane. GitHub
issue 3068.

Revision 1.199 / (download) - annotate - [select for diffs], Tue Feb 15 13:11:29 2022 UTC (2 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.198: +6 -2 lines
Diff to previous 1.198 (colored)

Add an option (default off) to control the passthrough escape sequence.
Like set-clipboard and allow-rename it is safer to forbid this by
default.

Revision 1.198 / (download) - annotate - [select for diffs], Tue Dec 7 07:28:44 2021 UTC (2 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.197: +7 -1 lines
Diff to previous 1.197 (colored)

Respond to OSC 4 query.

Revision 1.197 / (download) - annotate - [select for diffs], Tue Dec 7 07:21:40 2021 UTC (2 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.196: +3 -2 lines
Diff to previous 1.196 (colored)

Use four digits not two for RGB responses to match other terminals.

Revision 1.196 / (download) - annotate - [select for diffs], Thu Nov 11 09:31:16 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.195: +11 -7 lines
Diff to previous 1.195 (colored)

If automatic-rename is off, allow the escape sequence to set an empty
window name, GitHub issue 2964.

Revision 1.195 / (download) - annotate - [select for diffs], Wed Nov 3 13:37:17 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.194: +4 -2 lines
Diff to previous 1.194 (colored)

Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.

Revision 1.194 / (download) - annotate - [select for diffs], Mon Nov 1 09:34:49 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.193: +42 -7 lines
Diff to previous 1.193 (colored)

Add a cursor-colour option, from Alexis Hildebrandt in GitHub issue
2959.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Oct 5 12:46:02 2021 UTC (2 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.192: +5 -5 lines
Diff to previous 1.192 (colored)

Separate "very visible" flag from blinking flag, it should not affect
DECSCUSR. GitHub issue 2891.

Revision 1.192 / (download) - annotate - [select for diffs], Sat Aug 14 16:26:29 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.191: +25 -17 lines
Diff to previous 1.191 (colored)

Some other missing palette NULL checks, from oss-fuzz.

Revision 1.191 / (download) - annotate - [select for diffs], Fri Aug 13 06:52:51 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.190: +7 -3 lines
Diff to previous 1.190 (colored)

Change focus to be driven by events rather than walking all panes at end
of event loop, this way the ordering of in and out can be enforced.
GitHub issue 2808.

Revision 1.190 / (download) - annotate - [select for diffs], Wed Aug 11 20:49:55 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.189: +80 -87 lines
Diff to previous 1.189 (colored)

Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups.
Also add a pane-colours array option to specify the defaults. GitHub
issue 2815.

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jun 10 07:24:10 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.188: +3 -1 lines
Diff to previous 1.188 (colored)

Add an "always" value to the extended-keys option to always forward
these keys to applications inside tmux.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Feb 18 13:30:24 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.187: +4 -2 lines
Diff to previous 1.187 (colored)

Reduce len when moving past spaces in OSC 11 parameter.

Revision 1.187 / (download) - annotate - [select for diffs], Mon Feb 15 14:22:35 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.186: +6 -1 lines
Diff to previous 1.186 (colored)

Make SGR 6 (rapid blink) the same as SGR 5 (blink) and make SGR 21 to
the same as SGR 4:2, it is an old alternative. GitHub issue 2567.

Revision 1.186 / (download) - annotate - [select for diffs], Mon Feb 15 09:39:38 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.185: +85 -54 lines
Diff to previous 1.185 (colored)

Support X11 colour names and some other variations for OSC 10/11, also
add OSC 110 and 111. GitHub issue 2567.

Revision 1.185 / (download) - annotate - [select for diffs], Fri Oct 30 11:34:13 2020 UTC (3 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.184: +5 -1 lines
Diff to previous 1.184 (colored)

Limit range of repeat to avoid silly high numbers causing delays, from
Sergey Nizovtsev.

Revision 1.183.4.1 / (download) - annotate - [select for diffs], Thu Oct 29 16:34:28 2020 UTC (3 years, 6 months ago) by deraadt
Branch: OPENBSD_6_8
Changes since 1.183: +7 -2 lines
Diff to previous 1.183 (colored) next main 1.184 (colored)

Do not write after the end of the array and overwrite the stack when
colon-separated SGR sequences contain empty arguments. Reported by Sergey
Nizovtsev.
this is errata 6.8/003_tmux.patch.sig

Revision 1.174.4.1 / (download) - annotate - [select for diffs], Thu Oct 29 16:34:15 2020 UTC (3 years, 6 months ago) by deraadt
Branch: OPENBSD_6_7
Changes since 1.174: +7 -2 lines
Diff to previous 1.174 (colored) next main 1.175 (colored)

Do not write after the end of the array and overwrite the stack when
colon-separated SGR sequences contain empty arguments. Reported by Sergey
Nizovtsev.
this is errata 6.7/027_tmux.patch.sig

Revision 1.184 / (download) - annotate - [select for diffs], Thu Oct 29 16:33:01 2020 UTC (3 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.183: +7 -2 lines
Diff to previous 1.183 (colored)

Do not write after the end of the array and overwrite the stack when
colon-separated SGR sequences contain empty arguments. Reported by Sergey
Nizovtsev.

Revision 1.183 / (download) - annotate - [select for diffs], Wed Aug 19 06:37:23 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE
Branch point for: OPENBSD_6_8
Changes since 1.182: +37 -9 lines
Diff to previous 1.182 (colored)

Respond to colour requests if a colour is available, from Michal Goral.

Revision 1.182 / (download) - annotate - [select for diffs], Fri Jul 24 07:05:37 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.181: +4 -1 lines
Diff to previous 1.181 (colored)

Add a hook when the pane title changed.

Revision 1.181 / (download) - annotate - [select for diffs], Tue Jun 16 08:18:34 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.180: +5 -5 lines
Diff to previous 1.180 (colored)

d and D keys to reset to default in customize mode.

Revision 1.180 / (download) - annotate - [select for diffs], Mon Jun 1 09:43:01 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.179: +2 -2 lines
Diff to previous 1.179 (colored)

Instead of sending all data to control mode clients as fast as possible,
add a limit of how much data will be sent to the client and try to use
it for panes with some degree of fairness. GitHub issue 2217, with
George Nachman.

Revision 1.179 / (download) - annotate - [select for diffs], Thu May 21 07:24:13 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.178: +6 -5 lines
Diff to previous 1.178 (colored)

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.

Revision 1.178 / (download) - annotate - [select for diffs], Sat May 16 16:44:54 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.177: +19 -2 lines
Diff to previous 1.177 (colored)

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.

Revision 1.177 / (download) - annotate - [select for diffs], Sat May 16 15:34:08 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.176: +13 -26 lines
Diff to previous 1.176 (colored)

Do not hoke into struct window_pane from the tty code and instead set
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in
the same way as panes do, rather than forcing a full redraw on every
change.

Revision 1.176 / (download) - annotate - [select for diffs], Sat May 16 15:01:31 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.175: +17 -14 lines
Diff to previous 1.175 (colored)

Drop having a separate type for style options and make them all strings,
which allows formats to be expanded. Any styles without a '#{' are still
validated when they are set but any with a '#{' are not. Formats are not
expanded usefully in many cases yet, that will be changed later.

To make this work, a few other changes:

- set-option -a with a style option automatically appends a ",".

- OSC 10 and 11 don't set the window-style option anymore, instead the
  fg and bg are stored in the pane struct and act as the defaults that
  can be overridden by window-style.

- status-fg and -bg now override status-style instead of trying to keep
  them in sync.

Revision 1.175 / (download) - annotate - [select for diffs], Sat May 16 14:16:25 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.174: +9 -9 lines
Diff to previous 1.174 (colored)

Remove support for iTerm2's DSR 1337 extension and use the CSI > q
extension now supported by a few different terminals.

Revision 1.174 / (download) - annotate - [select for diffs], Thu Apr 30 13:31:22 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE
Branch point for: OPENBSD_6_7
Changes since 1.173: +2 -2 lines
Diff to previous 1.173 (colored)

Do not remove the automatic-rename option from the global set, only from
the window (it must stay in the global set or tmux will crash). GitHub
issue 2188.

Revision 1.173 / (download) - annotate - [select for diffs], Tue Mar 31 07:00:34 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.172: +9 -1 lines
Diff to previous 1.172 (colored)

Move alternate screen into the screen rather than the pane.

Revision 1.172 / (download) - annotate - [select for diffs], Tue Mar 31 06:35:38 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.171: +13 -15 lines
Diff to previous 1.171 (colored)

Detach reply escape sequences from the pane so they work in popups.

Revision 1.171 / (download) - annotate - [select for diffs], Thu Mar 19 14:03:48 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.170: +126 -76 lines
Diff to previous 1.170 (colored)

Change input path so it doesn't require a pane.

Revision 1.170 / (download) - annotate - [select for diffs], Mon Feb 3 13:46:27 2020 UTC (4 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.169: +4 -8 lines
Diff to previous 1.169 (colored)

Instead of passing titles through vis() which doubles backslashes, just
ignore any containing control characters or invalid UTF-8. GitHub issue 2070.

Revision 1.169 / (download) - annotate - [select for diffs], Wed Jan 29 15:07:49 2020 UTC (4 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.168: +2 -1 lines
Diff to previous 1.168 (colored)

Do not send DA and DSR again if already have a response.

Revision 1.168 / (download) - annotate - [select for diffs], Tue Jan 28 10:59:29 2020 UTC (4 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.167: +10 -1 lines
Diff to previous 1.167 (colored)

Add support for the iTerm2 DSR 1337 sequence to get the terminal version.

Revision 1.167 / (download) - annotate - [select for diffs], Thu Nov 28 09:50:09 2019 UTC (4 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.166: +2 -2 lines
Diff to previous 1.166 (colored)

Bump the escape sequence timeout to five seconds to allow for longer
legitimate sequences.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Nov 15 11:21:32 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.165: +1 -2 lines
Diff to previous 1.165 (colored)

Do not add path if it is NULL, duh.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Nov 15 11:16:53 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.164: +8 -1 lines
Diff to previous 1.164 (colored)

Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).

Revision 1.164 / (download) - annotate - [select for diffs], Thu Nov 14 08:00:30 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.163: +2 -2 lines
Diff to previous 1.163 (colored)

Change new-session -A without a session name (that is, no -s option
also) to attach to the best existing session like attach-session rather
than creating a new one.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Nov 1 09:09:53 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.162: +59 -5 lines
Diff to previous 1.162 (colored)

Handle the various different forms of rgb colour strings.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Oct 14 09:19:40 2019 UTC (4 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.161: +11 -1 lines
Diff to previous 1.161 (colored)

Turn automatic-rename back on if the rename escape sequence is used with
an empty name, GitHub issue 1921.

Revision 1.161 / (download) - annotate - [select for diffs], Wed Sep 25 19:05:59 2019 UTC (4 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.160: +3 -2 lines
Diff to previous 1.160 (colored)

Style and line length nits.

Revision 1.160 / (download) - annotate - [select for diffs], Tue Sep 24 20:44:58 2019 UTC (4 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.159: +18 -11 lines
Diff to previous 1.159 (colored)

Some minor performance improvements - most notably, don't search the
input state table if the next character matches the same state as before.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Aug 5 06:42:02 2019 UTC (4 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.158: +8 -1 lines
Diff to previous 1.158 (colored)

Add support for the SD (scroll down) escape sequence, GitHub issue 1861.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Jun 27 15:17:41 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.157: +10 -3 lines
Diff to previous 1.157 (colored)

Add support for underscore colours with Setulc capability, mostly from
Kai Moschcau.

Revision 1.157 / (download) - annotate - [select for diffs], Thu Jun 20 13:40:22 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.156: +2 -2 lines
Diff to previous 1.156 (colored)

allow-rename and alternate-screen can be pane options.

Revision 1.156 / (download) - annotate - [select for diffs], Thu Jun 20 11:59:59 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.155: +11 -7 lines
Diff to previous 1.155 (colored)

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.

Revision 1.155 / (download) - annotate - [select for diffs], Thu May 30 20:54:03 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.154: +1 -2 lines
Diff to previous 1.154 (colored)

Remove a leftover abort and some fixes from cppcheck.

Revision 1.154 / (download) - annotate - [select for diffs], Mon May 20 05:35:46 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.153: +14 -12 lines
Diff to previous 1.153 (colored)

Fix the color space parameter in RGB SGR, from Brad Town.

Revision 1.153 / (download) - annotate - [select for diffs], Mon May 13 20:10:23 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.152: +7 -1 lines
Diff to previous 1.152 (colored)

Add support for overline (SGR 53), from Ricardo Banffy.

Revision 1.152 / (download) - annotate - [select for diffs], Tue May 7 10:25:15 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.151: +14 -13 lines
Diff to previous 1.151 (colored)

Do not use evbuffer_add_buffer because it is destructive and doesn't
work in newer libevent.

Revision 1.151 / (download) - annotate - [select for diffs], Fri May 3 20:44:24 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.150: +3 -1 lines
Diff to previous 1.150 (colored)

Allow panes to be empty (no command), output can be piped to them with
split-window or display-message -I.

Revision 1.150 / (download) - annotate - [select for diffs], Tue Apr 2 09:03:39 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.149: +2 -2 lines
Diff to previous 1.149 (colored)

Add an argument to copy commands to set the prefix for the buffer name,
allows buffers for different sessions to be named separately.

Revision 1.149 / (download) - annotate - [select for diffs], Thu Mar 14 09:53:52 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

Add a wrapper (struct style) around styles rather than using the
grid_cell directly. There will be some non-cell members soon.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Mar 14 06:33:43 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.147: +4 -3 lines
Diff to previous 1.147 (colored)

Add actual HPA (\033[`), the existing one is CHA. From Marc Reisner.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Mar 13 07:34:36 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)

Do not use origin for VPA.

Revision 1.146 / (download) - annotate - [select for diffs], Tue Mar 12 20:02:47 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.145: +39 -18 lines
Diff to previous 1.145 (colored)

DECRC and DECSC apparently need to preserve origin mode as well, based
on a fix from Marc Reisner.

Revision 1.145 / (download) - annotate - [select for diffs], Tue Mar 12 18:30:08 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored)

Fix HPA in origin mode.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Mar 12 18:26:57 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.143: +80 -71 lines
Diff to previous 1.143 (colored)

Tidy up a lot of &ictx->ctx by using a local variable.

Revision 1.143 / (download) - annotate - [select for diffs], Tue Mar 12 12:58:40 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.142: +1 -2 lines
Diff to previous 1.142 (colored)

Revert to not clearing history on RIS, apparently some bootloaders send
this and it doesn't really do any harm.

Revision 1.142 / (download) - annotate - [select for diffs], Tue Mar 12 11:16:50 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored)

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.

Revision 1.141 / (download) - annotate - [select for diffs], Tue Mar 12 07:39:27 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.140: +9 -1 lines
Diff to previous 1.140 (colored)

Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Dec 17 21:52:59 2018 UTC (5 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.139: +3 -2 lines
Diff to previous 1.139 (colored)

Fix parsing of empty colon-separated fields, reported by Siarhei Siniak.

Revision 1.139 / (download) - annotate - [select for diffs], Mon Nov 19 13:35:41 2018 UTC (5 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.138: +3 -1 lines
Diff to previous 1.138 (colored)

evbuffer_new and bufferevent_new can both fail (when malloc fails) and
return NULL. GitHub issue 1547.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Oct 18 08:04:14 2018 UTC (5 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.137: +86 -34 lines
Diff to previous 1.137 (colored)

Support OSC 52 ? to read the top buffer inside tmux (when set-clipboard
is changed to on), also add refresh-client -l to ask tmux to use the
same mechanism to get the clipboard from the terminal outside
tmux. GitHub issue 1477.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Oct 18 07:57:57 2018 UTC (5 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.136: +41 -7 lines
Diff to previous 1.136 (colored)

Support for extended underline styles on terminals which offer them,
enabled by adding the Smulx capability with terminal-overrides (add
something like ',vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Aug 16 14:04:03 2018 UTC (5 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

Add the KEYC_XTERM flag to all function keys that imply a modifier so
that they are correctly translated into xterm(1)-style keys. GitHub
issue 1437.

Revision 1.135 / (download) - annotate - [select for diffs], Tue Jul 31 10:32:19 2018 UTC (5 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.134: +2 -1 lines
Diff to previous 1.134 (colored)

Clear history on RIS like most other terminals do.

Revision 1.134 / (download) - annotate - [select for diffs], Tue Apr 10 11:20:15 2018 UTC (6 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.133: +17 -10 lines
Diff to previous 1.133 (colored)

A couple of fixes to the : form of SGR. Apparently there is an extra
argument that nobody knew about, so skip that if it exists. Also there
are a bunch of useless optional arguments at the end, so ignore those.

Revision 1.133 / (download) - annotate - [select for diffs], Fri Apr 6 09:09:38 2018 UTC (6 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

Fix link, from Eliran Gonen.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Mar 5 12:32:28 2018 UTC (6 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.131: +1 -2 lines
Diff to previous 1.131 (colored)

For some reason tmux treats SGR 10 as SGR 0. It has done since the first
version and I'm not sure why since no other terminal appears to. Change
to just ignore SGR 10 instead.

Revision 1.131 / (download) - annotate - [select for diffs], Mon Feb 19 21:20:10 2018 UTC (6 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.130: +227 -72 lines
Diff to previous 1.130 (colored)

Support ISO colon-separated SGR.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Jan 12 16:32:12 2018 UTC (6 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.129: +23 -99 lines
Diff to previous 1.129 (colored)

Simplify UTF-8 states down into one state.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Oct 5 13:29:18 2017 UTC (6 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.128: +23 -2 lines
Diff to previous 1.128 (colored)

Add support for the xterm(1) title stack, from Brad Town, GitHub issue
1075.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Sep 10 08:01:23 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

Apply timeout to CAN and RS which also wait for ST.

Revision 1.127 / (download) - annotate - [select for diffs], Tue Aug 29 09:28:45 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.126: +25 -2 lines
Diff to previous 1.126 (colored)

Support REP escape sequence (\033[b).

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jun 9 09:21:24 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.125: +2 -1 lines
Diff to previous 1.125 (colored)

Add a hook when the clipboard is set.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Jun 4 09:22:34 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.124: +50 -10 lines
Diff to previous 1.124 (colored)

Add a timeout to prevent the sequences which wait for a specific
terminator (OSC, APC and DCS) waiting forever, which helps to avoid
garbage (cat /dev/random) locking up panes completely. This (and the
last commit) prompted by a discussion with theo.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jun 4 09:02:36 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.123: +10 -5 lines
Diff to previous 1.123 (colored)

Be more strict about escape sequences that rename windows or set titles:
ignore any that not valid UTF-8 outright, and for good measure pass the
result through our UTF-8-aware vis(3).

Revision 1.123 / (download) - annotate - [select for diffs], Sat Jun 3 17:43:01 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.122: +10 -7 lines
Diff to previous 1.122 (colored)

Make set-clipboard a three-state option so tmux itself can ignore the
sequencess.

Revision 1.122 / (download) - annotate - [select for diffs], Sun May 28 23:23:40 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.121: +47 -3 lines
Diff to previous 1.121 (colored)

Support OSC 10 and 11 to set foreground and background colours, from
"bertnp" in GitHub issue 942.

Revision 1.121 / (download) - annotate - [select for diffs], Fri May 12 13:00:56 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.120: +7 -6 lines
Diff to previous 1.120 (colored)

Scrolling needs to use background colour.

Revision 1.120 / (download) - annotate - [select for diffs], Fri May 12 10:50:11 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.119: +3 -2 lines
Diff to previous 1.119 (colored)

ECH needs to use background colour.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Apr 22 08:33:28 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.118: +2 -2 lines
Diff to previous 1.118 (colored)

We need to collect UTF-8 characters so that width != 1 characters are
correctly flushed.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Mar 22 07:16:54 2017 UTC (7 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.117: +7 -1 lines
Diff to previous 1.117 (colored)

Add support for the strikethrough attribute (SGR 9), using the new smxx
terminfo capability. This means there are now nine attribute bits, so
anything above 0xff uses an extended cell.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Feb 19 07:55:11 2017 UTC (7 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.116: +4 -1 lines
Diff to previous 1.116 (colored)

Add SGR 28 to clear hidden flag.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Feb 16 12:56:01 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored)

There are buggy terminals out there that do not move the cursor to 0,0
after CSR, so invalidate the cursor position rather than assuming 0,0.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Feb 8 17:31:09 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.114: +6 -1 lines
Diff to previous 1.114 (colored)

Add support for scroll up escape sequence (CSI S) and use it when
possible instead of sending individual line feeds.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Feb 8 16:45:18 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.113: +12 -2 lines
Diff to previous 1.113 (colored)

Collect sequences of printable ASCII characters and process them
together instead of handling them one by one. This is significantly
faster. Sequences are terminated when we reach the end of the line, fill
the internal buffer, or a different character is seen by the input
parser (an escape sequence, or UTF-8).

Rather than writing collected sequences out immediately, hold them until
it is necessary (another screen modification, or we consume all
available data). This means we can discard changes that would have no
effect (for example, lines that would just be scrolled off the screen or
cleared). This reduces the total amount of data we write out to the
terminal - not important for fast terminals, but a big help with slow
(like xterm).

Revision 1.113 / (download) - annotate - [select for diffs], Wed Feb 8 15:49:29 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.112: +1 -2 lines
Diff to previous 1.112 (colored)

Some other tidying bits.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Feb 6 22:05:11 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.111: +2 -1 lines
Diff to previous 1.111 (colored)

Use DECFRA on VT420 compatible terminals (so, xterm) and ED on all
others for clearing panes.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Feb 6 19:26:49 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

Add BCE for clear to start of screen, which was somehow missed.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Feb 6 13:25:15 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.109: +7 -4 lines
Diff to previous 1.109 (colored)

Fix logging of CSI parameters.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Feb 1 09:55:07 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.108: +6 -1 lines
Diff to previous 1.108 (colored)

Implement "all event" (1003) mouse mode but in a way that works. The
main issue is that if we have two panes, A with 1002 and B with 1003, we
need to set 1003 outside tmux in order to get all the mouse events, but
then we need to suppress the ones that pane A doesn't want. This is easy
in SGR mouse mode, because buttons == 3 is only used for movement events
(for other events the trailing m/M marks a release instead), but in
normal mouse mode we can't tell so easily. So for that, look at the
previous event instead - if it is drag+release as well, then the current
event is a movement event.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Jan 22 19:00:01 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.107: +42 -1 lines
Diff to previous 1.107 (colored)

Accept the OSC 52 escape sequence inside tmux to add a new buffer, from
harry dot gindi at live dot com.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Jan 7 15:28:13 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.106: +82 -1 lines
Diff to previous 1.106 (colored)

Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Dec 9 21:39:27 2016 UTC (7 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

Spacing nits.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Oct 13 20:27:27 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.104: +18 -12 lines
Diff to previous 1.104 (colored)

Add support for BCE (background colour erase). This makes various escape
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank
cells using the current background colour rather than the default
colour.

On modern systems BCE doesn't really have many benefits, but most other
terminals now support it, some (lazy) applications rely on it, and it is
not hard to include now that we have pane background colours anyway.

Mostly written by Sean Haugh.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 3 22:52:11 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.103: +130 -129 lines
Diff to previous 1.103 (colored)

Remove some dead code in cmd-move-window.c and make a load of local
functions static.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Sep 28 14:40:07 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Couple of vasprintf -> xvasprintf.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jul 15 00:42:56 2016 UTC (7 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.101: +11 -34 lines
Diff to previous 1.101 (colored)

Instead of representing colours in several different forms with various
cell flags, convert to use an int with flags marking 256 or RGB colours
in the top byte (except in cells, which we don't want to make any
bigger). From Brad Town.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 2 15:36:02 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.100: +9 -3 lines
Diff to previous 1.100 (colored)

Handle wcwidth() and mbtowc() failures in better style and drop
characters where we can't find the width (wcwidth() fails) on input, the
same as we drop invalid UTF-8. Suggested by schwarze@.

Revision 1.100 / (download) - annotate - [select for diffs], Fri Jan 29 11:13:56 2016 UTC (8 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.99: +22 -15 lines
Diff to previous 1.99 (colored)

Support for RGB colour, using the extended cell mechanism to avoid
wasting unnecessary space. The 'Tc' flag must be set in the external
TERM entry (using terminal-overrides or a custom terminfo entry), if not
tmux will map to the closest of the 256 or 16 colour palettes.

Mostly from Suraj N Kurapati, based on a diff originally by someone else.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Jan 15 11:31:47 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

A couple of missing printflike attributes, from Andrey Starodubtsev.

Revision 1.97 / (download) - annotate - [select for diffs], Wed Dec 16 22:05:35 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.96: +24 -22 lines
Diff to previous 1.96 (colored)

send-keys -R should reset the input parser to ground state (so it can be
used to escape from, for example, printf '\033]2;').

Revision 1.96 / (download) - annotate - [select for diffs], Mon Nov 23 23:47:57 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.95: +7 -1 lines
Diff to previous 1.95 (colored)

Partly revert previous, it is harmless to keep support for UTF-8 mouse
mode inside tmux, just no longer support it for tmux itself.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Nov 23 20:53:09 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.94: +1 -7 lines
Diff to previous 1.94 (colored)

Remove support for the UTF-8 mouse extension. This was a briefly used,
poor idea that was fairly quickly replaced by SGR mouse input (which is
now widespread). It is impossible to tell the difference between UTF-8
and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux
has not handled it correctly in any case; and it is ridiculous to have
three different forms of mouse input.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Nov 18 13:06:54 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

Sync the entire xmalloc.[ch] with the other users, but with the addition
of xrealloc, xvasprintf, xvsnprintf.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Nov 14 12:20:19 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

The character is an int so use %x not %hhx.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Nov 14 11:45:43 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

All these return values from utf8_* are confusing, use an enum.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Nov 14 10:56:31 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.90: +9 -6 lines
Diff to previous 1.90 (colored)

Be more strict about invalid UTF-8.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Nov 14 08:25:12 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.89: +16 -7 lines
Diff to previous 1.89 (colored)

Log more of UTF-8 input.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Nov 13 08:09:28 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Long overdue change to the way we store cells in the grid: now, instead
of storing a full grid_cell with UTF-8 data and everything, store a new
type grid_cell_entry. This can either be the cell itself (for ASCII
cells), or an offset into an extended array (per line) for UTF-8
data.

This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the
majority for most users) without the complexity of the shadow array we
had before. Grid memory without any UTF-8 is about half.

The disadvantage that cells can no longer be modified in place and need
to be copied out of the grid and back but it turned out to be lot less
complicated than I expected.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Nov 12 11:09:11 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.87: +1 -6 lines
Diff to previous 1.87 (colored)

Nuke the utf8 and status-utf8 options and make tmux only a UTF-8
terminal. We still support non-UTF-8 terminals outside tmux, but inside
it is always UTF-8 (as when the utf8 and status-utf8 options were on).

Revision 1.87 / (download) - annotate - [select for diffs], Tue Oct 27 15:58:42 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Move struct options into options.c.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Sep 2 17:52:57 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

Log pane which received input data.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Sep 1 19:50:09 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Tweak some error messages/comments.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Sep 1 19:16:00 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.83: +5 -3 lines
Diff to previous 1.83 (colored)

Log the whole new input buffer once rather than each byte.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Aug 29 08:30:54 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.82: +3 -8 lines
Diff to previous 1.82 (colored)

Move alerts onto events rather than checking every loop.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Aug 28 07:49:24 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.81: +3 -1 lines
Diff to previous 1.81 (colored)

Only do the automatic-rename dance if the pane has changed (seen output,
or new active pane).

Revision 1.81 / (download) - annotate - [select for diffs], Tue Aug 25 15:00:05 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.80: +9 -4 lines
Diff to previous 1.80 (colored)

When searching for tabs, start from screen width, fixes out-of-bounds
read found by Kuang-che Wu.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Jul 13 18:45:18 2015 UTC (8 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.79: +2 -5 lines
Diff to previous 1.79 (colored)

Reset G0/G1 state when resetting everything else with send-keys -R.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Jun 15 10:58:01 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.78: +5 -1 lines
Diff to previous 1.78 (colored)

Add window_activity format, from Thomas Adam based on a diff originally
from propos6 at gmail dot com.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jun 5 22:33:39 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.77: +69 -24 lines
Diff to previous 1.77 (colored)

Handle the RGB colour escape sequence (\033[38;2;<r>;<g>;<b>m and 48;2)
like xterm(1) does, by mapping to the nearest in the 256 colour palette.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Jun 4 09:42:29 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

teminal -> terminal, from Corey Farwell.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 1 13:59:57 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

Missing t at end of response, from Vincent Bernat.

Revision 1.75 / (download) - annotate - [select for diffs], Mon May 11 10:10:16 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.74: +4 -14 lines
Diff to previous 1.74 (colored)

Remove the c0-* options which never really worked satisfactorily. Going
to try something else...

Revision 1.74 / (download) - annotate - [select for diffs], Fri May 8 16:18:04 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.73: +87 -8 lines
Diff to previous 1.73 (colored)

Move input parser structs into input.c (removing fairly useless
saved_cursor_[xy] formats as a side-effect).

Revision 1.73 / (download) - annotate - [select for diffs], Tue Mar 31 17:45:10 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

Fix some format specifier nits, from Ben Boeckel.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jan 20 08:18:04 2015 UTC (9 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.71: +13 -1 lines
Diff to previous 1.71 (colored)

Support blinking cursor mode, both the xterm CSI ?12 h/l and (the
backwards) screen CSI 34 h/l. From Guanpeng Xu.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Oct 8 17:35:58 2014 UTC (9 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Add xreallocarray and remove nmemb argument from xrealloc.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Aug 9 07:33:37 2014 UTC (9 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.69: +1 -6 lines
Diff to previous 1.69 (colored)

Remove support for the continuous reporting "any" mouse mode which never
really worked properly and is rarely used.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jun 6 13:21:41 2014 UTC (9 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.68: +61 -43 lines
Diff to previous 1.68 (colored)

Properly track switching G0 and G1 modes between US-ASCII and VT100 line
drawing rather than just treating them as SO and SI.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 5 22:14:29 2014 UTC (9 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Reset properly when c0-change-trigger is increased from zero so panes
don't get stuck.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Apr 17 12:43:38 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.66: +41 -16 lines
Diff to previous 1.66 (colored)

Don't limit the DCS buffer to 256 bytes, expand it as needed. Requested
by Suraj Kurapati.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Mar 31 21:32:00 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

Change secondary device attributes response to \033[>84;0;0c which is
unique for tmux.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 31 11:17:20 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.64: +57 -2 lines
Diff to previous 1.64 (colored)

Add \033[18t window operations from J Raynor.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Oct 10 11:57:14 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.63: +100 -53 lines
Diff to previous 1.63 (colored)

Accept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from
Hayaki Saito.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 23 12:51:28 2013 UTC (10 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Always push a focus event when the application turns it on, prompted by
discussion with Hayaki Saito a while ago.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Mar 24 09:18:16 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.61: +10 -1 lines
Diff to previous 1.61 (colored)

Add support for focus notifications when tmux pane changes, based on
work by Aaron Jensen.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Mar 22 10:36:53 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.60: +7 -1 lines
Diff to previous 1.60 (colored)

Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 22 10:33:50 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.59: +7 -1 lines
Diff to previous 1.59 (colored)

Support the latest theory for mouse input, this is enabled/disabled with
SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or
\033[b;x;ym. From Egmont Koblinger.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 21 18:47:56 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.58: +20 -19 lines
Diff to previous 1.58 (colored)

Instead of loads of little screen_write_*_on and off functions which
just change mode flags, just have screen_write_mode_set and
screen_write_mode_clear.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 18 02:16:21 2013 UTC (11 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.57: +5 -6 lines
Diff to previous 1.57 (colored)

Rather than having two grids for each pane, one for ASCII and one for
UTF-8, collapse the two together. Simplifies the code at the expense of
more memory (which can probably be reduced again later).

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 17 20:30:43 2013 UTC (11 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.56: +4 -3 lines
Diff to previous 1.56 (colored)

Do not allow cursor colours to be set beginning with ? as that will
report the colour, from Hayaki Saito.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jan 15 23:18:55 2013 UTC (11 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.55: +6 -1 lines
Diff to previous 1.55 (colored)

Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 27 20:08:42 2012 UTC (11 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.54: +11 -3 lines
Diff to previous 1.54 (colored)

Support the 47 and 1047 SM and RM sequences (alternate screen without
cursor), requested by I forget who ages ago.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 25 07:41:22 2012 UTC (11 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

Add notification for input from a pane, from George Nachman.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jul 10 11:53:01 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

xfree is not particularly helpful, remove it. From Thomas Adam.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 25 21:12:49 2012 UTC (12 years ago) by nicm
Branch: MAIN
Changes since 1.51: +32 -9 lines
Diff to previous 1.51 (colored)

Add a buffer with all input from last ground state, will be used for
control mode. From George Nachman.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Mar 20 11:01:00 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.50: +14 -4 lines
Diff to previous 1.50 (colored)

Add a simple form of output rate limiting by counting the number of
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.

This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).

After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 15 10:05:49 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.49: +13 -1 lines
Diff to previous 1.49 (colored)

Respond to secondary DA requests.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 3 09:43:22 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.48: +7 -1 lines
Diff to previous 1.48 (colored)

Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if
this is used and the application has requested bracketed pastes, then
tmux surrounds the pasted text by \033[200~ and \033[201~. Applications
like vim can (apparently) use this to avoid, for example, indenting the
text. From Ailin Nemui.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Feb 2 00:10:12 2012 UTC (12 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.47: +2 -3 lines
Diff to previous 1.47 (colored)

Move window name changes into wrapper function window_set_name, from
George Nachman.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jan 21 08:23:12 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Add strings to allow the aixterm bright colours to be used when
configuring colours, requested by Elliott Cable a few months ago.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jan 21 08:12:03 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

One day I will actually fix ALL the warnings before I commit...

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jan 21 08:10:21 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.44: +2 -12 lines
Diff to previous 1.44 (colored)

Add a -R flag to send-keys to reset the terminal. Written ages ago and
Suggested by someone, I forget who.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 20 19:15:40 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored)

Add an option to disable the window rename escape sequence, from Romain
Francoise.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 29 08:06:24 2011 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.42: +13 -1 lines
Diff to previous 1.42 (colored)

Add CNL and CPL escape sequences.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 27 14:06:19 2011 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.41: +14 -1 lines
Diff to previous 1.41 (colored)

Add \033[s and \033[u to save and restore cursor position.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 23 10:16:14 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.40: +12 -1 lines
Diff to previous 1.40 (colored)

Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jul 8 06:28:05 2011 UTC (12 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Fix a couple of comments.

Revision 1.39 / (download) - annotate - [select for diffs], Fri May 20 19:17:39 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.38: +7 -1 lines
Diff to previous 1.38 (colored)

Support DECSCUSR sequence to set the cursor style with two new
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 20 19:03:58 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.37: +30 -8 lines
Diff to previous 1.37 (colored)

Support xterm(1) cursor colour change sequences through terminfo(5) Cc
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Mar 7 23:46:27 2011 UTC (13 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.36: +49 -24 lines
Diff to previous 1.36 (colored)

Support passing through escape sequences to the underlying terminal by
using DCS with a "tmux;" prefix. Escape characters in the sequences must
be doubled. For example:

$ printf '\033Ptmux;\033\033]12;red\007\033\\'

Will pass \033]12;red\007 to the terminal (and change the cursor colour
in xterm). From Kevin Goodsell.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 3 08:53:14 2011 UTC (13 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Fix a typo that meant we did not reset the background colour when it was
omitted in a 256-colour SGR ([48;5m). From Yusuke ENDOH.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 28 20:39:22 2011 UTC (13 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.34: +8 -5 lines
Diff to previous 1.34 (colored)

Use input_clear to reset the APC, DCS, OSC state or it could be reused
improperly by a later state. From Kevin Goodsell.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 15 00:16:00 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.33: +1 -5 lines
Diff to previous 1.33 (colored)

Mouse highlight mode (1001) requires a program to cooperate so
supporting it through tmux is not as easy as this, remove it for now.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 3 23:35:21 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.32: +7 -1 lines
Diff to previous 1.32 (colored)

Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
and supports larger terminals than the older way.

If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.

With help and based on code from hsim at gmx.li.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 29 21:49:06 2010 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.31: +19 -4 lines
Diff to previous 1.31 (colored)

Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Dec 23 20:18:39 2010 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

Style tweaks.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 6 22:51:02 2010 UTC (13 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Apr 17 23:31:09 2010 UTC (14 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Fix typo in escape state table leading to fatal() when \033} or \033~
was entered, from Chris Johnsen.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 22 19:02:54 2010 UTC (14 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.27: +1148 -1157 lines
Diff to previous 1.27 (colored)

New input parser based on http://vt100.net/emu/dec_ansi_parser.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 8 00:14:38 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.26: +7 -1 lines
Diff to previous 1.26 (colored)

Add an option to disable the smcup/rmcup alternate screen behaviour inside
tmux. From clemens fischer.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 6 23:13:52 2010 UTC (14 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Correctly clear 256-colour flag for aixterm colours.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 14 21:33:38 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.24: +3 -5 lines
Diff to previous 1.24 (colored)

Pass through the aixterm bright colours if the terminal supports them (>= 16
colours).

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 3 22:50:10 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.23: +10 -10 lines
Diff to previous 1.23 (colored)

Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 27 09:41:03 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Add a couple of comments.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 4 22:43:11 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.21: +14 -12 lines
Diff to previous 1.21 (colored)

Convert the window pane (pty master side) fd over to use a bufferevent.

The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 26 21:42:04 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

tabs are better; ok nicm

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 23 15:48:39 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.19: +23 -1 lines
Diff to previous 1.19 (colored)

Support the bright fg/bg colour SGR 90-97 and 100-107.

Reported by Tim Allen.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 20 22:17:33 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

%zu not %u, doh.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 20 19:18:28 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.17: +9 -33 lines
Diff to previous 1.17 (colored)

Try to reduce the UTF-8 mess.

Get rid of passing around u_char[4]s and define a struct utf8_data which has
character data, size (sequence length) and width. Move UTF-8 character
collection into two functions utf8_open/utf8_append in utf8.c which fill in
this struct and use these functions from input.c and the various functions in
screen-write.c.

Space for rather more data than is necessary for one UTF-8 sequence is in the
utf8_data struct because screen_write_copy is still nasty and needs to reinject
the character (after combining) into screen_write_cell.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 13 15:23:13 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.16: +9 -1 lines
Diff to previous 1.16 (colored)

Handle DECCOLM by just emulating its side-effect of clearing the screen.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 12 16:59:55 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

When backspace is received at the beginning of a line and the previous line was
wrapped, move the cursor back up to the end of the previous line.

Another one of the forgotten persons requested this quite a while ago (I need
to start noting names on todo items...) when it was quite hard to
implement. Now it is easy and I don't see it can do any harm, so hey presto...

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 20 10:48:25 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

Nuke unused variable.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Aug 19 17:00:31 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.13: +22 -1 lines
Diff to previous 1.13 (colored)

Handle the device attributes (DA) escape sequence.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 18 21:41:13 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

Instead of just checking for an empty buffer, which may not be the case if
there is unconsumed data, save the previous size and use it instead. This means
that activity monitoring should work in this (unlikely) event.

Also remove a debugging statement that no longer seems necessary.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 8 15:57:49 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Add a flags member to the grid_line struct and use it to differentiate lines
wrapped at the screen edge from those terminated by a newline. Then use this
when copying to combine wrapped lines together into one.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 7 00:12:13 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Using the alternative screen (smcup/rmcup) should also preserve the current
colours and attributes. Found thanks to a report from Taylor Venable.

While here also nuke a couple of extra blank lines.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 21 19:54:22 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.9: +3 -5 lines
Diff to previous 1.9 (colored)

Make some functions which return unused values void (mostly found by lint) and
tweak a redundant expression in window_pane_set_mode.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 13 10:43:52 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.8: +73 -3 lines
Diff to previous 1.8 (colored)

Support "alternate screen" mode (terminfo smcup/rmcup) typically used by full
screen interactive programs to preserve the screen contents. When activated, it
saves a copy of the visible grid and disables scrolling into and resizing out
of the history; when deactivated the visible data is restored and the history
reenabled.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 4 21:02:21 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.7: +27 -1 lines
Diff to previous 1.7 (colored)

Implement the CBT (backward tab) sequence (\033[Z).

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 4 18:48:24 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.6: +47 -8 lines
Diff to previous 1.6 (colored)

Proper support for tab stops (\033H etc), using a bitstring(3). Makes another
vttest test happy.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 4 14:42:14 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.5: +15 -9 lines
Diff to previous 1.5 (colored)

Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actually
do cancel the sequence, and tweak to make the code more clear.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 4 14:24:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.4: +7 -1 lines
Diff to previous 1.4 (colored)

Oops, CAN and SUB should abort the sequence (return to first state), not remain
in the same state.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 4 14:15:50 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.3: +39 -8 lines
Diff to previous 1.3 (colored)

More input compatibility love. Support C0 within escape sequences, and the C0
control character VT (vertical tab, \013), which is treated as LF like
VT102. Makes another vttest happy.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 3 23:30:40 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.2: +23 -6 lines
Diff to previous 1.2 (colored)

Implement the DEC alignment test. With the last change this is enough for the
first cursor test in vttest (in ports) to pass; it still shops a few more
problems though.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 3 19:33:04 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Pass window titles through vis(1). <0x20 is dropped anyway by the input state
machine but top-bit-set nonprintables could cause trouble, and they are neater
like this anyway.

Suggested by deraadt a few days ago.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 22:58:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.

ok deraadt pirofti

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.