/************************************************************************/
/* Copyright 2013 MBARI							*/
/************************************************************************/
/* Summary  : Menu-driven program to test snLib functions under Linux or Cygwin*/
/* Filename : snTest.c							*/
/* Author   : Robert Herlien (rah)					*/
/* Project  : xFOCE							*/
/* Revision: 1.0							*/
/* Created  : 05/28/2013						*/
/*									    */
/* MBARI provides this documentation and code "as is", with no warranty,    */
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium  */
/* Research Institute to assist in its use, correction, modification, or    */
/* enhancement. This information should not be published or distributed to  */
/* third parties without specific written permission from MBARI.            */
/*									    */
/************************************************************************/
/* Modification History:						*/
/* 28may2013 rah - created						*/
/************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
#include <ctype.h>


/************************************************************************/
/* Function    : main							*/
/* Purpose     : Main entry point					*/
/* Inputs      : argc, argv						*/
/* Outputs     : Application return code				*/
/************************************************************************/
int main(int argc, char **argv)
{
    struct termios	tio;
    int			i;

    tcgetattr(STDIN_FILENO, &tio);

    printf("%#x %#x %#x %#x %u\n",
	   tio.c_iflag, tio.c_oflag, tio.c_cflag, tio.c_lflag, (int)tio.c_line);

    for (i = 0; i < NCCS; i++)
	printf("%#x ", (int)tio.c_cc[i]);

    printf("\n");

    return(0);

} /* main() */
