Fix resetColorMap in FTerm
This commit is contained in:
parent
3a8689561a
commit
808434313c
|
@ -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>
|
2017-05-02 Markus Gans <guru.mail@muenster.de>
|
||||||
* Outsourcing of data from FTerm to the classes FTermios,
|
* Outsourcing of data from FTerm to the classes FTermios,
|
||||||
FTermDetection and FTermcapQuirks
|
FTermDetection and FTermcapQuirks
|
||||||
|
|
|
@ -1124,12 +1124,10 @@ void FTerm::saveColorMap()
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
void FTerm::resetColorMap()
|
void FTerm::resetColorMap()
|
||||||
{
|
{
|
||||||
char*& op = TCAP(fc::t_orig_pair);
|
|
||||||
char*& oc = TCAP(fc::t_orig_colors);
|
char*& oc = TCAP(fc::t_orig_colors);
|
||||||
|
char*& op = TCAP(fc::t_orig_pair);
|
||||||
|
|
||||||
if ( op )
|
if ( oc )
|
||||||
putstring (op);
|
|
||||||
else if ( oc )
|
|
||||||
putstring (oc);
|
putstring (oc);
|
||||||
/*else
|
/*else
|
||||||
{
|
{
|
||||||
|
@ -1153,6 +1151,9 @@ void FTerm::resetColorMap()
|
||||||
ioctl (0, PIO_CMAP, &color_map);
|
ioctl (0, PIO_CMAP, &color_map);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if ( op )
|
||||||
|
putstring (op);
|
||||||
|
|
||||||
std::fflush(stdout);
|
std::fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue