termios-c_oflag.h 3.3 KB

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