History log of /openbsd-src/usr.bin/tmux/cmd-paste-buffer.c (Results 26 – 42 of 42)
Revision Date Author Comments
# 7e9c16f9 03-Mar-2012 nicm <nicm@openbsd.org>

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

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.

show more ...


# ca7befcc 04-Jan-2011 nicm <nicm@openbsd.org>

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

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.

show more ...


# eca05f1f 30-Dec-2010 nicm <nicm@openbsd.org>

Change from a per-session stack of buffers to one global stack which is
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server opti

Change from a per-session stack of buffers to one global stack which is
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server option.

By Tiago Cunha.

show more ...


# e1ea9b79 11-Aug-2010 nicm <nicm@openbsd.org>

Usage string fixes from Ben Boeckel.


# a24c6ede 19-May-2010 nicm <nicm@openbsd.org>

Enhance paste-buffer to allow lines to be separated by any string, from
Andrea Barisani.


# 9ce50470 04-Apr-2010 nicm <nicm@openbsd.org>

Dead assignment, found with clang.


# 98933068 22-Mar-2010 nicm <nicm@openbsd.org>

paste-buffer should be per pane, from C. Coutinho.


# 197ec97c 03-Dec-2009 nicm <nicm@openbsd.org>

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...


# 5bde14a0 26-Nov-2009 nicm <nicm@openbsd.org>

Tidy up various bits of the paste code, make the data buffer char * and add
comments.


# 0e9de5d4 13-Nov-2009 nicm <nicm@openbsd.org>

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.


# fdcac80e 04-Nov-2009 nicm <nicm@openbsd.org>

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

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.

show more ...


# 1937104b 07-Sep-2009 nicm <nicm@openbsd.org>

Give each paste buffer a size member instead of requiring them to be
zero-terminated.


# 454be688 26-Jul-2009 nicm <nicm@openbsd.org>

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 wi

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.

show more ...


# 0b2ec5a7 13-Jul-2009 nicm <nicm@openbsd.org>

Having fixed flags for single-character getopt options is a bit hard to
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

Having fixed flags for single-character getopt options is a bit hard to
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.

show more ...


# 8a0c65a0 11-Jul-2009 nicm <nicm@openbsd.org>

When pasting, translate \n into \r. This matches xterm and putty's behaviour,
and makes emacs happy when pasting into some modes. A new -r (raw) flag to
paste-buffer pastes without the translation.

When pasting, translate \n into \r. This matches xterm and putty's behaviour,
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!

show more ...


# 92e1fe33 02-Jul-2009 nicm <nicm@openbsd.org>

Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
when trying to paste them, found by me, and miscalculation of the start/end
causing random fatal errors when copying in co

Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
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

show more ...


# 311827fb 01-Jun-2009 nicm <nicm@openbsd.org>

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one termin

Import tmux, a terminal multiplexor allowing (among other things) a single
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

show more ...


12