termios-c_lflag.h 3.1 KB

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