Commit Graph

637 Commits

Author SHA1 Message Date
cc6c6edb6f Merge branch 'obsd-master' 2017-03-13 18:01:13 +00:00
8e9b10062b Log where panes are created. 2017-03-13 17:20:11 +00:00
48a3dba6b9 Merge branch 'obsd-master' 2017-02-27 14:01:20 +00:00
e741a0bcd7 If splitw -b is used, insert the new pane before the current one in the
pane list. This means the numbering is in order (for example for
display-panes) and fixes a problem with redrawing the active pane
borders.
2017-02-27 13:07:57 +00:00
14dc2acc25 Merge branch 'obsd-master' 2017-02-22 10:01:12 +00:00
0414b1fc78 Minor bits: fix an array size, add comment, make grid_cell_entry static. 2017-02-22 09:01:32 +00:00
a9a0039be4 Merge branch 'obsd-master' 2017-02-08 10:01:22 +00:00
35a0606de1 Remove event watermarks, don't work well enough to be worth it. 2017-02-08 08:25:12 +00:00
f1282a683d Merge branch 'obsd-master' 2017-01-24 14:01:15 +00:00
3d74e89a39 Shorten a long line, and don't leak buffer in paste_add if size is zero. 2017-01-24 13:28:33 +00:00
b3a724f30c Merge branch 'obsd-master'
Conflicts:
	Makefile
	tmux.c
2017-01-23 12:20:43 +00:00
98e7fbb2ac Open /dev/ptm before pledge() and save it to be used for PTMGET later
(this means inlining forkpty()).

ok deraadt
2017-01-23 10:09:43 +00:00
1eb9500644 Merge branch 'obsd-master' 2017-01-12 12:01:10 +00:00
dad3090d32 Put all palette functions together in the file. 2017-01-12 10:15:55 +00:00
4a76861925 Merge branch 'obsd-master' 2017-01-12 02:01:11 +00:00
0752fdaf6a Erm the aixterm colours should start at 8, not 7. 2017-01-12 00:24:28 +00:00
9e786030df Fix setting the palette of aixterm colours (90-97). 2017-01-12 00:19:32 +00:00
29e64a8c64 Merge branch 'obsd-master' 2017-01-07 16:01:17 +00:00
314e933914 Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
2017-01-07 15:28:13 +00:00
0f5b7814b5 Merge branch 'obsd-master' 2016-11-16 10:01:10 +00:00
5636d38a9d Initialize modeprefix to 1 properly in window_pane_create, from Artem Fokin. 2016-11-16 09:22:16 +00:00
12c49fa3bd Merge branch 'obsd-master' 2016-11-16 02:01:11 +00:00
e88b74350f The target validity check used window_pane_visible but that may be false
if the pane is zoomed, so instead add a new function to just check if
the pane is actually on screen (most commands still want to accept panes
invisible by zoom). Also reject panes outside the window for various
special targets. Problem reported by Sean Haugh.
2016-11-16 00:24:03 +00:00
28a31201d3 Merge branch 'obsd-master' 2016-10-19 12:01:11 +01:00
899e629bf0 Alerts are too slow, so rather than walking all sessions and windows,
add a link of winlinks to each window and a pointer to the session to
each winlink. Also rewrite the alerts processing to return to the old
behaviour (alert in any window sets the flag on any winlink).
2016-10-19 09:22:07 +00:00
b3ab39c4d9 Merge branch 'obsd-master' 2016-10-18 10:01:11 +01:00
c2f88373e7 Store the right size in the pipe offset for pipe-pane. 2016-10-18 07:38:16 +00:00
d54e990c4f Merge branch 'obsd-master' 2016-10-17 00:01:11 +01:00
41e633acf5 Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
2016-10-16 22:06:40 +00:00
59d1147469 Merge branch 'obsd-master' 2016-10-15 12:01:14 +01:00
e7990375cb Give window_create and window_create1 better names. 2016-10-15 09:27:52 +00:00
ad5a561adb Merge branch 'obsd-master' 2016-10-13 22:01:12 +01:00
4179b42424 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.
2016-10-13 20:27:27 +00:00
b9dc855016 Merge branch 'obsd-master'
Conflicts:
	format.c
	osdep-openbsd.c
2016-10-12 09:45:49 +01:00
e45401846f Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
76d6d3641f Fundamental change to how copy mode key bindings work:
The vi-copy and emacs-copy mode key tables are gone, and instead copy
mode commands are bound in one of two normal key tables ("copy-mode" or
"copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So:

    bind -temacs-copy C-Up scroll-up
    bind -temacs-copy -R5 WheelUpPane scroll-up

Becomes:

    bind -Tcopy-mode C-Up send -X scroll-up
    bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up

This allows the full command parser and command set to be used - for
example, we can use the normal command prompt for searching, jumping,
and so on instead of a custom one:

    bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'"

command-prompt also gets a -1 option to only require on key press, which
is needed for jumping.

The plan is to get rid of mode keys entirely, so more to come eventually.
2016-10-11 07:23:34 +00:00
27591570c4 Merge branch 'obsd-master' 2016-09-28 10:01:11 +01:00
acacb718e5 Rate limit TIOCSWINSZ on a timer to avoid programs getting hammered with
SIGWINCH when the size changes rapidly. To help a problem reported by
Rui Pinheiro.
2016-09-28 08:30:44 +00:00
895f1d93d5 Merge branch 'obsd-master' 2016-09-16 16:01:16 +01:00
eb50e7a2c8 Swap watermarks from high (4096) to low (128) when we get full buffers
into the read callback several times in succession; swap back when we
see empty buffers several times. This hopefully limits how much programs
that print a lot for a long period can monopolize tmux (like large, fast
compiling), without penalizing programs that print a lot briefly (like
most curses applications). Helps a lot for me, the actual numbers may
need tweaking later.
2016-09-16 13:43:41 +00:00
a24260bb23 Merge branch 'obsd-master' 2016-07-15 12:01:10 +01:00
9436a31603 Tweak output of environment logging. 2016-07-15 09:52:34 +00:00
1718420c48 Log environment to new panes. 2016-07-15 09:28:32 +00:00
25e128d398 Remove duplicate daemon.c and time.h. 2016-06-27 10:57:02 +01:00
93f42d360b Merge branch 'obsd-master' 2016-06-16 14:01:11 +01:00
325cbe90d9 Allow a command to be specified to display-panes, similar to
command-prompt, rather than always just selecting the pane.
2016-06-16 10:55:47 +00:00
d35a9ac5f2 Linux: <time.h> 2016-06-16 11:43:05 +01:00
5c12230a08 Merge branch 'obsd-master' 2016-06-15 12:01:11 +01:00
bee3e3e28d Copy mode needs to keep the original grid intact so it can copy from it
if needed, so it disables reading from the pane. This can be problem
with some programs. So make tmux automatically exit all modes after 180
seconds of inactivity and if there is pending output.
2016-06-15 09:13:46 +00:00
cc096ae929 Merge branch 'obsd-master' 2016-06-06 10:01:11 +01:00