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
Tiago Cunha
83f5581da4
Sync OpenBSD patchset 313:
...
Fix a race condition when asking a client to take over the terminal (switching
to a different poll loop):
If a MSG_READY was followed very quickly by a MSG_EXIT (for example if doing
"tmux new 'exit'"), both messages could be read as part of the same imsg_read
in the first client poll loop. The MSG_READY would then cause a switch to the
second client loop, which would immediately call poll(2) again, causing the
client to hang forever waiting for an exit message that it already had.
Change to call imsg_get to process any existing messages before polling.
2009-09-03 21:06:30 +00:00
Tiago Cunha
884ebb6dab
Sync OpenBSD patchset 309:
...
Accept -l to make it easier for people who use tmux as a login shell to use
$SHELL. Originally from martynas@, tweaked by me.
2009-09-03 21:02:55 +00:00
Tiago Cunha
c274551db6
- Make it compile on operating systems other than BSD due to OpenBSD patchset
...
308.
- While there, remove some duplicate code from the compat header file.
2009-09-03 20:54:39 +00:00
Tiago Cunha
f796336a12
Sync OpenBSD patchset 308:
...
When incorrect passwords are entered, behave similarly to login(1) and backoff
for a bit. Based on a diff from martynas@.
2009-09-03 20:44:38 +00:00
Tiago Cunha
3b944fe7e8
Sync OpenBSD patchset 307:
...
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
Olavi Niemitalo.
2009-09-02 22:45:17 +00:00
Nicholas Marriott
afd0bd7cb0
When shutting down the server, expect clients to be polite and exit when asked
...
with the right message.
2009-09-02 21:36:00 +00:00
Nicholas Marriott
a5c17d77bf
Nuke debugging.
2009-09-02 20:17:23 +00:00
Nicholas Marriott
d33caca6c7
That was the wrong fix. MSG_ERROR should set the error and the client should
...
use the error and exit on MSG_EXIT (it was being handled in the default
case). Undo the last change, move the errstr check into the MSG_EXIT case, and
add a comment.
2009-09-02 20:16:29 +00:00