@@ -84,7 +84,9 @@ mod_export int tclen[TC_COUNT];
8484/**/
8585int tclines , tccolumns ;
8686/**/
87- mod_export int hasam , hasbw , hasxn , hasye ;
87+ mod_export int hasam ;
88+ /**/
89+ int hasxn ;
8890
8991/* Value of the Co (max_colors) entry: may not be set */
9092
@@ -97,7 +99,7 @@ mod_export int tccolours;
9799mod_export sigset_t sigchld_mask ;
98100
99101/**/
100- mod_export struct hookdef zshhooks [] = {
102+ struct hookdef zshhooks [] = {
101103 HOOKDEF ("exit" , NULL , HOOKF_ALL ),
102104 HOOKDEF ("before_trap" , NULL , HOOKF_ALL ),
103105 HOOKDEF ("after_trap" , NULL , HOOKF_ALL ),
@@ -815,9 +817,7 @@ init_term(void)
815817
816818 /* check whether terminal has automargin (wraparound) capability */
817819 hasam = tgetflag ("am" );
818- hasbw = tgetflag ("bw" );
819820 hasxn = tgetflag ("xn" ); /* also check for newline wraparound glitch */
820- hasye = tgetflag ("YE" ); /* print in last column does carriage return */
821821
822822 tclines = tgetnum ("li" );
823823 tccolumns = tgetnum ("co" );
@@ -870,6 +870,8 @@ init_term(void)
870870 rprompt_indent = 1 ; /* If you change this, update rprompt_indent_unsetfn() */
871871 /* The following is an attempt at a heuristic,
872872 * but it fails in some cases */
873+ /* int hasbw = tgetflag("bw"); */
874+ /* int hasye = tgetflag("YE"); */ /* print in last column does carriage return */
873875 /* rprompt_indent = ((hasam && !hasbw) || hasye || !tccan(TCLEFT)); */
874876
875877 /* if there's no termcap entry for italics, use CSI 3 m */
0 commit comments