#include "term.h"
#include "debug.h"
#define T_ESC "\x1b"
//setup initial terminal stuff
//this coulc act differently, becouse allways there is
//different terminal setting that should be default
int term_init( term_screen *term )
{
int ret=0;
memset( term, 0, sizeof( term_screen ));
if ( !isatty(STD