CSC112 Spring 2016 Examples
/*************************************************************************\1* Copyright (C) Michael Kerrisk, 2015. *2* *3* This program is free software. You may use, modify, and redistribute it *4* under the terms of the GNU Lesser General Public License as published *5* by the Free Software Foundation, either version 3 or (at your option) *6* any later version. This program is distributed without any warranty. *7* See the files COPYING.lgpl-v3 and COPYING.gpl-v3 for details. *8\*************************************************************************/9/*10* Revision: $Revision: 1.1 $11* Change Log12* $Log: tty_functions.h,v $13* Revision 1.1 2016/03/17 16:02:02 pngwen14* Initial revision15*16*/1718/* This file contains an additional function written by Robert Lowe19[email protected] */2021/* Header file for Listing 62-3 */2223/* tty_functions.h2425Header file for tty_functions.c.26*/27#ifndef TTY_FUNCTIONS_H28#define TTY_FUNCTIONS_H2930#include <termios.h>3132int ttySetCbreak(int fd, struct termios *prevTermios);3334int ttySetRaw(int fd, struct termios *prevTermios);3536/* the following segment was added by Robert Lowe */37typedef struct {38int rows;39int cols;40} ttySize;4142ttySize ttyGetSize(int fd);43#endif444546