[BACK]Return to tty-term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty-term.c between version 1.81 and 1.82

version 1.81, 2020/05/16 16:44:54 version 1.82, 2020/06/05 09:32:15
Line 54 
Line 54 
   
 static const struct tty_term_code_entry tty_term_codes[] = {  static const struct tty_term_code_entry tty_term_codes[] = {
         [TTYC_ACSC] = { TTYCODE_STRING, "acsc" },          [TTYC_ACSC] = { TTYCODE_STRING, "acsc" },
           [TTYC_AM] = { TTYCODE_FLAG, "am" },
         [TTYC_AX] = { TTYCODE_FLAG, "AX" },          [TTYC_AX] = { TTYCODE_FLAG, "AX" },
         [TTYC_BCE] = { TTYCODE_FLAG, "bce" },          [TTYC_BCE] = { TTYCODE_FLAG, "bce" },
         [TTYC_BEL] = { TTYCODE_STRING, "bel" },          [TTYC_BEL] = { TTYCODE_STRING, "bel" },
Line 274 
Line 275 
         [TTYC_TSL] = { TTYCODE_STRING, "tsl" },          [TTYC_TSL] = { TTYCODE_STRING, "tsl" },
         [TTYC_U8] = { TTYCODE_NUMBER, "U8" },          [TTYC_U8] = { TTYCODE_NUMBER, "U8" },
         [TTYC_VPA] = { TTYCODE_STRING, "vpa" },          [TTYC_VPA] = { TTYCODE_STRING, "vpa" },
         [TTYC_XENL] = { TTYCODE_FLAG, "xenl" },  
         [TTYC_XT] = { TTYCODE_FLAG, "XT" }          [TTYC_XT] = { TTYCODE_FLAG, "XT" }
 };  };
   
Line 580 
Line 580 
         tty_term_apply_overrides(term);          tty_term_apply_overrides(term);
   
         /*          /*
          * Terminals without xenl (eat newline glitch) wrap at at $COLUMNS - 1           * Terminals without am (auto right margin) wrap at at $COLUMNS - 1
          * rather than $COLUMNS (the cursor can never be beyond $COLUMNS - 1).           * rather than $COLUMNS (the cursor can never be beyond $COLUMNS - 1).
          *           *
          * This is irritating, most notably because it is impossible to write           * Terminals without xenl (eat newline glitch) ignore a newline beyond
          * to the very bottom-right of the screen without scrolling.           * the right edge of the terminal, but tmux doesn't care about this -
            * it always uses absolute only moves the cursor with a newline when
            * also sending a linefeed.
          *           *
            * This is irritating, most notably because it is painful to write to
            * the very bottom-right of the screen without scrolling.
            *
          * Flag the terminal here and apply some workarounds in other places to           * Flag the terminal here and apply some workarounds in other places to
          * do the best possible.           * do the best possible.
          */           */
         if (!tty_term_flag(term, TTYC_XENL))          if (!tty_term_flag(term, TTYC_AM))
                 term->flags |= TERM_NOXENL;                  term->flags |= TERM_NOAM;
   
         /* Generate ACS table. If none is present, use nearest ASCII. */          /* Generate ACS table. If none is present, use nearest ASCII. */
         memset(term->acs, 0, sizeof term->acs);          memset(term->acs, 0, sizeof term->acs);

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82