iPXE
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
b
d
i
p
s
t
u
v
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
include
ipxe
lineconsole.h
Go to the documentation of this file.
1
#ifndef _IPXE_LINECONSOLE_H
2
#define _IPXE_LINECONSOLE_H
3
4
/** @file
5
*
6
* Line-based console
7
*
8
*/
9
10
FILE_LICENCE
( GPL2_OR_LATER_OR_UBDL );
11
12
#include <
stdint.h
>
13
#include <
ipxe/ansiesc.h
>
14
15
/** A line-based console */
16
struct
line_console
{
17
/** Data buffer
18
*
19
* Must initially be filled with NULs
20
*/
21
char
*
buffer
;
22
/** Current index within buffer */
23
size_t
index
;
24
/** Length of buffer
25
*
26
* The final character of the buffer will only ever be used as
27
* a potential terminating NUL.
28
*/
29
size_t
len
;
30
/** ANSI escape sequence context */
31
struct
ansiesc_context
ctx
;
32
};
33
34
extern
size_t
line_putchar
(
struct
line_console
*line,
int
character );
35
36
#endif
/* _IPXE_LINECONSOLE_H */
line_console::index
size_t index
Current index within buffer.
Definition:
lineconsole.h:23
FILE_LICENCE
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
line_console
A line-based console.
Definition:
lineconsole.h:16
ansiesc_context
ANSI escape sequence context.
Definition:
ansiesc.h:73
line_putchar
size_t line_putchar(struct line_console *line, int character)
Print a character to a line-based console.
Definition:
lineconsole.c:43
line_console::len
size_t len
Length of buffer.
Definition:
lineconsole.h:29
ansiesc.h
ANSI escape sequences.
line_console::ctx
struct ansiesc_context ctx
ANSI escape sequence context.
Definition:
lineconsole.h:31
stdint.h
line_console::buffer
char * buffer
Data buffer.
Definition:
lineconsole.h:21
Generated by
1.8.15