Tiago Cunha
2acf349d4e
Sync OpenBSD patchset 346:
...
Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the client
into the server.
This is another (the second of four) protocol version changes coming this
morning, so again the server should be killed before upgrading.
2009-09-23 14:44:02 +00:00
Tiago Cunha
acedc2dcf2
Sync OpenBSD patchset 345:
...
Don't attempt to open() the tty path, rely on the client sending its stdin fd
with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init
instead of tty_open to prevent them leaking into child processes if any are
created between the two calls.
This bumps the protocol version, so the tmux server should be killed before
upgrading.
2009-09-23 14:39:30 +00:00
Tiago Cunha
c40d8cbda4
Sync OpenBSD patchset 344:
...
Be more careful about what flags are cleared when opening the terminal,
otherwise the opened/started flags are cleared and the terminal never released.
2009-09-23 14:33:13 +00:00
Nicholas Marriott
07bd160861
+.
2009-09-23 12:07:08 +00:00
Nicholas Marriott
2c9d4dfdd4
Tweak tparm() to make Solaris' backward userland happy and remove the -I mess
...
in configure which tried to deal with the fallout from their horrible package
management.
2009-09-22 19:20:08 +00:00
Tiago Cunha
df7b68480c
Sync OpenBSD patchset 343:
...
Permit multiple prefix keys to be defined, separated by commas, for example:
set -g prefix ^a,^b
Any key in the list acts as the prefix. The send-prefix command always sends
the first key in the list.
2009-09-22 14:22:21 +00:00
Tiago Cunha
31ccf2f813
Sync OpenBSD patchset 342:
...
Use KEYC_NONE constant instead of 0 on init.
2009-09-22 14:06:40 +00:00
Tiago Cunha
480211f0ee
Sync OpenBSD patchset 341:
...
Nuke -i option which isn't used anymore.
2009-09-22 14:03:11 +00:00
Tiago Cunha
59e65cbda2
Sync OpenBSD patchset 340:
...
Use option print function for info messages as well.
2009-09-22 13:59:46 +00:00
Tiago Cunha
649b7c132d
Sync OpenBSD patchset 339:
...
Move common code from show-options and show-window-options into a function.
2009-09-22 13:56:02 +00:00
Tiago Cunha
b6bc8a6828
Sync OpenBSD patchset 338:
...
zap trailing whitespace;
2009-09-22 13:51:24 +00:00
Tiago Cunha
f2d249fdc7
Sync OpenBSD patchset 337:
...
Drop tiny union from option struct.
2009-09-22 13:49:13 +00:00
Tiago Cunha
c28d4e41cf
Sync OpenBSD patchset 336:
...
Key options were implemented as a number so these struct members are unused.
2009-09-22 13:45:06 +00:00
Nicholas Marriott
1572e483c2
Done.
2009-09-22 11:40:11 +00:00
Tiago Cunha
f8ea4f44e8
Update.
2009-09-20 22:20:51 +00:00
Tiago Cunha
e3dcc5327a
Sync OpenBSD patchset 335:
...
run-shell command to run a shell command without opening a window, sending
stdout to output mode.
2009-09-20 22:20:10 +00:00
Tiago Cunha
bd24bdd411
Sync OpenBSD patchset 334:
...
Nuke unused variables and fix stupid error message.
2009-09-20 22:17:03 +00:00
Tiago Cunha
7335ef5792
Sync OpenBSD patchset 333:
...
Move some common and untidy code for window link/unlink into generic functions
instead of duplicating it in move/link window..
2009-09-20 22:15:32 +00:00
Tiago Cunha
3266fb5441
Sync OpenBSD patchset 332:
...
Regularise some fatal messages.
2009-09-20 22:11:27 +00:00
Tiago Cunha
ab96772436
Delete backup files in the compat directory, as well.
2009-09-20 22:06:34 +00:00
Nicholas Marriott
c7ace08193
Now working on 1.1.
2009-09-20 19:01:01 +00:00
Nicholas Marriott
f82598ca2d
1.0.
2009-09-20 18:54:21 +00:00
Nicholas Marriott
b29d4affd8
Don't try to use tio if it is NULL.
2009-09-20 18:31:16 +00:00
Nicholas Marriott
6594af3729
These are done.
2009-09-20 17:52:39 +00:00
Nicholas Marriott
6df9ac7c37
FreeBSD tree.h is fine.
2009-09-20 17:51:54 +00:00
Tiago Cunha
73f58b90a0
Update.
2009-09-19 18:53:56 +00:00
Tiago Cunha
23d7ed3187
Sync OpenBSD patchset 331:
...
New option, set-titles-string, to allow the window title to be specified (as
for status-left/right) if set-titles is on. Also only update the title when the
status line is being redrawn.
2009-09-19 18:53:01 +00:00
Nicholas Marriott
a2e03ce3cb
Add some bits.
2009-09-18 14:19:18 +00:00
Nicholas Marriott
15b643fc11
Sync from OpenBSD:
...
==
Rather than constructing an entire termios struct from ttydefaults.h, just let
forkpty do it and then alter the bits that should be changed after fork. A
little neater and more portable.
==
This should fix problems caused by glibc's broken ttydefaults.h file.
2009-09-16 12:36:28 +00:00
Tiago Cunha
150fba5ecd
Sync OpenBSD patchset 329:
...
Enclose repeated buffer draining code in a new msgbuf_drain()
function, which is additionally exported for use by others.
From nicm@, who reminded me that tmux is now using buffer.c, too.
2009-09-15 23:59:40 +00:00
Tiago Cunha
c507bf25de
Sync OpenBSD patchset 328:
...
Stick line length to what is actually used (removing an optimization that
allowed it to be bigger), and use clear line/EOL sequences rather than spaces
in copy/scroll mode.
This fixes xterm copy/paste from tmux which treats trailing spaces differently
from clearing a line with the escape sequences. Reported by martynas@.
2009-09-15 23:54:57 +00:00
Tiago Cunha
dbaa28492e
Sync OpenBSD patchset 327:
...
The default terminal size should be 80x24, not 80x25.
2009-09-15 23:52:30 +00:00
Tiago Cunha
960cd3da69
Sync OpenBSD patchset 326:
...
Nuke unused server_client_index function, pointed out by martynas@.
2009-09-15 23:50:32 +00:00
Nicholas Marriott
82d6bab57c
+.
2009-09-15 19:02:35 +00:00
Nicholas Marriott
24baf14e53
Update.
2009-09-15 07:43:25 +00:00
Tiago Cunha
5fcf7149d4
Always set VERASE to \177.
2009-09-13 20:56:52 +00:00
Tiago Cunha
4d4ec52df8
Zap unused variables.
2009-09-13 20:43:21 +00:00
Tiago Cunha
69e7f4af19
Sync OpenBSD patchset 324:
...
Tidy some common code for destroying sessions into a new function.
2009-09-13 20:37:37 +00:00
Tiago Cunha
61990deb36
Sync OpenBSD patchset 323:
...
tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for
new windows.
2009-09-13 20:30:12 +00:00
Tiago Cunha
0ec1ce005c
Sync OpenBSD patchset 322:
...
Permit options such as status-bg to be configured using the entire 256 colour
palette by setting "colour0" to "colour255".
2009-09-11 14:13:52 +00:00
Tiago Cunha
f0cb57d8ac
Sync OpenBSD patchset 321:
...
While the display-panes indicator is on screen, make the number keys select the
pane with that index.
2009-09-08 00:01:11 +00:00
Tiago Cunha
930f67f474
Sync OpenBSD patchset 320:
...
Reference count clients and sessions rather than relying on a saved index for
cmd-choose-*.
2009-09-07 23:59:19 +00:00
Tiago Cunha
1de812d5a8
Sync OpenBSD patchset 319:
...
Tiny cleanup.
ok nicm@
2009-09-07 23:50:07 +00:00
Tiago Cunha
c272de7cba
Sync OpenBSD patchset 318:
...
Give each paste buffer a size member instead of requiring them to be
zero-terminated.
2009-09-07 23:48:54 +00:00
Tiago Cunha
5edc465802
Sync OpenBSD patchset 317:
...
Permit embedded colour and attributes in status-left and status-right using new
#[] special characters, for example #[fg=red,bg=blue,blink].
2009-09-07 23:37:48 +00:00
Nicholas Marriott
ec195a4e15
+.
2009-09-07 15:41:52 +00:00
Tiago Cunha
bb2d57dcbf
Sync OpenBSD patchset 316:
...
Only redraw all clients once when the backoff timer expires rather than every
second all the time.
Reported by Simon Nicolussi.
2009-09-05 19:03:41 +00:00
Tiago Cunha
02c4760ace
Sync OpenBSD patchset 315:
...
Tidy main and make it a bit easier to read.
2009-09-04 20:37:40 +00:00
Tiago Cunha
51a1f25247
Sync OpenBSD patchset 314:
...
Tell the user when sleeping due to password backoff.
2009-09-04 20:27:06 +00:00
Nicholas Marriott
895efe7b05
Solaris needs a knob twiddled to get POSIX getpwduid_r.
2009-09-04 14:48:25 +00:00