# HG changeset patch # User John Donoghue # Date 1368932419 14400 # Node ID c19cc8c158b3c95174841020f05389db52beec8b # Parent f4d18d3f7fd75bd025229ddc5a9961f64aa8889a Allow setting background/forground terminal colors in Unix (bug #39016) * libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp (QUnixTerminalImpl::setBackgroundColor): Provided function body. (QUnixTerminalImpl::setForegroundColor): Provided function body. diff --git a/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp b/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp --- a/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp +++ b/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp @@ -137,8 +137,37 @@ // FIXME -- not sure how to make these work properly given the way the // Unix terminal handles colors. -void QUnixTerminalImpl::setBackgroundColor (const QColor& color) { } -void QUnixTerminalImpl::setForegroundColor (const QColor& color) { } +void QUnixTerminalImpl::setBackgroundColor (const QColor& color) + { + ColorEntry cols[TABLE_COLORS]; + + const ColorEntry * curr_cols = m_terminalView->colorTable(); + for(int i=0;isetColorTable(cols); + + } +void QUnixTerminalImpl::setForegroundColor (const QColor& color) +{ + ColorEntry cols[TABLE_COLORS]; + + const ColorEntry * curr_cols = m_terminalView->colorTable(); + for(int i=0;isetColorTable(cols); + + +} void QUnixTerminalImpl::setSelectionColor (const QColor& color) { } void QUnixTerminalImpl::setCursorColor (bool useForegroundColor,