/* * * Conky, a system monitor, based on torsmo * * Please see COPYING for details * * Copyright (C) 2010 Pavel Labath et al. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #include #include "conky.h" #include "display-console.hh" #include "nc.h" #include #include #include namespace conky { namespace { conky::display_output_console console_output("console"); } // namespace namespace priv {} // namespace priv display_output_console::display_output_console(const std::string &name_) : display_output_base(name_) { // lowest priority, it's a fallback priority = 0; } bool display_output_console::detect() { if ((out_to_stdout.get(*state) || out_to_stderr.get(*state)) && !out_to_ncurses.get(*state)) { std::cerr << "Display output '" << name << "' enabled in config." << std::endl; return true; } return false; } bool display_output_console::initialize() { return true; } bool display_output_console::shutdown() { return true; } } // namespace conky