sandbox/misc/kforth/v1/linux/io.h

26 lines
482 B
C
Raw Normal View History

2018-02-22 19:38:27 +00:00
#ifndef __KF_IO_LINUX_H__
#define __KF_IO_LINUX_H__
#include "io.h"
#include "defs.h"
class Console : public IO {
public:
~Console() {};
char rdch(void);
void wrch(char c);
// Buffer I/O.
size_t rdbuf(char *buf, size_t len, bool stopat, char stopch);
void wrbuf(char *buf, size_t len);
// Line I/O
bool rdln(char *buf, size_t len, size_t *readlen);
void wrln(char *buf, size_t len);
void newline(void) { this->wrch('\n'); };
2018-02-22 19:38:27 +00:00
private:
};
#endif // __KF_IO_LINUX_H__