summaryrefslogblamecommitdiff
path: root/src/user/lib/fwik/include/IO/Term.h
blob: 5b8aba30554d0be3ca19df80959f4160ea097cde (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(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