/[rdesktop]/sourceforge.net/trunk/rdesktop/serial.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/serial.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 757 by stargo, Wed Aug 25 00:43:48 2004 UTC revision 759 by stargo, Wed Aug 25 15:42:42 2004 UTC
# Line 445  serial_create(uint32 device_id, uint32 a Line 445  serial_create(uint32 device_id, uint32 a
445    
446          tcsetattr(serial_fd, TCSANOW, ptermios);          tcsetattr(serial_fd, TCSANOW, ptermios);
447  */  */
448            pser_inf->ptermios->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
449            pser_inf->ptermios->c_oflag &= ~OPOST;
450            pser_inf->ptermios->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
451            pser_inf->ptermios->c_cflag &= ~(CSIZE|PARENB);
452            pser_inf->ptermios->c_cflag |= CS8;
453            tcsetattr(serial_fd, TCSANOW, pser_inf->ptermios);
454    
         cfmakeraw(pser_inf->ptermios);  
455          *handle = serial_fd;          *handle = serial_fd;
456    
457          /* all read and writes should be non blocking */          /* all read and writes should be non blocking */

Legend:
Removed from v.757  
changed lines
  Added in v.759

  ViewVC Help
Powered by ViewVC 1.1.26