aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 542:Tiago Cunha2009-11-18
| | | | | A screen can be one cell wide; don't crash if that is the case.
* Sync OpenBSD patchset 541:Tiago Cunha2009-11-18
| | | | | | 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.
* Sync OpenBSD patchset 540:Tiago Cunha2009-11-14
| | | | | Tweak a comment and add some spacing.
* Sync OpenBSD patchset 539:Tiago Cunha2009-11-14
| | | | | | 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.
* Sync OpenBSD patchset 538:Tiago Cunha2009-11-14
| | | | | Unreachable statement, found by lint.
* Sync OpenBSD patchset 537:Tiago Cunha2009-11-14
| | | | | Tidy up and fix some types, prompted by lint via deraadt.
* Sync OpenBSD patchset 536:Tiago Cunha2009-11-14
| | | | | imsg_read returns ssize_t not int, pointed out by lint via deraadt.
* Sync OpenBSD patchset 535:Tiago Cunha2009-11-14
| | | | | Destroy panes immediately rather than checking them all every loop.
* Sync OpenBSD patchset 534:Tiago Cunha2009-11-13
| | | | | | | 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.
* Sync OpenBSD patchset 533:Tiago Cunha2009-11-13
| | | | | Zap unused functions, prompted by deraadt.
* Sync OpenBSD patchset 532:Tiago Cunha2009-11-13
| | | | | | | | 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).
* Sync OpenBSD patchset 531:Tiago Cunha2009-11-13
| | | | | | | 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.
* Sync OpenBSD patchset 530:Tiago Cunha2009-11-13
| | | | | | | | | 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").
* Sync OpenBSD patchset 529:Tiago Cunha2009-11-13
| | | | | | | | | | 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.
* Sync OpenBSD patchset 528:Tiago Cunha2009-11-13
| | | | | | Free the pane bufferevent when the fd is closed (the signal could come before the error callback).
* Sync OpenBSD patchset 527:Tiago Cunha2009-11-13
| | | | | | Only need to chmod +x or -x the socket when a client is created, lost or attached, rather than every event loop.
* OS X is still broken, so ask libevent not to use kqueue or poll.Nicholas Marriott2009-11-11
|
* Sync OpenBSD patchset 526:Tiago Cunha2009-11-10
| | | | | | | | | | 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.
* Sync OpenBSD patchset 525:Tiago Cunha2009-11-10
| | | | | Don't output rxvtisms either.
* Sync OpenBSD patchset 524:Tiago Cunha2009-11-10
| | | | | | Twiddling the last bit is an rxvtism, so do not support it in the table by default.
* Sync OpenBSD patchset 523:Tiago Cunha2009-11-10
| | | | | Whoops, this is needed for last commit as well.
* Sync OpenBSD patchset 522:Tiago Cunha2009-11-10
| | | | | | 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.
* Sync OpenBSD patchset 521:Tiago Cunha2009-11-10
| | | | | | Don't return 1 unless there was actually a problem (signal/lost server) rather than for all events (normal exit/detach/etc).
* Sync OpenBSD patchset 520:Tiago Cunha2009-11-10
| | | | | | Just ignore tty fd errors rather than dying, stops the server dying if the session is disconnected abrubtly (eg ssh ~.).
* Sync OpenBSD patchset 519:Tiago Cunha2009-11-10
| | | | | | The input key should be a u_char. Fixes top-bit-set input problem reported by ajacoutot@.
* Sync OpenBSD patchset 518:Tiago Cunha2009-11-10
| | | | | Constify buf.
* +.Nicholas Marriott2009-11-10
|
* +.Nicholas Marriott2009-11-09
|
* Sync OpenBSD patchset 517:Tiago Cunha2009-11-08
| | | | | | Don't try enable/disable the event if the window pane is dead (fd == -1), as the event will have been freed.
* Sync OpenBSD patchset 516:Tiago Cunha2009-11-08
| | | | | | | 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.
* Sync OpenBSD patchset 515:Tiago Cunha2009-11-08
| | | | | Old xterm F1-F4 are \033O_P not \033[O_P.
* Sync OpenBSD patchset 514:Tiago Cunha2009-11-08
| | | | | Unused variable. Aargh.
* Sync OpenBSD patchset 513:Tiago Cunha2009-11-08
| | | | | | | | | 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.
* Sync OpenBSD patchset 512:Tiago Cunha2009-11-08
| | | | | | | 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).
* Sync OpenBSD patchset 511:Tiago Cunha2009-11-08
| | | | | | Key flags are only used for initialisation so they are not needed in the main tty_key struct.
* Sync OpenBSD patchset 510:Tiago Cunha2009-11-08
| | | | | EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL).
* Sync OpenBSD patchset 509:Tiago Cunha2009-11-08
| | | | | | Now all timers are events, there is no longer any need to wake up every 50 ms - only wake up when an event happens.
* Sync OpenBSD patchset 508:Tiago Cunha2009-11-08
| | | | | | | | | | | | 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.
* Sync OpenBSD patchset 507:Tiago Cunha2009-11-08
| | | | | Convert the key repeat timer to an event.
* Make it compile on the portable version.Tiago Cunha2009-11-08
|
* Sync OpenBSD patchset 506:Tiago Cunha2009-11-08
| | | | | | Change window name change to use a timer event rather than a gettimeofday() check every loop.
* Sync OpenBSD patchset 505:Tiago Cunha2009-11-08
| | | | | | 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.
* Sync OpenBSD patchset 504:Tiago Cunha2009-11-08
| | | | | Use timeout events for the identify and message timers.
* Sync OpenBSD patchset 503:Tiago Cunha2009-11-08
| | | | | | 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.
* Sync OpenBSD patchset 502:Tiago Cunha2009-11-08
| | | | | | 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.
* Sync OpenBSD patchset 501:Tiago Cunha2009-11-08
| | | | | Move some common code into a function.
* Sync OpenBSD patchset 500:Tiago Cunha2009-11-08
| | | | | Tell the client to exit on configuration file error.
* Sync OpenBSD patchset 499:Tiago Cunha2009-11-08
| | | | | Bye-bye buffer*.c.
* Sync OpenBSD patchset 498:Tiago Cunha2009-11-08
| | | | | | | | 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.
* Sync OpenBSD patchset 497:Tiago Cunha2009-11-08
| | | | | | Call event_init() before loading the config file, since potentially it could set up events.