22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# include <dos/dos.h>
#endif
OF_ASSUME_NONNULL_BEGIN
/*! @file */
/*!
* @class OFStdIOStream OFStdIOStream.h ObjFW/OFStdIOStream.h
*
* @brief A class for providing standard input, output and error as OFStream.
*
* The global variables @ref of_stdin, @ref of_stdout and @ref of_stderr are
* instances of this class and need no initialization.
|
>
>
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# include <dos/dos.h>
#endif
OF_ASSUME_NONNULL_BEGIN
/*! @file */
@class OFColor;
/*!
* @class OFStdIOStream OFStdIOStream.h ObjFW/OFStdIOStream.h
*
* @brief A class for providing standard input, output and error as OFStream.
*
* The global variables @ref of_stdin, @ref of_stdout and @ref of_stderr are
* instances of this class and need no initialization.
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*!
* @brief The number of rows, or -1 if there is no underlying terminal or the
* number of rows could not be queried.
*/
@property (readonly, nonatomic) int rows;
- (instancetype)init OF_UNAVAILABLE;
@end
#ifdef __cplusplus
extern "C" {
#endif
/*! @file */
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*!
* @brief The number of rows, or -1 if there is no underlying terminal or the
* number of rows could not be queried.
*/
@property (readonly, nonatomic) int rows;
- (instancetype)init OF_UNAVAILABLE;
/*!
* @brief Sets the foreground color on the underlying terminal. Does nothing if
* there is no underlying terminal or colors are unsupported.
*
* @param color The foreground color to set
*/
- (void)setForegroundColor: (OFColor *)color;
/*!
* @brief Sets the background color on the underlying terminal. Does nothing if
* there is no underlying terminal or colors are unsupported.
*
* @param color The background color to set
*/
- (void)setBackgroundColor: (OFColor *)color;
/*!
* @brief Resets forward and background color.
*/
- (void)resetColor;
@end
#ifdef __cplusplus
extern "C" {
#endif
/*! @file */
|