aboutsummaryrefslogtreecommitdiff
path: root/window.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2020-12-15
|\
| * Make synchronize-panes a pane option and add -U flag to set-option tonicm2020-12-15
| | | | | | | | unset an option on all panes. GitHub issue 2491 from Rostislav Nesin.
* | Merge branch 'obsd-master'Thomas Adam2020-06-13
|\|
| * Add -b flags to insert a window before (like the existing -a for after)nicm2020-06-13
| | | | | | | | to break-pane, move-window, new-window. GitHub issue 2261.
* | Merge branch 'obsd-master'Thomas Adam2020-06-05
|\|
| * Change how panes are resized so that the code is clearer and if the panenicm2020-06-05
| | | | | | | | | | | | is resized multiple times during one event loop, it is forced to resize at the end. Also don't zoom/unzoom in switch-client if the pane hasn't changed. GitHub issue 2260.
* | Merge branch 'obsd-master'Thomas Adam2020-06-01
|\|
| * Instead of sending all data to control mode clients as fast as possible,nicm2020-06-01
| | | | | | | | | | | | add a limit of how much data will be sent to the client and try to use it for panes with some degree of fairness. GitHub issue 2217, with George Nachman.
* | Merge branch 'obsd-master'Thomas Adam2020-05-21
|\|
| * Support code for control mode flow control: allow clients to havenicm2020-05-21
| | | | | | | | | | | | separate offsets (used and acknowleged) into the pane buffers; turn off reading from panes when no clients can accept the data; and add a -A flag to refresh-client to let clients turn receiving a pane on and off.
| * Move lazy resize from the pane to the window, there is no point innicm2020-05-16
| | | | | | | | | | | | resizing the window unless it is the current window, and if we do and don't resize the pane until later there are problems if the size changes from A to B then back to A.
| * Do not hoke into struct window_pane from the tty code and instead setnicm2020-05-16
| | | | | | | | | | | | | | everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
| * Drop having a separate type for style options and make them all strings,nicm2020-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
| * Use a grid cell not a style for the pane style.nicm2020-05-16
| |
* | Move lazy resize from the pane to the window, there is no point in resizing theNicholas Marriott2020-05-16
| | | | | | | | | | window unless it is the current window, and if we do and don't resize the pane until later there are problems if the size changes from A to B then back to A.
* | Separate key flags and modifiers, log key flags, make the "xterm" flag moreNicholas Marriott2020-05-15
| | | | | | | | explicit and fix M- keys with a leading escape.
* | Do not hoke into struct window_pane from the tty code and instead setNicholas Marriott2020-05-01
| | | | | | | | | | | | everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
* | Need to redraw borders now when some things change. Also change default so thatNicholas Marriott2020-04-29
| | | | | | | | the active border colour is different in a mode or with synchronize-panes on.
* | Drop having a separate type for style options and make them all strings, whichNicholas Marriott2020-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
* | Use a grid cell not a style for the pane style.Nicholas Marriott2020-04-27
| |
* | Merge branch 'obsd-master'Thomas Adam2020-04-14
|\|
| * Make client -c and -t handling common in cmd-queue.c and try to benicm2020-04-13
| | | | | | | | | | clearer about whether the client is the target client (must have a session) or not.
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-13
| | | | | | | | use more clearly defined and preparation for some future work).
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Now that copy mode copies the pane content rather than keeping anicm2020-04-10
| | | | | | | | | | | | | | | | | | | | reference to it, it isn't necessary that the pane in copy mode is the same as the one copying from. Add a -s flag to copy-mode to specify a different pane for the source content. This means it is possible to view two places in a pane's history at the same time in different panes, or copy from a pane's history into an editor or shell in the same pane. From Anindya Mukherjee.
* | Merge branch 'obsd-master'Thomas Adam2020-04-09
|\|
| * Pass correct flags to fnmatch.nicm2020-04-09
| |
* | Merge branch 'obsd-master'Thomas Adam2020-04-06
|\|
| * Change copy mode to make copy of the pane history so it does not need tonicm2020-04-06
| | | | | | | | | | | | freeze updates (which does not play nicely with some applications, a longstanding problem) and will allow some other changes later. From Anindya Mukherjee.
* | Merge branch 'obsd-master'Thomas Adam2020-03-31
|\|
| * Move alternate screen into the screen rather than the pane.nicm2020-03-31
| |
* | Merge branch 'obsd-master'Thomas Adam2020-03-19
|\|
| * Change input path so it doesn't require a pane.nicm2020-03-19
| |
* | Merge branch 'obsd-master'Thomas Adam2020-03-16
|\|
| * FIx type for %u, from Thomas Adam.nicm2020-03-16
| |
* | Merge branch 'obsd-master'Thomas Adam2020-02-14
|\|
| * Fix top/bottom pane calculation with pane border status enabled,nicm2020-02-14
| | | | | | | | reported by Stanislav Spassov.
* | Merge branch 'obsd-master'Thomas Adam2020-01-13
|\|
| * Treat plausible but invalid keys (like C-BSpace) as literal like anynicm2020-01-13
| | | | | | | | | | other unrecognised string passed to send-keys. Reported by Anthony Sottile in GitHub issue 2049.
* | Merge branch 'obsd-master'Thomas Adam2019-12-12
|\|
| * Rewrite the code for reading and writing files. Now, if the client isnicm2019-12-12
| | | | | | | | | | | | | | | | | | not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
* | Fix bad merge.Nicholas Marriott2019-11-28
| |
* | Merge branch 'obsd-master'Thomas Adam2019-11-28
|\|
| * Make a best effort to set xpixel and ypixel for each pane and addnicm2019-11-28
| | | | | | | | formats for them.
* | Merge branch 'obsd-master'Thomas Adam2019-10-28
|\|
| * Start with empty rather than NULL window name to avoid NULL printf ifnicm2019-10-28
| | | | | | | | window_name is evaluated early. Reported by Mikolaj Kucharski.
* | Merge branch 'obsd-master'Thomas Adam2019-09-11
|\|
| * Make client exit if pane where input is going is closed.nicm2019-09-10
| |
* | Merge branch 'obsd-master'Thomas Adam2019-08-28
|\|