Main Page | Class List | File List | Class Members | File Members

braille.h

Go to the documentation of this file.
00001 /* 
00002  *      Authors:  Hadi Bargi Rangin  bargi@dots.physics.orst.edu
00003  *                Bill Barry         barryb@dots.physics.orst.edu
00004  *                Randy Lundquist    randyl@dots.physics.orst.edu
00005  *
00006  * Modifications Copyright (c) 1995 by
00007  * Science Access Project, Oregon State University.
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2, or (at your option)
00012  * any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program (see the file COPYING); if not, write to the
00021  * Free Software Foundation, Inc.,
00022  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
00023  *
00024  ****************************************************************
00025  * $Id: braille.h,v 1.1 1995/09/06 15:51:18 jnweiger Exp jnweiger $ FAU
00026  */
00027 
00028 #ifdef HAVE_BRAILLE
00029 
00030 extern void StartBraille __P((void));
00031 
00032 struct braille_display
00033 {
00034   struct display *bd_dpy;       /* display we are connected to */
00035   int   bd_start_braille;       /* screenrc var to request to turn braille on */
00036   int   bd_using_braille;       /* all is fine, use braille */
00037   struct event bd_readev;
00038   struct event bd_writeev;
00039   struct event bd_selectev;
00040   int   bd_fd;          /* file descriptor */
00041   int   bd_obuflen;     /* current number of charactors in output buffer */
00042   char  bd_obuf[IOSIZE]; 
00043   int   bd_info;        /* default, no info, 0,1,2,3 */
00044   int   bd_ncrc;        /* default 1, numbers of cells on the right side of real cursor, 1...bd_width */
00045   int   bd_skip;        /* default off, on/off */
00046   int   bd_link;        /* default, linked, on/off */
00047   int   bd_width;       /* length of braille display to use, <=bd_ncells */
00048   int   bd_scroll;      /* default on, scroll on/off */
00049   char *bd_braille_table;       /* braille code */
00050 
00051   int   bd_bell;        /* bell used for navigation on/off */
00052   int   bd_ncells;      /* real number of cells on braille display */
00053   int   bd_eightdot;    /* eightdot on/off */
00054   int   bd_baud;        /* communication baudrate between port and braille display */
00055   char *bd_port;        /* serial port to use */
00056   char *bd_type;        /* kind of braille display */
00057   double bd_version;    /* rom version of braille display */
00058   char  bd_btable[256]; /* braille translation table */
00059 
00060   /* functions which communicate with braille displays */
00061   int (*write_line_braille) __P((char [],int, int));
00062   void (*buttonpress) __P((void));
00063   int (*bd_response_test) __P((void));
00064 
00065   int   bd_refreshing;  /* are we doing a refresh? */
00066   char  bd_line[40+1];  /* bd_ncells chars displayed on braille */
00067   int   bd_cursorpos;   /* cursor position on braille */
00068   char  bd_oline[40+1]; /* bd_ncells chars displayed on braille */
00069   int   bd_sx, bd_sy;   /* screen cursor pos */
00070   int   bd_moved;       /* used braille move keys */
00071 
00072   int   bd_searching;   /* are we seaching (bd_skip is on) */
00073   int   bd_searchmax;   /* search: max x */
00074   int   bd_searchmin;   /* search: min x */
00075   int   bd_searchstart;
00076   int   bd_searchend;
00077 };
00078 
00079 extern struct braille_display bd;
00080 
00081 #define BD_FORE bd.bd_dpy->d_fore
00082 
00083 #endif

Generated on Sat Jul 2 20:56:15 2005 for GNU Screen by  doxygen 1.4.3