termios-c_oflag.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* termios output 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_oflag.h> directly; use <termios.h> instead."
  17. #endif
  18. /* c_oflag bits */
  19. #define OPOST 0000001 /* Post-process output. */
  20. #define OLCUC 0000002 /* Map lowercase characters to uppercase on output.
  21. (not in POSIX). */
  22. #define ONLCR 0000004 /* Map NL to CR-NL on output. */
  23. #define OCRNL 0000010 /* Map CR to NL on output. */
  24. #define ONOCR 0000020 /* No CR output at column 0. */
  25. #define ONLRET 0000040 /* NL performs CR function. */
  26. #define OFILL 0000100 /* Use fill characters for delay. */
  27. #define OFDEL 0000200 /* Fill is DEL. */
  28. #if defined __USE_MISC || defined __USE_XOPEN
  29. # define NLDLY 0000400 /* Select newline delays: */
  30. # define NL0 0000000 /* Newline type 0. */
  31. # define NL1 0000400 /* Newline type 1. */
  32. # define CRDLY 0003000 /* Select carriage-return delays: */
  33. # define CR0 0000000 /* Carriage-return delay type 0. */
  34. # define CR1 0001000 /* Carriage-return delay type 1. */
  35. # define CR2 0002000 /* Carriage-return delay type 2. */
  36. # define CR3 0003000 /* Carriage-return delay type 3. */
  37. # define TABDLY 0014000 /* Select horizontal-tab delays: */
  38. # define TAB0 0000000 /* Horizontal-tab delay type 0. */
  39. # define TAB1 0004000 /* Horizontal-tab delay type 1. */
  40. # define TAB2 0010000 /* Horizontal-tab delay type 2. */
  41. # define TAB3 0014000 /* Expand tabs to spaces. */
  42. # define BSDLY 0020000 /* Select backspace delays: */
  43. # define BS0 0000000 /* Backspace-delay type 0. */
  44. # define BS1 0020000 /* Backspace-delay type 1. */
  45. # define FFDLY 0100000 /* Select form-feed delays: */
  46. # define FF0 0000000 /* Form-feed delay type 0. */
  47. # define FF1 0100000 /* Form-feed delay type 1. */
  48. #endif
  49. #define VTDLY 0040000 /* Select vertical-tab delays: */
  50. #define VT0 0000000 /* Vertical-tab delay type 0. */
  51. #define VT1 0040000 /* Vertical-tab delay type 1. */
  52. #ifdef __USE_MISC
  53. # define XTABS 0014000
  54. #endif