CVS: cvs.openbsd.org: src

2012-11-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/19 03:38:06

Modified files:
usr.bin/tmux   : cfg.c cmd-new-session.c server.c tmux.h 

Log message:
Use a utility function for common code to show errors in config file,
from Thomas Adam.



CVS: cvs.openbsd.org: src

2012-11-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/19 03:50:24

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Clarify some points about config files, notably that they are only read
at server start. From Thomas Adam.



CVS: cvs.openbsd.org: src

2012-11-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/19 03:51:25

Modified files:
usr.bin/tmux   : mode-key.c 

Log message:
Add halfpage commands to mode command string table (missed by accident),
from Thomas Adam.



CVS: cvs.openbsd.org: src

2012-11-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/21 12:48:49

Modified files:
usr.bin/cu : xmodem.c 

Log message:
Plug fp leak, from rustyBSD at gmx dot fr.



CVS: cvs.openbsd.org: src

2012-11-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/22 07:10:53

Modified files:
usr.bin/tmux   : tty.c 

Log message:
Don't need to send DECSL on detaching now, the code using higher levels
has gone.



CVS: cvs.openbsd.org: src

2012-11-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/22 07:26:04

Modified files:
usr.bin/tmux   : cmd-server-info.c tmux.h tty-keys.c tty.c 

Log message:
Instead of worrying about xterm version, send DA and read DEC service
class which is more likely to be useful. Not used for anything yet
anyway.



CVS: cvs.openbsd.org: src

2012-11-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/22 07:41:11

Modified files:
usr.bin/tmux   : cmd-server-info.c tmux.h tty-keys.c tty.c 

Log message:
Put helper function back, will be needed in a bit.



CVS: cvs.openbsd.org: src

2012-11-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/26 04:35:28

Modified files:
usr.bin/tmux   : tmux.c 

Log message:
Call realpath earlier on the socket directory path rather than on the
socket file path because the latter may not exist yet and in that case
realpath is allowed to fail. From Romain Francoise.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 02:20:03

Modified files:
usr.bin/tmux   : cmd.c names.c 

Log message:
Fix session choice so that preferring unattached sessions actually
works, reported by Drew Frank.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 06:52:23

Modified files:
usr.bin/tmux   : options-table.c status.c tmux.1 

Log message:
Add window-status-last-* options, from Boris Faure.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 07:22:43

Modified files:
usr.bin/tmux   : input-keys.c 

Log message:
If the application inside tmux has requested any mouse modes itself, do
not let mode-mouse take any effect. From Sergey Naumov.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 07:26:48

Modified files:
usr.bin/tmux   : input-keys.c 

Log message:
Revert last, after discussion it isn't necessary.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 07:42:56

Modified files:
usr.bin/tmux   : window-copy.c 

Log message:
When scrolling in copy mode with the mouse, scroll screen rather than
moving cursor. This change from Ailin Nemui, alternative to a change
from Stephen Hicks.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 08:09:35

Modified files:
usr.bin/tmux   : cmd-run-shell.c tmux.1 

Log message:
Allow cmd-run-shell to accept -t to specify the pane to display the
output, requested by Alexander Tsepkov.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 09:12:30

Modified files:
usr.bin/tmux   : cfg.c cmd-source-file.c tmux.c tmux.h 

Log message:
Correctly aggregate together errors from nested config files (with
source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 13:08:42

Modified files:
usr.bin/tmux   : input.c tmux.h window.c 

Log message:
Support the 47 and 1047 SM and RM sequences (alternate screen without
cursor), requested by I forget who ages ago.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 13:22:12

Modified files:
usr.bin/tmux   : cmd-paste-buffer.c input-keys.c paste.c tmux.h 

Log message:
Support middle-click paste, based on a diff from Ailin Nemui.



CVS: cvs.openbsd.org: src

2012-11-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/11/27 15:59:34

Modified files:
usr.bin/tmux   : cfg.c tmux.h 

Log message:
Fix return value of load_cfg, from Thomas Adam.



CVS: cvs.openbsd.org: src

2012-12-06 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/06 05:47:48

Modified files:
usr.bin/tmux   : cmd-string.c 

Log message:
Simplify command string parsing with a helper function from Tiago Cunha.



CVS: cvs.openbsd.org: src

2012-12-06 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/06 06:06:05

Modified files:
usr.bin/tmux   : cfg.c 

Log message:
Use strlcat not strncat in load_cfg and some other trivial tidying from
Tiago Cunha.



CVS: cvs.openbsd.org: src

2012-12-08 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/08 10:05:57

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Handle resetting 256-colours properly when parsing #[default],
#[fg=default] and #[bg=default] styles.



CVS: cvs.openbsd.org: src

2012-12-09 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/09 16:17:35

Modified files:
usr.bin/tmux   : cmd-capture-pane.c cmd-display-message.c 
 cmd-list-panes.c cmd-new-session.c 
 cmd-new-window.c cmd-paste-buffer.c 
 cmd-send-keys.c cmd-split-window.c 

Log message:
Use the CMD_*_USAGE defines consistently, from Thomas Adam.



CVS: cvs.openbsd.org: src

2012-12-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/13 08:36:16

Modified files:
usr.bin/tmux   : cfg.c 

Log message:
Change load_cfg to fix a crash reported by jasper.



CVS: cvs.openbsd.org: src

2012-12-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/24 05:24:21

Modified files:
usr.bin/tmux   : window-choose.c 

Log message:
Remove an unnecessary redraw, from Raghavendra D Prabhu.



CVS: cvs.openbsd.org: src

2012-12-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/24 05:25:52

Modified files:
usr.bin/tmux   : cmd-choose-tree.c tmux.1 

Log message:
Add a -u flag to choose-tree to start uncollapsed, from Raghavendra D
Prabhu.



CVS: cvs.openbsd.org: src

2012-12-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/24 05:33:05

Modified files:
usr.bin/tmux   : tmux.h 

Log message:
Add missing function prototype.



CVS: cvs.openbsd.org: src

2012-12-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/24 05:34:32

Modified files:
usr.bin/tmux   : cmd-select-window.c tmux.1 window-choose.c 

Log message:
Add -T option to select-window to toggle to last window if already
current, from Raghavendra D Prabhu.



CVS: cvs.openbsd.org: src

2012-12-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2012/12/24 05:38:57

Modified files:
usr.bin/tmux   : cmd.c tmux.1 

Log message:
Add ^ and $ special command targets to select lowest and highest
numbered windows, from Raghavendra D Prabhu.



CVS: cvs.openbsd.org: src

2013-01-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/15 15:55:29

Modified files:
usr.bin/tmux   : options-table.c server-client.c tmux.1 tmux.h 

Log message:
If timing between keys is less than (by default) 1 millisecond, assume
the text is being pasted. assume-paste-time option changes the value (0
disables). Based on a diff from Marcin Kulik.



CVS: cvs.openbsd.org: src

2013-01-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/15 16:18:55

Modified files:
usr.bin/tmux   : input.c screen-write.c tmux.h tty-term.c tty.c 

Log message:
Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.



CVS: cvs.openbsd.org: src

2013-01-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/16 17:11:22

Modified files:
usr.bin/tmux   : cmd-resize-pane.c cmd-select-layout.c 
 key-bindings.c layout.c options-table.c tmux.1 
 tmux.h window.c 

Log message:
Remove the layout undo/redo code which never really worked.



CVS: cvs.openbsd.org: src

2013-01-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/16 20:51:21

Modified files:
usr.bin/tmux   : cmd-choose-tree.c 

Log message:
Fix some blank line nits.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/17 04:15:22

Modified files:
usr.bin/cu : cu.c 

Log message:
Instead of creating line termios from scratch, call tcgetattr() and
adjust it (per POSIX), reported by kettenis.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/17 13:30:43

Modified files:
usr.bin/tmux   : cmd-choose-client.c input.c 

Log message:
Do not allow cursor colours to be set beginning with ? as that will
report the colour, from Hayaki Saito.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/17 14:10:24

Modified files:
usr.bin/cu : cu.c xmodem.c 

Log message:
Fix a couple of spacing/style nits.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/17 19:10:29

Modified files:
usr.bin/tmux   : cmd.c server-client.c 

Log message:
Style nits - return (x) not return x.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/17 19:16:21

Modified files:
usr.bin/tmux   : Makefile cmd-server-info.c format.c grid-view.c 
 grid.c input.c screen-write.c tmux.h tty.c 
 window-copy.c 
Added files:
usr.bin/tmux   : grid-cell.c 
Removed files:
usr.bin/tmux   : grid-utf8.c 

Log message:
Rather than having two grids for each pane, one for ASCII and one for
UTF-8, collapse the two together. Simplifies the code at the expense of
more memory (which can probably be reduced again later).



CVS: cvs.openbsd.org: src

2013-01-30 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/01/30 10:00:17

Modified files:
usr.bin/tmux   : cmd-select-layout.c server-client.c 

Log message:
Unused variable/type nit from Thomas Adam.



CVS: cvs.openbsd.org: src

2013-02-05 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/02/05 03:53:57

Modified files:
usr.sbin/smtpd : mda.c mta.c mta_session.c 

Log message:
Spelling fixes: retreive - retrieve. ok gilles



CVS: cvs.openbsd.org: src

2013-02-05 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/02/05 04:01:45

Modified files:
usr.bin/tmux   : format.c 

Log message:
Don't set some string formats if the string is NULL.



CVS: cvs.openbsd.org: src

2013-02-05 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/02/05 04:08:59

Modified files:
usr.bin/tmux   : grid.c screen.c tmux.h window-choose.c 
 window-clock.c window-copy.c window.c 

Log message:
Automatically reflow wrapped lines when a pane is resized, requested by
many over the years and finally implemented by Richard Woodbury.



CVS: cvs.openbsd.org: src

2013-03-09 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/09 12:27:48

Modified files:
usr.bin: Makefile 
usr.bin/cu : cu.1 

Log message:
Add new cu to the build and disable tip. Also bump first appeared in
to .Ox 5.4 in cu.1.

New cu is a libevent-based implementation of the useful features of the
old tip/cu, plus a few new things like basic xmodem support.

ok deraadt



CVS: cvs.openbsd.org: src

2013-03-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/10 11:55:54

Modified files:
usr.bin: Makefile 
usr.bin/tip: Makefile 

Log message:
Put tip back but without the hardlink to cu for now, ok deraadt



CVS: cvs.openbsd.org: src

2013-03-11 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/11 06:47:49

Modified files:
usr.bin/cu : cu.1 

Log message:
Simplify text about -l and use cua not tty in examples.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:08:25

Modified files:
usr.bin/tmux   : cmd-choose-buffer.c cmd-choose-client.c 
 cmd-choose-list.c cmd-choose-tree.c 
 cmd-find-window.c tmux.h window-choose.c 

Log message:
Miscellaneous tidying of choose API, including:

- rename client and session to start_client and start_session in
window_choose_data struct. also add TREE_OTHER define and reorder
the struct
- rename window_choose_ctx to window_choose_data_run
- don't pass a cmd_ctx into window_choose_create (will let it use a
different client later). instead take type, session, client
- add window_choose_data_free and use it to dispose of wcd rather than
each cmd-*.c doing it individually
- change so ref counting is done by wcd_add and wcd_free rather than
callers
- also add a ref to tree_session
- all the callbacks except choose-client and find-window are the same so
remove them and add window_choose_default_callback
- reorder/rename some other bits and pieces for tidyness



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:09:17

Modified files:
usr.bin/tmux   : cmd-choose-buffer.c cmd-choose-client.c 
 cmd-choose-list.c cmd-choose-tree.c 
 cmd-find-window.c tmux.h window-choose.c 

Log message:
Remove free callback for window_choose_data objects.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:09:59

Modified files:
usr.bin/tmux   : cmd-choose-buffer.c cmd-choose-client.c 
 cmd-choose-list.c cmd-choose-tree.c 
 cmd-find-window.c tmux.1 tmux.h window-choose.c 

Log message:
Allow choose commands to be used outside tmux, so long as at least one
client is attached.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:12:11

Modified files:
usr.bin/tmux   : grid.c screen.c tmux.h 

Log message:
Rework reflow code so it does not do so much allocation which should be
faster with large histories.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:12:50

Modified files:
usr.bin/tmux   : cmd-list-commands.c 

Log message:
Show alias in lscm output.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:13:24

Modified files:
usr.bin/tmux   : format.c status.c 

Log message:
Allow formats in status options.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:14:09

Modified files:
usr.bin/tmux   : format.c server-client.c status.c tmux.1 

Log message:
Add a format client_prefix which is 1 if prefix key has been
pressed, used for example #{?client_prefix,X,Y}. Also a few extra
server_client_status needed.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:14:50

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Remove stray change accidentally committed.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:15:52

Modified files:
usr.bin/tmux   : cmd-set-option.c cmd-show-options.c 
 options-table.c tmux.1 tmux.h 

Log message:
Add -v to set and setw to show only option value.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:17:01

Modified files:
usr.bin/tmux   : cmd-set-option.c cmd-show-options.c tmux.1 

Log message:
Add user options, prefixed with @. May be set to any arbitrary string.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:17:35

Modified files:
usr.bin/tmux   : cmd-choose-tree.c tmux.1 

Log message:
Fix choose-tree usage.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:19:25

Modified files:
usr.bin/tmux   : cmd-choose-tree.c cmd.c tmux.h window-choose.c 

Log message:
Fix constness of cmd_template_replace, window_choose_add_item and
window_choose_add_window.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:20:26

Modified files:
usr.bin/tmux   : window-choose.c 

Log message:
No more need for freefn.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:23:07

Modified files:
usr.bin/tmux   : cmd-choose-tree.c 

Log message:
Run session command before window in choose-tree.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:24:03

Modified files:
usr.bin/tmux   : status.c 

Log message:
Do not leak formats in status_replace.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:25:08

Modified files:
usr.bin/tmux   : status.c 

Log message:
Aargh. Spaces - tabs.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:49:37

Modified files:
usr.bin/tmux   : cmd-refresh-client.c 

Log message:
Add -c to refresh-client to set client size in control mode, based on
code from George Nachman.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:50:22

Modified files:
usr.bin/tmux   : tmux.h tty-keys.c tty.c 

Log message:
Tidy by splitting default key tables into two.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:51:11

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Fix function parameter to tty_keys_free.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:52:02

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Fix a comment for new key table names.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:53:12

Modified files:
usr.bin/tmux   : cmd-choose-tree.c 

Log message:
Make choose-tree actually work again.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 10:54:37

Modified files:
usr.bin/tmux   : cfg.c mode-key.c 

Log message:
Fix a couple of memory leaks, from Romain Francoise.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:43:34

Modified files:
usr.bin/tmux   : cmd-capture-pane.c tmux.1 

Log message:
Support capture-pane -p to send to stdout.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:44:47

Modified files:
usr.bin/tmux   : tmux.h tty-keys.c tty.c 

Log message:
Include the \033 in the key tree and adjust key matching for this change.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:45:38

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Don't set key KEYC_NONE on xterm_keys_find match()

When calling xterm_keys_find(); if we get a complete match, don't set
the key to unknown before calling the action to complete the binding;
otherwise non-prefixed bindings will not work.

From Thomas Adam



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:46:12

Modified files:
usr.bin/tmux   : resize.c 

Log message:
Do not include status line in size calculations in control mode.



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:47:01

Modified files:
usr.bin/tmux   : server-client.c server-fn.c server-window.c 

Log message:
Add various checks to turn off bits that can't work in control mode
(such as lock).



CVS: cvs.openbsd.org: src

2013-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/21 12:47:56

Modified files:
usr.bin/tmux   : input.c screen-write.c tmux.h 

Log message:
Instead of loads of little screen_write_*_on and off functions which
just change mode flags, just have screen_write_mode_set and
screen_write_mode_clear.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:29:31

Modified files:
usr.bin/tmux   : tty.c 

Log message:
I strongly suspect it is possible for tmux to block on detach in
tty_raw, so make the fd blocking again much later and have tty_raw just
retry the write a few times.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:30:04

Modified files:
usr.bin/tmux   : key-string.c tty.c xterm-keys.c 

Log message:
In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence
and handle the most common set. Pass them through if xterm-keys is on.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:30:34

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Remove stray test code which would convert abc to x.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:31:22

Modified files:
usr.bin/tmux   : cfg.c client.c cmd-kill-server.c 
 cmd-list-buffers.c cmd-list-clients.c 
 cmd-list-commands.c cmd-lock-server.c 
 cmd-pipe-pane.c cmd-server-info.c 
 cmd-start-server.c job.c names.c screen-write.c 
 server-client.c server-fn.c server.c status.c 
 tty-keys.c tty.c window-choose.c window-clock.c 
 window-copy.c window.c 

Log message:
No more lint means no more ARGSUSED.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:32:37

Modified files:
usr.bin/tmux   : format.c tmux.1 

Log message:
Add client_session and client_last_session formats.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:33:50

Modified files:
usr.bin/tmux   : input-keys.c input.c screen-write.c tmux.h 
 tty-keys.c tty.c 

Log message:
Support the latest theory for mouse input, this is enabled/disabled with
SM/RM 1006 and is similar in style to SGR input: \033[b;x;yM or
\033[b;x;ym. From Egmont Koblinger.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:34:46

Modified files:
usr.bin/tmux   : tty.c 

Log message:
Correctly handle UTF8 mouse option being toggled, from Egmont Koblinger.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:36:54

Modified files:
usr.bin/tmux   : input.c screen-write.c 

Log message:
Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:37:39

Modified files:
usr.bin/tmux   : cmd-resize-pane.c layout.c tmux.1 tmux.h 

Log message:
Add resize-pane -x and -y for absolute pane size (much requested).



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:38:14

Modified files:
usr.bin/tmux   : tmux.h 

Log message:
Fix double space in sessions template.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:40:22

Modified files:
usr.bin/tmux   : tty.c 

Log message:
Use tty_raw on stop, not tty_puts.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:38:33

Modified files:
usr.bin/tmux   : window-choose.c 

Log message:
Don't hang when clearing line in choose mode now that the cursor stays
at the end with wrap.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:41:01

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Unbreak line wrapping.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:41:57

Modified files:
usr.bin/tmux   : cfg.c 

Log message:
Don't try to print unterminated strings when loading configuration file.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 04:42:55

Modified files:
usr.bin/tmux   : server-fn.c 

Log message:
Prevent lock on control clients, not on others.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:49:55

Modified files:
usr.bin/tmux   : cfg.c cmd-command-prompt.c cmd-confirm-before.c 
 cmd-if-shell.c cmd-list.c cmd-run-shell.c cmd.c 
 control.c key-bindings.c server-client.c tmux.h 
 window-choose.c 

Log message:
Add functions to allocate and free command contexts rather than doing it
all on the stack.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:50:13

Modified files:
usr.bin/tmux   : cfg.c 

Log message:
load_cfg can actually use the same context now they are reference counted.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:50:42

Modified files:
usr.bin/tmux   : cmd-command-prompt.c cmd-confirm-before.c 
 control.c key-bindings.c server-client.c 
 window-choose.c 

Log message:
Remove unnecessary initializers of cmd_ctx.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:51:15

Modified files:
usr.bin/tmux   : cmd-capture-pane.c tmux.1 

Log message:
Don't use a target-client for stdout, just always cmdclient.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:52:42

Modified files:
usr.bin/tmux   : cmd-bind-key.c cmd-list-keys.c mode-key.c 
 status.c tmux.1 tmux.h window-choose.c 
 window-copy.c 

Log message:
Add copy-pipe mode command to copy selection and also pipe to a command.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:53:24

Modified files:
usr.bin/tmux   : cmd-capture-pane.c cmd-save-buffer.c 

Log message:
Fix so capture-pane/save-buffer can work in control clients, from George
Nachman.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:53:58

Modified files:
usr.bin/tmux   : grid.c 

Log message:
Clear last attributes after reset in string_cells, from George Nachman.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:54:29

Modified files:
usr.bin/tmux   : cfg.c cmd-command-prompt.c cmd-confirm-before.c 
 cmd.c control.c key-bindings.c server-client.c 
 tmux.h window-choose.c 

Log message:
Need to set clients in context before changing their reference count.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:55:22

Modified files:
usr.bin/tmux   : cmd-break-pane.c cmd-run-shell.c status.c 

Log message:
evbuffer_readline returns allocated storage, don't leak it.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 09:56:11

Modified files:
usr.bin/tmux   : cmd-capture-pane.c grid-view.c grid.c tmux.1 
 tmux.h 

Log message:
Add -C and -J to capture pane to escape control sequences and to join
wrapped line, based on a diff from George Nachman.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 10:00:26

Modified files:
usr.bin/tmux   : session.c tmux.h 

Log message:
Add session_set_current helper function, extracted from a diff from
Aaron Jensen.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 10:03:35

Modified files:
usr.bin/tmux   : format.c tmux.1 

Log message:
Add a load of miscellaneous pane formats, from George Nachman.



CVS: cvs.openbsd.org: src

2013-03-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2013/03/22 12:45:36

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Couple of fixes pointed out by jmc.



  1   2   3   4   5   6   7   8   9   10   >