diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-14 00:34:37 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-14 00:34:37 +0300 |
commit | 69d8f44ba7086f80e57e908cb045394e4101e0d1 (patch) | |
tree | b4a8fcec10fef96add62113c1a466a1fc982eb3b /tuiclient | |
parent | Add help window to tuiclient (diff) | |
download | idfetch-69d8f44ba7086f80e57e908cb045394e4101e0d1.tar.gz idfetch-69d8f44ba7086f80e57e908cb045394e4101e0d1.tar.bz2 idfetch-69d8f44ba7086f80e57e908cb045394e4101e0d1.zip |
Add section [ui_server] to segget.conf file
[ui_server]
tuiclient monitors segget's activity by establishing tcp connection
with segget daemon (ui_server part of it).
UI_IP
Define an ip address segget will use to provide access for tuiclients.
The parameter should be a string holding your host dotted IP address.
Default:
ui_ip=127.0.0.1
Define a port segget will use to provide access for tuiclients.
The parameter should be an integer.
Minimum value: 1
Maximum value: 65535
Default:
ui_port=9999
Diffstat (limited to 'tuiclient')
-rw-r--r-- | tuiclient/tui.cpp | 45 | ||||
-rw-r--r-- | tuiclient/tui.h | 33 |
2 files changed, 0 insertions, 78 deletions
diff --git a/tuiclient/tui.cpp b/tuiclient/tui.cpp deleted file mode 100644 index 9df772c..0000000 --- a/tuiclient/tui.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* -* Copyright (C) 2010 Robin H.Johnson, Ovechko Kostyantyn <fastinetserver@gmail.com>. -* -* Project: IDFetch. -* Developer: Ovechko Kostyantyn Olexandrovich (Kharkiv State Technical University of Construction and Architecture, Ukraine). -* Mentor: Robin H. Johnson (Gentoo Linux: Developer, Trustee & Infrastructure Lead). -* Mentoring organization: Gentoo Linux. -* Sponsored by GSOC 2010. -* -* This file is part of Segget. -* -* Segget is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* Segget 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 -* Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public -* License along with Segget; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#include "tui.h" - -const uint CONNECTION_LINES=5; - -bool msg_idle=true; -void msg(uint y, uint x, string msg_text){ - if (msg_idle){ - msg_idle=false; - try{ - move(y,x); - string ready_msg_text=msg_text+" "; - printw(ready_msg_text.c_str()); - refresh(); - }catch(...){ -// error_log_no_msg("Error in tui.cpp: msg()"); - } - msg_idle=true; - } -}
\ No newline at end of file diff --git a/tuiclient/tui.h b/tuiclient/tui.h deleted file mode 100644 index 66d091b..0000000 --- a/tuiclient/tui.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -* Copyright (C) 2010 Robin H.Johnson, Ovechko Kostyantyn <fastinetserver@gmail.com>. -* -* Project: IDFetch. -* Developer: Ovechko Kostyantyn Olexandrovich (Kharkiv State Technical University of Construction and Architecture, Ukraine). -* Mentor: Robin H. Johnson (Gentoo Linux: Developer, Trustee & Infrastructure Lead). -* Mentoring organization: Gentoo Linux. -* Sponsored by GSOC 2010. -* -* This file is part of Segget. -* -* Segget is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* Segget 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 -* Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public -* License along with Segget; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef __TUI_H__ -#define __TUI_H__ - -using namespace std; - -void msg_total(string msg_text); -#endif
\ No newline at end of file |