summaryrefslogblamecommitdiff
path: root/src/user/lib/fwik/include/IO/Term.h
blob: 4fd93069a32cc104051cd05e493f114a3a5a9d42 (plain) (tree)
1
2
3
4
5
6




                          
                   


















                                                    

                                





                                                
#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(char* filename, int mode);
	Term(const Node &n);
	virtual ~Term();

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

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

#endif