mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix a bug that caused tmux to unexpectedly underline all
characters when the status bar requests a bold color PR: 180787 Submitted by: Julio Merino <julio+host-mastodon-jmmv@meroh.net>
This commit is contained in:
parent
714a76679a
commit
61678df43a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323874
2 changed files with 26 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= tmux
|
PORTNAME= tmux
|
||||||
PORTVERSION= 1.8
|
PORTVERSION= 1.8
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
|
|
25
sysutils/tmux/files/patch-tty.c
Normal file
25
sysutils/tmux/files/patch-tty.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
Apply upstream commit cbee283c26968304b473e2191d2bb5f52208b58d to prevent
|
||||||
|
OS X's Terminal.app turning on underlining when the status bar contains
|
||||||
|
bold characters.
|
||||||
|
|
||||||
|
--- tty.c
|
||||||
|
+++ tty.c
|
||||||
|
@@ -220,7 +220,7 @@ tty_start_tty(struct tty *tty)
|
||||||
|
tty_puts(tty, "\033[?1000l\033[?1006l\033[?1005l");
|
||||||
|
|
||||||
|
if (tty_term_has(tty->term, TTYC_XT))
|
||||||
|
- tty_puts(tty, "\033[c\033[>4;1m\033[?1004h");
|
||||||
|
+ tty_puts(tty, "\033[c\033[>4;1m\033[?1004h\033[m");
|
||||||
|
|
||||||
|
tty->cx = UINT_MAX;
|
||||||
|
tty->cy = UINT_MAX;
|
||||||
|
@@ -283,7 +283,7 @@ tty_stop_tty(struct tty *tty)
|
||||||
|
tty_raw(tty, "\033[?1000l\033[?1006l\033[?1005l");
|
||||||
|
|
||||||
|
if (tty_term_has(tty->term, TTYC_XT))
|
||||||
|
- tty_raw(tty, "\033[>4m\033[?1004l");
|
||||||
|
+ tty_raw(tty, "\033[>4m\033[?1004l\033[m");
|
||||||
|
|
||||||
|
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
|
Loading…
Add table
Reference in a new issue