From bc37558feee975f969a62903d99a84dc1e28b3ae Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 3 Oct 2016 21:33:46 +0200 Subject: [PATCH] CMsgBox: add colors to debug output Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b272c407d75deb6626882647323e01162b66696d Author: Thilo Graf Date: 2016-10-03 (Mon, 03 Oct 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/msgbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 0b1feb8fa..c2ba54a88 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -262,7 +262,7 @@ int CMsgBox::exec() ccw_footer->setSelectedButton(selected-1); mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias(); } - dprintf(DEBUG_INFO, "[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\n", __func__, __LINE__, result, mb_show_button); + dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button); selected = ccw_footer->getSelectedButton(); refreshFoot(); @@ -275,7 +275,7 @@ int CMsgBox::exec() CComponentsButton* btn_action = static_cast(ccw_footer->getButtonChainObject()->getCCItem(i)); if (msg == btn_action->getButtonDirectKey() || msg == btn_action->getButtonDirectKeyA()){ result = (msg_result_t)btn_action->getButtonResult(); - dprintf(DEBUG_INFO, "[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\n", __func__, __LINE__, result, mb_show_button); + dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button); loop = false; } } @@ -291,7 +291,7 @@ int CMsgBox::exec() } else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::cancel_all) { - dprintf(DEBUG_INFO, "[CMsgBox] [%s - %d] messages_return::cancel_all\n", __func__, __LINE__); + dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] messages_return::cancel_all\033[0m\n", __func__, __LINE__); res = menu_return::RETURN_EXIT_ALL; loop = false; }