summaryrefslogtreecommitdiffstats
path: root/cmd-paste-buffer.c
AgeCommit message (Collapse)Author
2010-08-11Sync OpenBSD patchset 747:Tiago Cunha
Usage string fixes from Ben Boeckel.
2010-06-06No vis.h in here.Tiago Cunha
2010-06-06Sync OpenBSD patchset 702:Tiago Cunha
Enhance paste-buffer to allow lines to be separated by any string, from Andrea Barisani.
2010-04-06Dead assignment.Nicholas Marriott
2010-03-18paste-buffer should be per pane, from C. Coutinho.Nicholas Marriott
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
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-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-08Sync OpenBSD patchset 498:Tiago Cunha
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.
2009-09-07Sync OpenBSD patchset 318:Tiago Cunha
Give each paste buffer a size member instead of requiring them to be zero-terminated.
2009-07-28Sync OpenBSD patchset 181:Tiago Cunha
Make all messages sent between the client and server fixed size. This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
2009-07-14Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott
maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
2009-07-12When pasting, translate \n into \r. This matches xterm and putty's behaviour,Nicholas Marriott
and makes emacs happy when pasting into some modes. A new -r (raw) flag to paste-buffer pastes without the translation. From Kalle Olavi Niemitalo, thanks!
2009-07-02Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott
when trying to paste them, found by me, and miscalculation of the start/end causing random fatal errors when copying in copy-mode, reported by sthen.
2009-01-19Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott
command line.
2009-01-11Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott
still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
2009-01-11Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott
2009-01-07Buffers should be numbered from zero, from Tiago Cunha. Also fix paste -b.Nicholas Marriott
2008-06-20Trim.Nicholas Marriott
2008-06-20Use the right flags argument for -d.Nicholas Marriott
2008-06-20Swap in new paste buffer code and add a couple more commands.Nicholas Marriott
2008-06-05Big reorganisation of command-line syntax.Nicholas Marriott
2008-06-05Easy bits of arg printing for list-keys.Nicholas Marriott
2008-06-03If no command is specified, assume new-session.Nicholas Marriott
2008-06-02Add a windowonly generic command and use it where appropriate. Also trim ↵Nicholas Marriott
includes and unused.
2008-06-02Quick man page update, also fix some usages and get rid of some CMD_KEY checks.Nicholas Marriott
2008-06-02Move -s and -c down a level so handling them is the responsibility of the ↵Nicholas Marriott
command (with some helper functions), rather than the top-level. This changes the action command syntax so that -s and -c must be after the command rather than before.
2007-12-06Major reorganisation of screen handling.Nicholas Marriott
2007-11-23Mostly-complete copy and paste.Nicholas Marriott