summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/include/IO/Term.h
blob: 5b8aba30554d0be3ca19df80959f4160ea097cde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef DEF_FWIK_IO_TERM_H
#define DEF_FWIK_IO_TERM_H

#include <stdio.h>
#include "Node.h"
#include <String.h>

#include <readline.h>

class Term : public Node {
	int w, h;

	readline_history hist;
	
	void _init();

	public:
	Term(FILE f);
	Term(const char* filename, int mode);
	Term(const Node &n);
	virtual ~Term();

	virtual void print(const char *s);
	virtual void printf(const char* fmt, ...);
	virtual void vprintf(const char* fmt, va_list ap);
	virtual String readln();
	String readline();

	virtual Term* as_term() { return this; }
};

#endif