diff --git a/ChangeLog b/ChangeLog index 9debbf68..701fd60a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2016-11-03 Markus Gans + * xterm should be able to use at least 16 colors + 2016-11-01 Markus Gans * The class declaration now has a consistent order diff --git a/src/fdialog.cpp b/src/fdialog.cpp index 8793f9ab..ea6d7bd2 100644 --- a/src/fdialog.cpp +++ b/src/fdialog.cpp @@ -1462,7 +1462,15 @@ void FDialog::cb_move (FWidget*, void*) return; setMoveSizeWidget(this); + + if ( isMonochron() ) + setReverse(true); + drawBorder(); + + if ( isMonochron() ) + setReverse(false); + save_geometry = getGeometry(); tooltip = new FToolTip(this); diff --git a/src/fterm.cpp b/src/fterm.cpp index 22a16888..a678724e 100644 --- a/src/fterm.cpp +++ b/src/fterm.cpp @@ -2963,7 +2963,13 @@ void FTerm::init() // Test if the terminal is a xterm if ( std::strncmp(termtype, const_cast("xterm"), 5) == 0 || std::strncmp(termtype, const_cast("Eterm"), 4) == 0 ) + { xterm_terminal = true; + + // Each xterm should be able to use at least 16 colors + if ( ! new_termtype && std::strlen(termtype) == 5 ) + new_termtype = const_cast("xterm-16color"); + } else xterm_terminal = false;