code optimization
This commit is contained in:
parent
d13dfbcb9d
commit
aaf6eeecee
|
@ -709,10 +709,10 @@ void FTerm::signal_handler (int signum)
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
char* FTerm::init_256colorTerminal (char current_termtype[])
|
char* FTerm::init_256colorTerminal()
|
||||||
{
|
{
|
||||||
char local256[80] = "";
|
char local256[80] = "";
|
||||||
char* new_termtype = current_termtype;
|
char* new_termtype = 0;
|
||||||
char *s1, *s2, *s3, *s4, *s5, *s6;
|
char *s1, *s2, *s3, *s4, *s5, *s6;
|
||||||
|
|
||||||
// Enable 256 color capabilities
|
// Enable 256 color capabilities
|
||||||
|
@ -1343,7 +1343,7 @@ void FTerm::init()
|
||||||
strncpy (termtype, const_cast<char*>("vt100"), 6);
|
strncpy (termtype, const_cast<char*>("vt100"), 6);
|
||||||
|
|
||||||
// initialize 256 colors terminals
|
// initialize 256 colors terminals
|
||||||
new_termtype = init_256colorTerminal (termtype);
|
new_termtype = init_256colorTerminal();
|
||||||
|
|
||||||
if ( strncmp(termtype, "cygwin", 6) == 0 )
|
if ( strncmp(termtype, "cygwin", 6) == 0 )
|
||||||
cygwin_terminal = true;
|
cygwin_terminal = true;
|
||||||
|
|
|
@ -242,7 +242,7 @@ class FTerm
|
||||||
static void init_console();
|
static void init_console();
|
||||||
static uInt getBaudRate (const struct termios*);
|
static uInt getBaudRate (const struct termios*);
|
||||||
static void init_consoleCharMap();
|
static void init_consoleCharMap();
|
||||||
static char* init_256colorTerminal(char[]);
|
static char* init_256colorTerminal();
|
||||||
static char* parseAnswerbackMsg(char*&);
|
static char* parseAnswerbackMsg(char*&);
|
||||||
static char* parseSecDA(char*&);
|
static char* parseSecDA(char*&);
|
||||||
static void init_termcaps();
|
static void init_termcaps();
|
||||||
|
|
Loading…
Reference in New Issue