1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-19 19:45:15 +00:00
conky/src/nc.h
Pavel Labath f81c29a42d make out_to_ncurses a lua setting
this completes the porting of bool settings
2010-04-30 19:33:21 +02:00

36 lines
732 B
C++

/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
* vim: ts=4 sw=4 noet ai cindent syntax=cpp
*/
#if defined(BUILD_NCURSES) && !defined(CONKY_NC_H)
#define CONKY_NC_H
#include <ncurses.h>
#include "setting.hh"
#ifdef LEAKFREE_NCURSES
extern "C" {
void _nc_free_and_exit(int);
}
#endif
namespace priv {
class out_to_ncurses_setting: public conky::simple_config_setting<bool> {
typedef conky::simple_config_setting<bool> Base;
protected:
virtual void lua_setter(lua::state &l, bool init);
virtual void cleanup(lua::state &l);
public:
out_to_ncurses_setting()
: Base("out_to_ncurses", false, false)
{}
};
}
extern priv::out_to_ncurses_setting out_to_ncurses;
#endif /* CONKY_NC_H */