Miosix
2.0alpha1
|
#include <console_device.h>
Public Member Functions | |
TerminalDevice (intrusive_ref_ptr< Device > device) | |
virtual ssize_t | write (const void *data, size_t length) |
virtual ssize_t | read (void *data, size_t length) |
virtual off_t | lseek (off_t pos, int whence) |
virtual int | fstat (struct stat *pstat) const |
virtual int | isatty () const |
virtual int | ioctl (int cmd, void *arg) |
void | setEcho (bool echoMode) |
bool | isEchoEnabled () const |
void | setBinary (bool binaryMode) |
bool | isBinary () const |
Public Member Functions inherited from miosix::FileBase | |
FileBase (intrusive_ref_ptr< FilesystemBase > parent) | |
virtual int | fcntl (int cmd, int opt) |
virtual int | getdents (void *dp, int len) |
const intrusive_ref_ptr < FilesystemBase > | getParent () const |
virtual | ~FileBase () |
Additional Inherited Members | |
Protected Member Functions inherited from miosix::IntrusiveRefCounted | |
IntrusiveRefCounted () | |
IntrusiveRefCounted (const IntrusiveRefCounted &) | |
IntrusiveRefCounted & | operator= (const IntrusiveRefCounted &) |
Teriminal device, proxy object supporting additional terminal-specific features
miosix::TerminalDevice::TerminalDevice | ( | intrusive_ref_ptr< Device > | device | ) |
Constructor
device | proxed device. |
|
virtual |
Return file information.
pstat | pointer to stat struct |
Implements miosix::FileBase.
|
virtual |
Perform various operations on a file descriptor
cmd | specifies the operation to perform |
arg | optional argument that some operation require |
Reimplemented from miosix::FileBase.
|
virtual |
Check whether the file refers to a terminal.
Reimplemented from miosix::FileBase.
|
inline |
|
inline |
|
virtual |
Move file pointer, if the file supports random-access.
pos | offset to sum to the beginning of the file, current position or end of file, depending on whence |
whence | SEEK_SET, SEEK_CUR or SEEK_END |
Implements miosix::FileBase.
|
virtual |
Read data from the file, if the file supports reading.
data | buffer to store read data |
length | the number of bytes to read |
Implements miosix::FileBase.
|
inline |
Selects whether the terminal sholud be transparent to non ASCII data
rawMode | true if raw mode is required |
|
inline |
Enables or disables echo of commands on the terminal
echo | true to enable echo, false to disable it |
|
virtual |
Write data to the file, if the file supports writing.
data | the data to write |
length | the number of bytes to write |
Implements miosix::FileBase.