| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
| |
A screen can be one cell wide; don't crash if that is the case.
|
|
|
|
|
|
| |
I made a complete horlicks of the last change, fix it so it doesn't either lead
to a double free or free the item after the end of the array.
|
|
|
|
|
| |
Tweak a comment and add some spacing.
|
|
|
|
|
|
| |
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
command entry structs and a couple of functions to check/set the flags.
|
|
|
|
|
| |
Unreachable statement, found by lint.
|
|
|
|
|
| |
Tidy up and fix some types, prompted by lint via deraadt.
|
|
|
|
|
| |
imsg_read returns ssize_t not int, pointed out by lint via deraadt.
|
|
|
|
|
| |
Destroy panes immediately rather than checking them all every loop.
|
|
|
|
|
|
|
| |
Use winlink_remove() to remove old winlinks when synchronizing grouped sessions
rather than doing it manually and not adjusted the reference count. Fixes
crash seen by Dan Harnett.
|
|
|
|
|
| |
Zap unused functions, prompted by deraadt.
|
|
|
|
|
|
|
|
| |
Emulate the ri (reverse index) capability: this allows tmux to at least start
on Sun consoles (TERM=sun or sun-color), even if there appear to still be
problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd
screen corruption).
|
|
|
|
|
|
|
| |
Support rxvt-style keys again, but this time: support all the variations, put
them in as raw escape sequences rather than fiddling with the values from
terminfo, put them /after/ the terminfo values so the latter take precedence.
|
|
|
|
|
|
|
|
|
| |
Rewrite a confusing loop when freeing the arg array on exit and move the check
for argv being NULL, prompted by parfait via deraadt.
Also fix some definite brokenness when assigning multiple environment variables
in arguments (such as "X=1 Y=2").
|
|
|
|
|
|
|
|
|
|
| |
Add an explicit zero-length check for UTF-8 input data, prompted by a report
from parfait via deraadt.
While here, add a statement to set the width when filling with _s if not enough
space (width should never be high enough at the moment anyway), and wrap some
long lines.
|
|
|
|
|
|
| |
Free the pane bufferevent when the fd is closed (the signal could come before
the error callback).
|
|
|
|
|
|
| |
Only need to chmod +x or -x the socket when a client is created, lost or
attached, rather than every event loop.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
There is no real standard for modifier plus function keys. Previously, tmux
output some from rxvt but in other ways did the same as xterm or other
terminals, but this is a bit inconsistent.
xterm's method is fairly sensible and we already support it (xterm-keys), so
enable it by default instead.
|
|
|
|
|
| |
Don't output rxvtisms either.
|
|
|
|
|
|
| |
Twiddling the last bit is an rxvtism, so do not support it in the table by
default.
|
|
|
|
|
| |
Whoops, this is needed for last commit as well.
|
|
|
|
|
|
| |
Lookup key as a named key (eg 'Space') before checking for single character
keys, makes C-Space/M-Space etc resolve to the correct key code.
|
|
|
|
|
|
| |
Don't return 1 unless there was actually a problem (signal/lost server) rather
than for all events (normal exit/detach/etc).
|
|
|
|
|
|
| |
Just ignore tty fd errors rather than dying, stops the server dying if the
session is disconnected abrubtly (eg ssh ~.).
|
|
|
|
|
|
| |
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
|
|
|
|
|
| |
Constify buf.
|
| |
|
| |
|
|
|
|
|
|
| |
Don't try enable/disable the event if the window pane is dead (fd == -1), as
the event will have been freed.
|
|
|
|
|
|
|
| |
Clear to the end of the screen from the right starting point when drawing
line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank
Terbeck.
|
|
|
|
|
| |
Old xterm F1-F4 are \033O_P not \033[O_P.
|
|
|
|
|
| |
Unused variable. Aargh.
|
|
|
|
|
|
|
|
|
| |
Switch the tty key tree over to an (unbalanced) ternary tree which allows
partial matches to be done (they wait for further data or a timer to expire,
like a naked escape).
Mouse and xterm-style keys still expect to be atomic.
|
|
|
|
|
|
|
| |
key_string_lookup_key uses a static buffer, so copy its output into the working
buffer before calling the command print function which can also use it (eg
send-keys).
|
|
|
|
|
|
| |
Key flags are only used for initialisation so they are not needed in the main
tty_key struct.
|
|
|
|
|
| |
EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL).
|
|
|
|
|
|
| |
Now all timers are events, there is no longer any need to wake up every 50 ms -
only wake up when an event happens.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Switch tty key input over to happen on a read event. This is a bit more
complicated because of escape input, but in that case instead of processing a
key immediately, schedule a timer and reprocess the bufer when it expires.
This currently assumes that keys will be atomic (ie that if eg F1 is pressed
the entire sequence is present in the buffer). This is usually but not always
true, a change in the tree format so it can differentiate potential (partial)
key sequences will happens soon and will allow this to be fixed.
|
|
|
|
|
| |
Convert the key repeat timer to an event.
|
| |
|
|
|
|
|
|
| |
Change window name change to use a timer event rather than a gettimeofday()
check every loop.
|
|
|
|
|
|
| |
Move status timer check into the global once-per-second timer, this could maybe
be done better but one every second is better than once every 50 ms.
|
|
|
|
|
| |
Use timeout events for the identify and message timers.
|
|
|
|
|
|
| |
Don't reenlist the client imsg event every loop, instead have a small function
to it and call it after the event triggers or after a imsg is added.
|
|
|
|
|
|
| |
It would help if I read my own comments... make alt keys work again by sending
alt AND the key not alt instead of it.
|
|
|
|
|
| |
Move some common code into a function.
|
|
|
|
|
| |
Tell the client to exit on configuration file error.
|
|
|
|
|
| |
Bye-bye buffer*.c.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Call event_init() before loading the config file, since potentially it could
set up events.
|