Nicholas Marriott
889fe42e11
Break out termios initialization into a separate function, from George
...
Nachman.
2012-03-17 21:27:51 +00:00
Nicholas Marriott
164e85cca7
Do not clear to end of line if the line is full, fixes missing last
...
character in rightmost pane.
2012-03-17 19:29:46 +00:00
Nicholas Marriott
0b34fefe6e
Use the region lower not the pane size to work out where the bottom line
...
is.
2012-03-17 19:18:37 +00:00
Nicholas Marriott
928f40615c
Tweak last fix to actually hit the right end of pane.
2012-03-17 18:51:50 +00:00
Nicholas Marriott
d3c842d367
Check event_initialized before event_del if event may not have been set
...
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-17 18:24:07 +00:00
Nicholas Marriott
0489213b1b
Revert screen-write.c r1.54 and fix the bug properly. After wrapping a
...
line in a pane, the cursor needs to move to the next line unless it
scrolled.
2012-03-17 17:36:03 +00:00
Nicholas Marriott
c8c0d68128
Send secondary DA to terminals with XT in terminfo when starting up and
...
parse it to work out the xterm version.
2012-03-15 10:36:00 +00:00
Nicholas Marriott
005566f915
Fix a warning. Doh.
2012-03-15 09:22:31 +00:00
Nicholas Marriott
698361ccde
Add a helper function for enabling an optimization to make some code
...
clearer.
2012-03-15 09:10:33 +00:00
Nicholas Marriott
575bfa4b4b
Erm, use EL in a way that actually works...
2012-03-12 12:43:18 +00:00
Nicholas Marriott
31ddae7735
Use EL to clear to end of line if possible.
2012-03-12 12:38:42 +00:00
Nicholas Marriott
799f437eff
Remove some bits leftover from unused backoff code.
2012-03-09 21:42:13 +00:00
Tiago Cunha
3275e9bd5b
Sync OpenBSD patchset 1037:
...
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.
2012-03-07 13:36:19 +00:00
Nicholas Marriott
f4fdddc930
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.
2012-03-03 09:43:22 +00:00
Tiago Cunha
290636bc86
Sync OpenBSD patchset 1029:
...
Add a wrapper function tty_set_size from George Nachman.
2012-02-15 19:32:12 +00:00
Nicholas Marriott
fddbd44c18
Add a wrapper function tty_set_size from George Nachman.
2012-02-15 17:25:02 +00:00
Tiago Cunha
e4a7cefe0c
Sync OpenBSD patchset 1015:
...
Add an option to move the status line to the top of the screen,
requested by many.
2012-01-29 12:57:01 +00:00
Nicholas Marriott
230d0fbc9e
Add an option to move the status line to the top of the screen,
...
requested by many.
2012-01-29 09:37:02 +00:00
Tiago Cunha
d4c2a935f2
Sync OpenBSD patchset 1006:
...
Add strings to allow the aixterm bright colours to be used when
configuring colours, requested by Elliott Cable a few months ago.
2012-01-21 19:33:45 +00:00
Nicholas Marriott
7f24020cbe
Add strings to allow the aixterm bright colours to be used when
...
configuring colours, requested by Elliott Cable a few months ago.
2012-01-21 08:23:12 +00:00
Tiago Cunha
ad5c4e719b
Sync OpenBSD patchset 997:
...
Calculate last position correctly for UTF-8 wide characters, reported by
Matthias Lederhofer.
2012-01-20 21:16:07 +00:00
Nicholas Marriott
299a8fd4a3
Calculate last position correctly for UTF-8 wide characters, reported by
...
Matthias Lederhofer.
2012-01-15 19:39:42 +00:00
Tiago Cunha
c41a93d130
Sync OpenBSD patchset 949:
...
Add a tty_bell wrapper function, from Dylan Alex Simon.
2011-08-25 21:12:52 +00:00
Nicholas Marriott
029c34ce6b
Add a tty_bell wrapper function, from Dylan Alex Simon.
2011-08-24 09:58:44 +00:00
Tiago Cunha
159faa4ed7
Sync OpenBSD patchset 921:
...
Trim another useless if statement, from Ailin Nemui.
2011-05-26 20:18:06 +00:00
Nicholas Marriott
34e5ec1807
Trim another useless if statement, from Ailin Nemui.
2011-05-26 07:08:48 +00:00
Tiago Cunha
b2f301f4e2
Sync OpenBSD patchset 916:
...
Support DECSCUSR sequence to set the cursor style with two new
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-22 16:26:09 +00:00
Tiago Cunha
719755574d
Sync OpenBSD patchset 915:
...
Support xterm(1) cursor colour change sequences through terminfo(5) Cc
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.
2011-05-22 16:25:02 +00:00
Tiago Cunha
89f35125b4
Sync OpenBSD patchset 914:
...
Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to
allow it).
Written by and much discussed Ailin Nemui, guidance on
xterm/termcap/terminfo from Thomas Dickey.
2011-05-22 16:23:07 +00:00
Nicholas Marriott
3ea5e06bfb
Support DECSCUSR sequence to set the cursor style with two new
...
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-20 19:17:39 +00:00
Nicholas Marriott
944b5e6fa0
Support xterm(1) cursor colour change sequences through terminfo(5) Cc
...
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.
2011-05-20 19:03:58 +00:00
Tiago Cunha
4fcbf4b872
Sync OpenBSD patchset 904:
...
Use the tsl and fsl terminfo(5) capabilities to update terminal title
and automatically fill them in on terminals with the XT capability
(which means their title setting is xterm-compatible). From hsim at
gmx.li.
2011-05-18 20:28:43 +00:00
Nicholas Marriott
96e7f33da3
Support setting the xterm clipboard when copying from copy mode using
...
the xterm escape sequence for the purpose (if xterm is configured to
allow it).
Written by and much discussed Ailin Nemui, guidance on
xterm/termcap/terminfo from Thomas Dickey.
2011-05-18 20:24:29 +00:00
Nicholas Marriott
295ace6820
Use the tsl and fsl terminfo(5) capabilities to update terminal title
...
and automatically fill them in on terminals with the XT capability
(which means their title setting is xterm-compatible). From hsim at
gmx.li.
2011-05-08 19:53:06 +00:00
Nicholas Marriott
75f218dc73
If the terminal supports sitm for italics, use it instead of standout
...
(smso). From Tiago Resende.
2011-04-09 07:48:58 +00:00
Nicholas Marriott
0a09d04e1b
If the terminal supports sitm for italics, use it instead of standout
...
(smso). From Tiago Resende.
2011-04-09 07:48:08 +00:00
Nicholas Marriott
129f0dc893
|PatchSet 872
...
|Date: 2011/03/27 21:36:19
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Set the terminal blocking again earlier, before sending the reset
|sequences.
2011-04-06 22:18:05 +00:00
Nicholas Marriott
71e8e26ccc
Set the terminal blocking again earlier, before sending the reset
...
sequences.
2011-03-27 20:36:19 +00:00
Nicholas Marriott
d74e5bffba
Fix to properly wrap wide characters, from Micah Cowan.
2011-03-26 19:07:33 +00:00
Micah Cowan
a9eb5e12ec
Fix to properly wrap wide characters.
2011-03-24 17:03:29 +00:00
Tiago Cunha
164c2cbcb0
Sync OpenBSD patchset 868:
...
Fix an incorrect test which was always true (oupper is always < olower),
from Yusuke ENDOH.
2011-03-19 23:32:01 +00:00
Tiago Cunha
a0295b4c2f
Sync OpenBSD patchset 866:
...
Support passing through escape sequences to the underlying terminal by
using DCS with a "tmux;" prefix. Escape characters in the sequences must
be doubled. For example:
$ printf '\033Ptmux;\033\033]12;red\007\033\\'
Will pass \033]12;red\007 to the terminal (and change the cursor colour
in xterm). From Kevin Goodsell.
2011-03-19 23:30:37 +00:00
Nicholas Marriott
54456d5602
Fix an incorrect test which was always true (oupper is always < olower),
...
from Yusuke ENDOH.
2011-03-08 19:23:49 +00:00
Nicholas Marriott
79e30daeae
Support passing through escape sequences to the underlying terminal by
...
using DCS with a "tmux;" prefix. Escape characters in the sequences must
be doubled. For example:
$ printf '\033Ptmux;\033\033]12;red\007\033\\'
Will pass \033]12;red\007 to the terminal (and change the cursor colour
in xterm). From Kevin Goodsell.
2011-03-07 23:46:27 +00:00
Tiago Cunha
d718a14bd0
Sync OpenBSD patchset 858:
...
Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if the
terminal disappears while locked.
2011-02-15 15:24:00 +00:00
Nicholas Marriott
9fc2c34a3b
Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if the
...
terminal disappears while locked.
2011-01-29 08:39:43 +00:00
Tiago Cunha
1930181b18
Sync OpenBSD patchset 846:
...
Only set a mouse mode for mouse-select-pane if none already set by the
mode (any will do).
2011-01-21 23:56:53 +00:00
Tiago Cunha
332bfbf273
Sync OpenBSD patchset 845:
...
Mouse highlight mode (1001) requires a program to cooperate so
supporting it through tmux is not as easy as this, remove it for now.
2011-01-21 23:56:11 +00:00
Tiago Cunha
492e3aa437
Sync OpenBSD patchset 834:
...
Move all calls to fcntl(...O_NONBLOCK) into a function and clear the
flag on the stdio file descriptors before closing them (fixes things
like "tmux ls && cat").
2011-01-21 23:44:13 +00:00
Nicholas Marriott
3de1700f61
Only set a mouse mode for mouse-select-pane if none already set by the
...
mode (any will do).
2011-01-15 00:46:19 +00:00