| Commit message (Collapse) | Author | Age |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Unused (but assigned to) variable, found by lint.
|
|
|
|
|
| |
Ignore the colour on space, /not/ the attributes.
|
|
|
|
|
|
| |
Fix the reverse emulation when a terminal doesn't have setab to use the correct
fg/bg (adjusted if spaces) and happen before attribute setting.
|
|
|
|
|
| |
malloc_options on DragonFlyBSD, and FreeBSD.
|
|
|
|
|
|
| |
Change declaration and use of malloc_options to be more standard, from Tim van
der Molen.
|
|
|
|
|
|
| |
Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.
|
|
|
|
|
|
|
|
|
|
| |
Add an activity time for clients, like for sessions, and change session and
client lookup to pick the most recently used rather than the most recently
created - this is much more useful when used interactively and (because the
activity time is set at creation) should have no effect on source-file.
Based on a problem reported by Jan Johansson.
|
|
|
|
|
|
|
| |
If it isn't available explicitly, work out the current client in a similar way
to the current session - build a list of the possibilities then pick the
newest.
|
|
|
|
|
|
|
|
|
|
| |
Change session and client activity and creation time members to have more
meaningful names.
Also, remove the code to try and update the session activity time for the
command client when a command message is received as is pointless because it
des not have a session.
|
|
|
|
|
|
| |
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
|
|
|
|
|
| |
Fix vi page up mode key (from naddy), add missing half page keys, and sort.
|
|
|
|
|
|
|
| |
Double the escape timer (the time after a \033 is received before tmux gives up
waiting to see if it is part of a key sequence and passes it through) to 500
ms, the previous setting was too fast. Suggested by naddy.
|
|
|
|
|
|
|
|
|
|
| |
When matching the session names with -t, look for exact matches first before
trying partial matches.
Avoids problems where two ambiguous matches are present before an exact match
(eg foo1, foo2, foo would give an error on trying -tfoo), reported by Natacha
Port? natbsd at instinctive dot eu.
|
|
|
|
|
| |
Leftover unused variable :-/.
|
|
|
|
|
|
| |
There isn't much point in doing lstat before connect so instead just do connect
and handle ENOENT from it which is a little tidier.
|
|
|
|
|
| |
Reorder slightly to tidy code.
|
|
|
|
|
|
|
|
|
| |
Add a flag for jobs that shouldn't be freed after they've died and use it for
status jobs, then only kill those jobs when status-left, status-right or
set-titles-string is changed.
Fixes problems with changing options from inside #().
|
|
|
|
|
| |
Missing setenv/showenv aliases.
|
|
|
|
|
| |
Missing ;. From eric@ ages ago.
|
|
|
|
|
|
|
|
|
|
|
| |
If any client currently displaying a window pane has more than 1 KB of output
buffered, don't accept any further data from the process running in the pane.
This makes tmux much more responsive when flooded with output, although other
buffers can still have an impact when running remotely.
Prompted by a query from Ranganathan Sankaralingam.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add a minor optimisatin: if the character being printed is space, don't worry
about setting the background colour or attributes (except reverse).
|
|
|
|
|
| |
Twaek this slightly to avoid confusing use of flags variable.
|
|
|
|
|
|
|
|
|
|
| |
Setting SGR0 when setting the fg and bg has problems if only one of the two is
meant to be default, so rewrite the code to move this outside, move setting
colours before attributes and generally clean up.
Tested by sthen@, fixes problems he was seeing with mutt and should fix some
existing problems with (rarely) lost attributes.
|
|
|
|
|
| |
Move the poll registration functions into the server-*.c files.
|
|
|
|
|
| |
tabs are better; ok nicm
|
|
|
|
|
|
| |
Clear signal flags /before/ taking action and continue afterwards to reduce
chance of dropping signals. Pointed out by deraadt@.
|
|
|
|
|
| |
Call fstat() after fopen() rather than stat() before.
|
|
|
|
|
|
| |
Reset the umask right after fopen to avoid leaving it changed on error, noticed
by deraadt@.
|
|
|
|
|
| |
Use strlcpy instead of strncpy, pointed out by deraadt.
|
|
|
|
|
|
|
| |
Don't do anything in the client callback if the client has already died to
avoid a use-after-free (the callback is used twice, once for the client itself
and once for the tty). Fixes crashes seen by Han Boetes.
|
|
|
|
|
| |
Nuke accidentally-committed debugging statement.
|
|
|
|
|
|
|
|
| |
Not all terminals swap CSI and SS3 on ctrl, so remove that.
Also mark the rxvt special-cases as such until terminfo is updated to have
kLFT5, kRIT5 etc.
|
|
|
|
|
|
|
| |
Rewrite xterm-keys code (both input and output) so that works (doesn't always
output the same modifiers, accepts all the possible input keys) and is more
understandable.
|
|
|
|
|
|
|
| |
Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these
will be caught (soon) by the xterm keys code in xterm itself but some other
descriptions such as rxvt define them as well.
|
|
|
|
|
| |
On second thoughts, drop the rxvt output entirely.
|
|
|
|
|
|
| |
Set the output code for ctrl+cursor keys correctly, and disable (comment)
rxvt-style output.
|
|
|
|
|
|
|
|
| |
As we always put the cursor keys into application mode, assume keys sent
with CSI have ctrl.
Also add a couple of comments.
|
|
|
|
|
| |
Tidy up table.
|
|
|
|
|
| |
Drop INPUTKEY_CTRL and just handle it as part of the table.
|
|
|
|
|
| |
Add or fix some comments.
|
|
|
|
|
| |
Tidy up table.
|
|
|
|
|
| |
Rename keypad keys to something more useful.
|
|
|
|
|
|
| |
Remove the xterm-keys code which is broken (a replacement is coming but some
more cleanup is needed first).
|