#include "gui.hpp"
#include "structs.hpp"
#include "version.hpp"
#include <boost/bind.hpp>
#include <sys/ioctl.h>
#include <boost/ref.hpp>
#include <sstream>
#include <fstream>
Go to the source code of this file.
|
bool | ischar (int key) |
|
void | async_commit (boost::asio::deadline_timer &timer, gui::Screen &screen, boost::system::error_code const &error) |
|
void | async_cin (boost::asio::posix::stream_descriptor &keyb, char &key, gui::Screen &screen, const boost::system::error_code &error, std::size_t bytes_transferred) |
|
void | async_win_resize (boost::asio::signal_set &window_resize, gui::Screen &screen, boost::system::error_code const &error, int signum) |
|
std::pair< int, int > | window_size () |
|
bool | gui::is_problematic (mon_channel const &channel) |
|
bool | gui::matches (mon_channel const &ch, std::string const &pattern) |
|
bool | gui::matches (mon_channel const &ch, boost::regex const ®ex) |
|
void | gui::print_table_head (WINDOW *win, int offset) |
|
void | gui::print_chan (WINDOW *win, ChList::const_iterator const &it, std::vector< char > &buffer, int line_size, int offset, bool highlight) |
|
void | gui::print_timestamp (WINDOW *win, UTCTime const &tstamp, std::vector< char > &buffer, int line_size, int offset, bool validity) |
|
Definition at line 43 of file gui.cpp.
46 key >= std::numeric_limits<char>::min()
47 && key <= std::numeric_limits<char>::max();
void async_commit |
( |
boost::asio::deadline_timer & |
timer, |
|
|
gui::Screen & |
screen, |
|
|
boost::system::error_code const & |
error |
|
) |
| |
Definition at line 50 of file gui.cpp.
58 timer.expires_from_now(boost::posix_time::seconds(1));
64 boost::asio::placeholders::error));
void async_commit(boost::asio::deadline_timer &timer, gui::Screen &screen, boost::system::error_code const &error)
void async_cin |
( |
boost::asio::posix::stream_descriptor & |
keyb, |
|
|
char & |
key, |
|
|
gui::Screen & |
screen, |
|
|
const boost::system::error_code & |
error, |
|
|
std::size_t |
bytes_transferred |
|
) |
| |
Definition at line 68 of file gui.cpp.
79 boost::asio::posix::stream_descriptor::bytes_readable command(
true);
80 keyb.io_control(command);
82 std::size_t nbytes = command.get();
85 boost::system::error_code ec;
86 keyb.read_some(boost::asio::buffer(&key,
sizeof(key)), ec);
95 boost::asio::buffer(&key,
sizeof(key)),
101 boost::asio::placeholders::error,
102 boost::asio::placeholders::bytes_transferred));
*fatal Wrong number of arguments esac JCookie sh JRuns D $DETECTOR d sort n k
void async_cin(boost::asio::posix::stream_descriptor &keyb, char &key, gui::Screen &screen, const boost::system::error_code &error, std::size_t bytes_transferred)
void async_win_resize |
( |
boost::asio::signal_set & |
window_resize, |
|
|
gui::Screen & |
screen, |
|
|
boost::system::error_code const & |
error, |
|
|
int |
signum |
|
) |
| |
Definition at line 106 of file gui.cpp.
115 screen.resize(win_size.first, win_size.second);
117 window_resize.async_wait(
120 boost::ref(window_resize),
122 boost::asio::placeholders::error,
123 boost::asio::placeholders::signal_number));
void async_win_resize(boost::asio::signal_set &window_resize, gui::Screen &screen, boost::system::error_code const &error, int signum)
std::pair< int, int > window_size()
Definition at line 127 of file gui.cpp.
131 ioctl(0, TIOCGWINSZ, &sz);
133 return std::make_pair(sz.ws_row, sz.ws_col);
const int default_hit_counter_threshold = 850 |
|
static |
- Author
- cpellegrino
Definition at line 15 of file gui.cpp.