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\*************************************************************************/910/* This file contains an additional function written by Robert Lowe11[email protected] */1213/* Header file for Listing 62-3 */1415/* tty_functions.h1617Header file for tty_functions.c.18*/19#ifndef TTY_FUNCTIONS_H20#define TTY_FUNCTIONS_H2122#include <termios.h>2324int ttySetCbreak(int fd, struct termios *prevTermios);2526int ttySetRaw(int fd, struct termios *prevTermios);2728/* the following segment was added by Robert Lowe */29typedef struct {30int rows;31int cols;32} ttySize;3334ttySize ttyGetSize(int fd);35#endif363738