termios-c_lflag.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* termios local mode definitions. Linux/generic version.
  2. Copyright (C) 2019-2021 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library. If not, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef _TERMIOS_H
  16. # error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
  17. #endif
  18. /* c_lflag bits */
  19. #define ISIG 0000001 /* Enable signals. */
  20. #define ICANON 0000002 /* Canonical input (erase and kill processing). */
  21. #if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
  22. # define XCASE 0000004
  23. #endif
  24. #define ECHO 0000010 /* Enable echo. */
  25. #define ECHOE 0000020 /* Echo erase character as error-correcting
  26. backspace. */
  27. #define ECHOK 0000040 /* Echo KILL. */
  28. #define ECHONL 0000100 /* Echo NL. */
  29. #define NOFLSH 0000200 /* Disable flush after interrupt or quit. */
  30. #define TOSTOP 0000400 /* Send SIGTTOU for background output. */
  31. #ifdef __USE_MISC
  32. # define ECHOCTL 0001000 /* If ECHO is also set, terminal special characters
  33. other than TAB, NL, START, and STOP are echoed as
  34. ^X, where X is the character with ASCII code 0x40
  35. greater than the special character
  36. (not in POSIX). */
  37. # define ECHOPRT 0002000 /* If ICANON and ECHO are also set, characters are
  38. printed as they are being erased
  39. (not in POSIX). */
  40. # define ECHOKE 0004000 /* If ICANON is also set, KILL is echoed by erasing
  41. each character on the line, as specified by ECHOE
  42. and ECHOPRT (not in POSIX). */
  43. # define FLUSHO 0010000 /* Output is being flushed. This flag is toggled by
  44. typing the DISCARD character (not in POSIX). */
  45. # define PENDIN 0040000 /* All characters in the input queue are reprinted
  46. when the next character is read
  47. (not in POSIX). */
  48. #endif
  49. #define IEXTEN 0100000 /* Enable implementation-defined input
  50. processing. */
  51. #ifdef __USE_MISC
  52. # define EXTPROC 0200000
  53. #endif