Fix resetColorMap in FTerm

This commit is contained in:
Markus Gans 2018-05-03 04:54:51 +02:00
parent 3a8689561a
commit 808434313c
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2017-05-03 Markus Gans <guru.mail@muenster.de>
* Fix resetColorMap in FTerm
2017-05-02 Markus Gans <guru.mail@muenster.de>
* Outsourcing of data from FTerm to the classes FTermios,
FTermDetection and FTermcapQuirks

View File

@ -1124,12 +1124,10 @@ void FTerm::saveColorMap()
//----------------------------------------------------------------------
void FTerm::resetColorMap()
{
char*& op = TCAP(fc::t_orig_pair);
char*& oc = TCAP(fc::t_orig_colors);
char*& op = TCAP(fc::t_orig_pair);
if ( op )
putstring (op);
else if ( oc )
if ( oc )
putstring (oc);
/*else
{
@ -1153,6 +1151,9 @@ void FTerm::resetColorMap()
ioctl (0, PIO_CMAP, &color_map);
}*/
if ( op )
putstring (op);
std::fflush(stdout);
}