[En-Nut-Discussion] Bug in term.c?

uprinz2 uprinz2 at netscape.net
Tue Apr 7 15:32:23 CEST 2009


Hi! 
 
Codemerge is Codereview... 
 
In term.h ESC_CLRHOME is defined as ESC-H what in real is just going home 
without clear.  
ESC_CLR is defined as ESC-E what is doing a display clear and home. 
 
My idea is to modify it like this: 
 
Old: 
#define ESC_LEFT        ESC_CHAR "D" 
#define ESC_CLRHOME     ESC_CHAR "H" 
 
#define ESC_CLR         ESC_CHAR "E" 
#define ESC_CLREND      ESC_CHAR "J" 
 
-------------- 
New: 
... 
#define ESC_LEFT        ESC_CHAR "D" 
#define ESC_CLRHOME     ESC_CHAR "E" 
 
#define ESC_HOME        ESC_CHAR "H" 
#define ESC_CLREND      ESC_CHAR "J" 
... 
 
What also lines up the characters used, making it easier to add new 
functions. 
Someone interested in my addon with ESC-i/ESC-n for enable / disable 
inverse displaying of characters? Then I load up my version into the 
repository. 
 
Regards, Ulrich



More information about the En-Nut-Discussion mailing list