master
 1/* termios output mode definitions.  Linux/generic version.
 2   Copyright (C) 2019-2025 Free Software Foundation, Inc.
 3   This file is part of the GNU C Library.
 4
 5   The GNU C Library is free software; you can redistribute it and/or
 6   modify it under the terms of the GNU Lesser General Public
 7   License as published by the Free Software Foundation; either
 8   version 2.1 of the License, or (at your option) any later version.
 9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library.  If not, see
17   <https://www.gnu.org/licenses/>.  */
18
19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
21#endif
22
23/* c_oflag bits */
24#define OPOST	0000001  /* Post-process output.  */
25#define OLCUC	0000002  /* Map lowercase characters to uppercase on output.
26			    (not in POSIX).  */
27#define ONLCR	0000004  /* Map NL to CR-NL on output.  */
28#define OCRNL	0000010  /* Map CR to NL on output.  */
29#define ONOCR	0000020  /* No CR output at column 0.  */
30#define ONLRET	0000040  /* NL performs CR function.  */
31#define OFILL	0000100  /* Use fill characters for delay.  */
32#define OFDEL	0000200  /* Fill is DEL.  */
33#if defined __USE_MISC || defined __USE_XOPEN
34# define NLDLY	0000400  /* Select newline delays:  */
35# define   NL0	0000000  /* Newline type 0.  */
36# define   NL1	0000400  /* Newline type 1.  */
37# define CRDLY	0003000  /* Select carriage-return delays:  */
38# define   CR0	0000000  /* Carriage-return delay type 0.  */
39# define   CR1	0001000  /* Carriage-return delay type 1.  */
40# define   CR2	0002000  /* Carriage-return delay type 2.  */
41# define   CR3	0003000  /* Carriage-return delay type 3.  */
42# define TABDLY	0014000  /* Select horizontal-tab delays:  */
43# define   TAB0	0000000  /* Horizontal-tab delay type 0.  */
44# define   TAB1	0004000  /* Horizontal-tab delay type 1.  */
45# define   TAB2	0010000  /* Horizontal-tab delay type 2.  */
46# define   TAB3	0014000  /* Expand tabs to spaces.  */
47# define BSDLY	0020000  /* Select backspace delays:  */
48# define   BS0	0000000  /* Backspace-delay type 0.  */
49# define   BS1	0020000  /* Backspace-delay type 1.  */
50# define FFDLY	0100000  /* Select form-feed delays:  */
51# define   FF0	0000000  /* Form-feed delay type 0.  */
52# define   FF1	0100000  /* Form-feed delay type 1.  */
53#endif
54
55#define VTDLY	0040000  /* Select vertical-tab delays:  */
56#define   VT0	0000000  /* Vertical-tab delay type 0.  */
57#define   VT1	0040000  /* Vertical-tab delay type 1.  */
58
59#ifdef __USE_MISC
60# define XTABS	0014000
61#endif