Skip to content
Snippets Groups Projects
  1. Apr 04, 2020
    • Joshua M. Clulow's avatar
      fix cfmakeraw() for illumos and Solaris · 5b6a3335
      Joshua M. Clulow authored
      This change fixes two issues.  First, the current cfmakeraw()
      implementation in this crate appears to be making a stack copy of the
      input "struct termios" before modifying it, rather than correctly
      modifying the original through the pointer.  Before this modification
      the routine did not, thus, set the flags for raw mode.
      
      Second, we address the default settings of the MIN and TIME terminal
      options.  On at least FreeBSD and Linux systems, the modern default
      value for MIN appears to be 1; i.e., block and wait for at least one
      input byte.  On most Solaris and illumos systems, the MIN control
      character slot overlaps with EOF, and thus has a default value of 4.
      This breaks at least the examples in the "termion" crate, and probably
      quite a lot of other software written first and foremost for Linux
      systems.  We need to force the MIN value to 1 while switching to raw
      mode.
      5b6a3335
  2. Mar 29, 2020
  3. Mar 28, 2020
  4. Mar 26, 2020
  5. Mar 25, 2020
  6. Mar 21, 2020
  7. Mar 20, 2020
  8. Mar 18, 2020
  9. Mar 17, 2020
  10. Mar 15, 2020
  11. Mar 14, 2020
  12. Mar 13, 2020
  13. Mar 10, 2020
  14. Mar 09, 2020
  15. Mar 08, 2020
  16. Mar 06, 2020
  17. Mar 04, 2020
  18. Mar 01, 2020
  19. Feb 29, 2020
  20. Feb 28, 2020
Loading