diff options
| author | Rami Ylimäki | 2017-02-18 12:56:12 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-02-18 12:56:12 +0200 |
| commit | 464a51ed46990554bed8a9443168c976d6c3c6d3 (patch) | |
| tree | bc9509af8fb2f427ccdbb9f5357134feea23bc77 /src/term.c | |
| parent | 723dd50a9fea03ca54692e5cb50ca2907b4c66f5 (diff) | |
| download | emacs-464a51ed46990554bed8a9443168c976d6c3c6d3.tar.gz emacs-464a51ed46990554bed8a9443168c976d6c3c6d3.zip | |
Remove unused TN_max_pairs field
* src/termchar.h (tty_display_info): Remove TN_max_pairs field,
describing maximum number of terminal background/foreground color pairs.
* src/term.c (tty_default_color_capabilities, tty_setup_colors)
(init_tty): Remove references to TN_max_pairs.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/term.c b/src/term.c index c067a86d184..b0ff9cb546d 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2048,7 +2048,6 @@ TERMINAL does not refer to a text terminal. */) | |||
| 2048 | to work around an HPUX compiler bug (?). See | 2048 | to work around an HPUX compiler bug (?). See |
| 2049 | http://lists.gnu.org/archive/html/emacs-devel/2007-08/msg00410.html */ | 2049 | http://lists.gnu.org/archive/html/emacs-devel/2007-08/msg00410.html */ |
| 2050 | static int default_max_colors; | 2050 | static int default_max_colors; |
| 2051 | static int default_max_pairs; | ||
| 2052 | static int default_no_color_video; | 2051 | static int default_no_color_video; |
| 2053 | static char *default_orig_pair; | 2052 | static char *default_orig_pair; |
| 2054 | static char *default_set_foreground; | 2053 | static char *default_set_foreground; |
| @@ -2066,7 +2065,6 @@ tty_default_color_capabilities (struct tty_display_info *tty, bool save) | |||
| 2066 | dupstring (&default_set_foreground, tty->TS_set_foreground); | 2065 | dupstring (&default_set_foreground, tty->TS_set_foreground); |
| 2067 | dupstring (&default_set_background, tty->TS_set_background); | 2066 | dupstring (&default_set_background, tty->TS_set_background); |
| 2068 | default_max_colors = tty->TN_max_colors; | 2067 | default_max_colors = tty->TN_max_colors; |
| 2069 | default_max_pairs = tty->TN_max_pairs; | ||
| 2070 | default_no_color_video = tty->TN_no_color_video; | 2068 | default_no_color_video = tty->TN_no_color_video; |
| 2071 | } | 2069 | } |
| 2072 | else | 2070 | else |
| @@ -2075,7 +2073,6 @@ tty_default_color_capabilities (struct tty_display_info *tty, bool save) | |||
| 2075 | tty->TS_set_foreground = default_set_foreground; | 2073 | tty->TS_set_foreground = default_set_foreground; |
| 2076 | tty->TS_set_background = default_set_background; | 2074 | tty->TS_set_background = default_set_background; |
| 2077 | tty->TN_max_colors = default_max_colors; | 2075 | tty->TN_max_colors = default_max_colors; |
| 2078 | tty->TN_max_pairs = default_max_pairs; | ||
| 2079 | tty->TN_no_color_video = default_no_color_video; | 2076 | tty->TN_no_color_video = default_no_color_video; |
| 2080 | } | 2077 | } |
| 2081 | } | 2078 | } |
| @@ -2095,7 +2092,6 @@ tty_setup_colors (struct tty_display_info *tty, int mode) | |||
| 2095 | { | 2092 | { |
| 2096 | case -1: /* no colors at all */ | 2093 | case -1: /* no colors at all */ |
| 2097 | tty->TN_max_colors = 0; | 2094 | tty->TN_max_colors = 0; |
| 2098 | tty->TN_max_pairs = 0; | ||
| 2099 | tty->TN_no_color_video = 0; | 2095 | tty->TN_no_color_video = 0; |
| 2100 | tty->TS_set_foreground = tty->TS_set_background = tty->TS_orig_pair = NULL; | 2096 | tty->TS_set_foreground = tty->TS_set_background = tty->TS_orig_pair = NULL; |
| 2101 | break; | 2097 | break; |
| @@ -2113,7 +2109,6 @@ tty_setup_colors (struct tty_display_info *tty, int mode) | |||
| 2113 | tty->TS_set_background = "\033[4%dm"; | 2109 | tty->TS_set_background = "\033[4%dm"; |
| 2114 | #endif | 2110 | #endif |
| 2115 | tty->TN_max_colors = 8; | 2111 | tty->TN_max_colors = 8; |
| 2116 | tty->TN_max_pairs = 64; | ||
| 2117 | tty->TN_no_color_video = 0; | 2112 | tty->TN_no_color_video = 0; |
| 2118 | break; | 2113 | break; |
| 2119 | } | 2114 | } |
| @@ -4135,7 +4130,6 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\ | |||
| 4135 | } | 4130 | } |
| 4136 | 4131 | ||
| 4137 | tty->TN_max_colors = tgetnum ("Co"); | 4132 | tty->TN_max_colors = tgetnum ("Co"); |
| 4138 | tty->TN_max_pairs = tgetnum ("pa"); | ||
| 4139 | 4133 | ||
| 4140 | tty->TN_no_color_video = tgetnum ("NC"); | 4134 | tty->TN_no_color_video = tgetnum ("NC"); |
| 4141 | if (tty->TN_no_color_video == -1) | 4135 | if (tty->TN_no_color_video == -1) |