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

Diff for /src/usr.bin/telnet/terminal.c between version 1.12 and 1.13

version 1.12, 2014/07/20 12:08:55 version 1.13, 2014/07/22 07:30:24
Line 74 
Line 74 
  */   */
   
 void  void
 init_terminal()  init_terminal(void)
 {  {
         struct termios tc;          struct termios tc;
   
Line 85 
Line 85 
         autoflush = (tc.c_lflag & NOFLSH) == 0;          autoflush = (tc.c_lflag & NOFLSH) == 0;
 }  }
   
   
 /*  /*
  *              Send as much data as possible to the terminal.   *              Send as much data as possible to the terminal.
  *   *
Line 96 
Line 95 
  *                       n: All data - n was written out.   *                       n: All data - n was written out.
  */   */
   
   int
     int  ttyflush(int drop)
 ttyflush(drop)  
     int drop;  
 {  {
     int n, n0, n1;      int n, n0, n1;
   
Line 149 
Line 146 
  * of various global variables).   * of various global variables).
  */   */
   
   int
     int  getconnmode(void)
 getconnmode()  
 {  {
     int mode = 0;      int mode = 0;
   
Line 185 
Line 181 
     return(mode);      return(mode);
 }  }
   
     void  void
 setconnmode(force)  setconnmode(int force)
     int force;  
 {  {
     int newmode;      int newmode;
   
Line 196 
Line 191 
     TerminalNewMode(newmode);      TerminalNewMode(newmode);
 }  }
   
   void
     void  setcommandmode(void)
 setcommandmode()  
 {  {
     TerminalNewMode(-1);      TerminalNewMode(-1);
 }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13