aboutsummaryrefslogtreecommitdiff
path: root/cmd-paste-buffer.c
Commit message (Collapse)AuthorAge
...
| * Enhance paste-buffer to allow lines to be separated by any string, fromNicholas Marriott2010-05-19
| | | | | | | | Andrea Barisani.
| * Dead assignment, found with clang.Nicholas Marriott2010-04-04
| |
| * paste-buffer should be per pane, from C. Coutinho.Nicholas Marriott2010-03-22
| |
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Tidy up various bits of the paste code, make the data buffer char * and addNicholas Marriott2009-11-26
| | | | | | | | comments.
| * Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in theNicholas Marriott2009-11-13
| | | | | | | | command entry structs and a couple of functions to check/set the flags.
| * Convert the window pane (pty master side) fd over to use a bufferevent.Nicholas Marriott2009-11-04
| | | | | | | | | | 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.
| * Give each paste buffer a size member instead of requiring them to beNicholas Marriott2009-09-07
| | | | | | | | zero-terminated.
| * Make all messages sent between the client and server fixed size.Nicholas Marriott2009-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-13
| | | | | | | | | | | | | | | | | | 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.
| * When pasting, translate \n into \r. This matches xterm and putty's behaviour,Nicholas Marriott2009-07-11
| | | | | | | | | | | | | | 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!
| * Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott2009-07-02
| | | | | | | | | | | | | | 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. ok sthen "put it in" deraadt
| * Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
| | | | | | | terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti
* Sync OpenBSD patchset 1151:Tiago Cunha2012-07-11
| | | | | | | | Make command exec functions return an enum rather than -1/0/1 values and add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1037:Tiago Cunha2012-03-07
| | | | | | | | | Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if this is used and the application has requested bracketed pastes, then tmux surrounds the pasted text by \033[200~ and \033[201~. Applications like vim can (apparently) use this to avoid, for example, indenting the text. From Ailin Nemui.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
| | | | | | | | | | | | | | | | | | | | | | Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha2010-12-30
| | | | | As a consequence buffer-limit is now a server option.
* Sync OpenBSD patchset 747:Tiago Cunha2010-08-11
| | | | | Usage string fixes from Ben Boeckel.
* No vis.h in here.Tiago Cunha2010-06-06
|
* Sync OpenBSD patchset 702:Tiago Cunha2010-06-06
| | | | | | Enhance paste-buffer to allow lines to be separated by any string, from Andrea Barisani.
* Dead assignment.Nicholas Marriott2010-04-06
|
* paste-buffer should be per pane, from C. Coutinho.Nicholas Marriott2010-03-18
|
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | 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...
* Sync OpenBSD patchset 569:Tiago Cunha2009-11-28
| | | | | | Tidy up various bits of the paste code, make the data buffer char * and add comments.
* 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 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 318:Tiago Cunha2009-09-07
| | | | | | Give each paste buffer a size member instead of requiring them to be zero-terminated.
* Sync OpenBSD patchset 181:Tiago Cunha2009-07-28
| | | | | | | | | | | | | | | | | 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.
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | 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.
* When pasting, translate \n into \r. This matches xterm and putty's behaviour,Nicholas Marriott2009-07-12
| | | | | | | | 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!
* Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott2009-07-02
| | | | | | 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.
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott2009-01-11
| | | | still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Buffers should be numbered from zero, from Tiago Cunha. Also fix paste -b.Nicholas Marriott2009-01-07
|
* Trim.Nicholas Marriott2008-06-20
|
* Use the right flags argument for -d.Nicholas Marriott2008-06-20
|
* Swap in new paste buffer code and add a couple more commands.Nicholas Marriott2008-06-20
|
* Big reorganisation of command-line syntax.Nicholas Marriott2008-06-05
|
* Easy bits of arg printing for list-keys.Nicholas Marriott2008-06-05
|
* If no command is specified, assume new-session.Nicholas Marriott2008-06-03
|
* Add a windowonly generic command and use it where appropriate. Also trim ↵Nicholas Marriott2008-06-02
| | | | includes and unused.
* Quick man page update, also fix some usages and get rid of some CMD_KEY checks.Nicholas Marriott2008-06-02
|
* Move -s and -c down a level so handling them is the responsibility of the ↵Nicholas Marriott2008-06-02
| | | | 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.
* Major reorganisation of screen handling.Nicholas Marriott2007-12-06
|
* Mostly-complete copy and paste.Nicholas Marriott2007-11-23