summaryrefslogblamecommitdiffstats
path: root/libterm/term.c
blob: 2a726b4bba42700dddea2cc212ce4567547801e3 (plain) (tree)
1
2
3
4
5
6
7
8
9

                 

                  

                    


                                                       
                                  


                  






                                                





                                  


                                                                           

                                                                           
 
                                        

                   



                       

 
















                                                            


                                                                   
                                      

                   



                                         
                                                    





                                                      
                                                   
















                                                                     

                                                           






                                         
                                                    





                                                      
                                                   


                                






                                                                     


                   


                  

 
                                     



                       
        
                                                                   
        

                                 
         


                                                           
         
                      
        


                                                                        
 

                   



                  
                                     
 


                       
        
                                                                   
        

                                 
         


                                                           
         
                      
        





                                                                        


                  

                                                      
 

                    
 
                                                  
                                                   












                                                               
 


                  
 

                                                      
 



                                                  
                                                   












                                                               
 

                  

 




















                                                                        

                                     



                                   
                                                                  



                   
                                            



                                        




                                                                
 
                                                              

                                                                              
                                                                       
                                             
                                      
                                             
                                   

                                                                          
                                                              

                                                                               

                                                         

                                                     




                                                                    









                       














































                                                                                


                                          
                                                     
 
#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