[BACK]Return to sys_bsd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / telnet

Diff for /src/usr.bin/telnet/sys_bsd.c between version 1.32 and 1.33

version 1.32, 2016/03/16 15:41:11 version 1.33, 2017/07/07 09:14:26
Line 123 
Line 123 
     tcgetattr(0, &old_tc);      tcgetattr(0, &old_tc);
   
     new_tc = old_tc;      new_tc = old_tc;
   
 #ifndef VDISCARD  
     termFlushChar = CONTROL('O');  
 #endif  
 #ifndef VWERASE  
     termWerasChar = CONTROL('W');  
 #endif  
 #ifndef VREPRINT  
     termRprntChar = CONTROL('R');  
 #endif  
 #ifndef VLNEXT  
     termLiteralNextChar = CONTROL('V');  
 #endif  
 #ifndef VSTART  
     termStartChar = CONTROL('Q');  
 #endif  
 #ifndef VSTOP  
     termStopChar = CONTROL('S');  
 #endif  
 #ifndef VSTATUS  
     termAytChar = CONTROL('T');  
 #endif  
 }  }
   
 cc_t *  cc_t *
Line 161 
Line 139 
     case SLC_FORW1:     return(&termForw1Char);      case SLC_FORW1:     return(&termForw1Char);
     case SLC_FORW2:     return(&termForw2Char);      case SLC_FORW2:     return(&termForw2Char);
     case SLC_SUSP:      return(&termSuspChar);      case SLC_SUSP:      return(&termSuspChar);
 # ifdef VDISCARD  
     case SLC_AO:        return(&termFlushChar);      case SLC_AO:        return(&termFlushChar);
 # endif  
 # ifdef VWERASE  
     case SLC_EW:        return(&termWerasChar);      case SLC_EW:        return(&termWerasChar);
 # endif  
 # ifdef VREPRINT  
     case SLC_RP:        return(&termRprntChar);      case SLC_RP:        return(&termRprntChar);
 # endif  
 # ifdef VLNEXT  
     case SLC_LNEXT:     return(&termLiteralNextChar);      case SLC_LNEXT:     return(&termLiteralNextChar);
 # endif  
 # ifdef VSTATUS  
     case SLC_AYT:       return(&termAytChar);      case SLC_AYT:       return(&termAytChar);
 # endif  
   
     case SLC_SYNCH:      case SLC_SYNCH:
     case SLC_BRK:      case SLC_BRK:
     case SLC_EOR:      case SLC_EOR:
Line 189 
Line 156 
 TerminalDefaultChars(void)  TerminalDefaultChars(void)
 {  {
     memcpy(new_tc.c_cc, old_tc.c_cc, sizeof(old_tc.c_cc));      memcpy(new_tc.c_cc, old_tc.c_cc, sizeof(old_tc.c_cc));
 # ifndef        VDISCARD  
     termFlushChar = CONTROL('O');  
 # endif  
 # ifndef        VWERASE  
     termWerasChar = CONTROL('W');  
 # endif  
 # ifndef        VREPRINT  
     termRprntChar = CONTROL('R');  
 # endif  
 # ifndef        VLNEXT  
     termLiteralNextChar = CONTROL('V');  
 # endif  
 # ifndef        VSTART  
     termStartChar = CONTROL('Q');  
 # endif  
 # ifndef        VSTOP  
     termStopChar = CONTROL('S');  
 # endif  
 # ifndef        VSTATUS  
     termAytChar = CONTROL('T');  
 # endif  
 }  }
   
 /*  /*

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33