summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2009-12-02Sync OpenBSD patchset 577:Tiago Cunha
New command, capture-pane, which copies the entire pane contents to a paste buffer. From Jonathan Alvarado.
2009-12-02Sync OpenBSD patchset 576:Tiago Cunha
Look for mice and xterm keys before standard function keys as they are less likely to be partial versions.
2009-12-02Sync OpenBSD patchset 575:Tiago Cunha
Handle partial xterm function key sequences.
2009-11-28+.Nicholas Marriott
2009-11-28Sync OpenBSD patchset 574:Tiago Cunha
Add a couple of comments.
2009-11-28Sync OpenBSD patchset 573:Tiago Cunha
This doesn't need to be u_int.
2009-11-28Sync OpenBSD patchset 572:Tiago Cunha
Make types clearer and lint happier.
2009-11-28Sync OpenBSD patchset 571:Tiago Cunha
Fix type - attributes should be u_char not int.
2009-11-28Sync OpenBSD patchset 570:Tiago Cunha
Change paranoia check to check for <= 0 and to avoid warning.
2009-11-28Sync OpenBSD patchset 569:Tiago Cunha
Tidy up various bits of the paste code, make the data buffer char * and add comments.
2009-11-28Sync OpenBSD patchset 568:Tiago Cunha
Continue rather than returning if not a mouse key, to avoid hanging on any function key...
2009-11-28Sync OpenBSD patchset 567:Tiago Cunha
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
2009-11-28Sync OpenBSD patchset 566:Tiago Cunha
Rename a variable to something more helpful.
2009-11-28Sync OpenBSD patchset 565:Tiago Cunha
Get a u_char from the string, otherwise it isn't possible to enter \0377 as it is mistaken for EOF (doh). Also drop an unused argument.
2009-11-28Sync OpenBSD patchset 564:Tiago Cunha
Handle the possibility of partial mouse reads, and fix a comment while here.
2009-11-28Sync OpenBSD patchset 563:Tiago Cunha
Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.
2009-11-28Sync OpenBSD patchset 562:Tiago Cunha
Output the right keys for application and number keypad modes (they were the wrong way round).
2009-11-28Sync OpenBSD patchset 561:Tiago Cunha
Add a -p flag to display-message to print the output rather than displaying in the status line, this allows things like "display -p '#W'" to find the current window index.
2009-11-28Sync OpenBSD patchset 560:Tiago Cunha
Add cursor keys to the key names list.
2009-11-26Despite terminfo being in use for around 20 years, NetBSD still haven't gotNicholas Marriott
their act together, so add an ifdef to use ncurses.h instead of curses.h. Untested.
2009-11-24Sync.Nicholas Marriott
2009-11-23+.Nicholas Marriott
2009-11-23+load average.Nicholas Marriott
2009-11-22Done.Tiago Cunha
2009-11-22Sync OpenBSD patchset 559:Tiago Cunha
Use home from struct passwd if HOME is empty as well as if it is NULL, and fix a style nit. Both from Tiago Cunha.
2009-11-22Sync OpenBSD patchset 558:Tiago Cunha
When -h and -p are given to split-window, calculate the percentage size using the width instead of the height.
2009-11-22Sync OpenBSD patchset 557:Tiago Cunha
Display UTF-8 properly in status line messages and prompt. Cursor handling is still way off though.
2009-11-22Sync OpenBSD patchset 556:Tiago Cunha
Remove oldest messages from log when limit is hit, not newest.
2009-11-22Sync OpenBSD patchset 555:Tiago Cunha
Get some brackets in the right place so ## works. Also fix a space in a comment.
2009-11-20+.Nicholas Marriott
2009-11-19Sync OpenBSD patchset 554:Tiago Cunha
Change status line drawing to create the window list in a separate screen and then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format.
2009-11-19Update.Tiago Cunha
2009-11-19Sync OpenBSD patchset 553:Tiago Cunha
Two new options, window-status-format and window-status-current-format, which allow the format of each window in the status line window list to be controlled using similar # sequences as status-left/right. This diff also moves part of the way towards UTF-8 support in window names but it isn't quite there yet.
2009-11-19Sync OpenBSD patchset 552:Tiago Cunha
tweak previous;
2009-11-19Sync OpenBSD patchset 551:Tiago Cunha
Revert to xterm-keys off by default. It was on as an experiment to see if the option could be removed, but it affects vi, so we have to keep the option, and a conservative default is better.
2009-11-19Sync OpenBSD patchset 550:Tiago Cunha
Tidy up by breaking the # replacement code into a separate function, also add a few comments.
2009-11-19Update.Tiago Cunha
2009-11-19Sync OpenBSD patchset 549:Tiago Cunha
Don't interpret #() for display-message, it usually doesn't make sense and may leak commands.
2009-11-19Sync OpenBSD patchset 548:Tiago Cunha
Missed an unused variable :-/.
2009-11-19Sync OpenBSD patchset 547:Tiago Cunha
Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc.
2009-11-19Sync OpenBSD patchset 546:Tiago Cunha
Add a per-client log of status line messages displayed while that client exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
2009-11-19Sync OpenBSD patchset 545:Tiago Cunha
Mark -n keys with (no prefix) rather than [].
2009-11-18+.Nicholas Marriott
2009-11-18Sync OpenBSD patchset 544:Tiago Cunha
Permit top-bit-set characters to be entered in the status line. They could already be set from the shell and are just passed through when printing (so invisible characters or displaying on terminals with different character sets may cause problems). Note that entering UTF-8 may not work and in any case currently the status line cannot display it correctly (outside of status-left/status-right).
2009-11-18Sync OpenBSD patchset 543:Tiago Cunha
In choose mode, assign each item a number or lowercase letter from those available and accept that as a shortcut key for the item.
2009-11-18Sync OpenBSD patchset 542:Tiago Cunha
A screen can be one cell wide; don't crash if that is the case.
2009-11-18Sync OpenBSD patchset 541:Tiago Cunha
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.
2009-11-14Sync OpenBSD patchset 540:Tiago Cunha
Tweak a comment and add some spacing.
2009-11-14Sync OpenBSD patchset 539:Tiago Cunha
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.
2009-11-14Sync OpenBSD patchset 538:Tiago Cunha
Unreachable statement, found by lint.