|
| 1 | +# Compatibility notes |
| 2 | + |
| 3 | +## master |
| 4 | + |
| 5 | +src: <http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/> |
| 6 | + |
| 7 | +## 1.8 |
| 8 | + |
| 9 | +src: <http://sourceforge.net/p/tmux/tmux-code/ci/1.8/tree/> |
| 10 | + |
| 11 | +## 1.7 |
| 12 | + |
| 13 | +src: <http://sourceforge.net/p/tmux/tmux-code/ci/1.7/tree/> |
| 14 | + |
| 15 | +## 1.6 |
| 16 | + |
| 17 | +src: <http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/> |
| 18 | + |
| 19 | +### new-window |
| 20 | + |
| 21 | +src: |
| 22 | +<http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/cmd-new-window.c> |
| 23 | + |
| 24 | +```c |
| 25 | +if (args_has(args, 'P')) |
| 26 | + ctx->print(ctx, "%s:%u", s->name, wl->idx); |
| 27 | +return (0); |
| 28 | +``` |
| 29 | +
|
| 30 | +### split-window |
| 31 | +
|
| 32 | +src: |
| 33 | +<http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/cmd-split-window.c> |
| 34 | +
|
| 35 | +```c |
| 36 | +if (args_has(args, 'P')) { |
| 37 | + if (window_pane_index(new_wp, &paneidx) != 0) |
| 38 | + fatalx("index not found"); |
| 39 | + ctx->print(ctx, "%s:%u.%u", s->name, wl->idx, paneidx); |
| 40 | +} |
| 41 | +return (0); |
| 42 | +``` |
| 43 | + |
| 44 | +### list-sessions |
| 45 | + |
| 46 | +src: |
| 47 | +<http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/cmd-list-sessions.c> |
| 48 | + |
| 49 | +```c |
| 50 | +template = "#{session_name}: #{session_windows} windows " |
| 51 | + "(created #{session_created_string}) [#{session_width}x" |
| 52 | + "#{session_height}]#{?session_grouped, (group ,}" |
| 53 | + "#{session_group}#{?session_grouped,),}" |
| 54 | + "#{?session_attached, (attached),}"; |
| 55 | +``` |
| 56 | + |
| 57 | +### list-windows |
| 58 | + |
| 59 | +src: |
| 60 | +<http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/cmd-list-windows.c> |
| 61 | + |
| 62 | +```c |
| 63 | +template = "#{session_name}:#{window_index}: " |
| 64 | + "#{window_name} " |
| 65 | + "[#{window_width}x#{window_height}] " |
| 66 | + "[layout #{window_layout}]" |
| 67 | + "#{?window_active, (active),}"; |
| 68 | +``` |
| 69 | + |
| 70 | +### list-panes |
| 71 | + |
| 72 | +src: |
| 73 | +<http://sourceforge.net/p/tmux/tmux-code/ci/1.6/tree/cmd-list-panes.c> |
| 74 | + |
| 75 | +```c |
| 76 | +template = "#{session_name}:#{window_index}.#{pane_index}: " |
| 77 | + "[#{pane_width}x#{pane_height}] [history " |
| 78 | + "#{history_size}/#{history_limit}, " |
| 79 | + "#{history_bytes} bytes] #{pane_id}" |
| 80 | + "#{?pane_active, (active),}#{?pane_dead, (dead),}"; |
| 81 | +``` |
0 commit comments