]> the.earth.li Git - sersniff.git/blob - disp_ncurses.h
Use cfsetspeed to set port speed rather than c_cflags.
[sersniff.git] / disp_ncurses.h
1 /*
2         disp_ncurses.h - Routines to do pretty ncurses output.
3         Copyright 2000 Project Purple. Written by Jonathan McDowell
4
5         This program is free software; you can redistribute it and/or
6         modify it under the terms of the GNU General Public License
7         as published by the Free Software Foundation; either version 2
8         of the License, or (at your option) any later version.
9
10         This program is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13         GNU General Public License for more details.
14
15         You should have received a copy of the GNU General Public License
16         along with this program; if not, write to the Free Software Foundation
17         Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18         http://www.gnu.org/copyleft/gpl.html
19
20         17/02/2000 - Started writing.
21 */
22
23 /* where to start wrap counts (needs to include "PortX:\t") */
24 #define WRAPINIT 9
25 /* Screen width */
26 #define SCREEN_WIDTH 80
27 #define USEC 1000000
28
29 /* Initialise the display, ie do nothing */
30 int disp_init();
31
32 /* Close the display, ie do nothing */
33 int disp_close();
34
35 /* Output a status string about what's happening */
36 void disp_outputstatus(char *string);
37
38 /* Output a string from the port. */
39 void disp_outputstr(int port, char *string,
40                 long usec_threshold, long usec_waited);
41