Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    6abe05cd
    Fix implementation of TCGETS ioctl on console · 6abe05cd
    Nadav Har'El authored
    While I implemented TCSETS ioctl, TCGETS used to be a no-op. This patch
    implements it (which is trivial). TGETS is need because the standard
    idiom for programs which switch to raw mode is to use TCGETS to save the
    original mode, then use TCSETS, and when exiting restore the original mode.
    
    Also used <sys/ioctl.h> definitions (from the host...) instead of the ugly
    ioctl numbers.
    6abe05cd
    History
    Fix implementation of TCGETS ioctl on console
    Nadav Har'El authored
    While I implemented TCSETS ioctl, TCGETS used to be a no-op. This patch
    implements it (which is trivial). TGETS is need because the standard
    idiom for programs which switch to raw mode is to use TCGETS to save the
    original mode, then use TCSETS, and when exiting restore the original mode.
    
    Also used <sys/ioctl.h> definitions (from the host...) instead of the ugly
    ioctl numbers.
java NaN GiB