version 1.4, 2012/05/14 12:49:21
|
version 1.5, 2013/05/30 09:10:13
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 57 SUCH DAMAGE.
|
Line 57 SUCH DAMAGE.
|
* @winz = winsize for terminal |
* @winz = winsize for terminal |
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
inline int | int |
ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict name, int namesiz, |
ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict name, int namesiz, |
struct termios * __restrict term, struct winsize * __restrict winz) |
struct termios * __restrict term, struct winsize * __restrict winz) |
{ |
{ |
Line 83 ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict n
|
Line 83 ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict n
|
* @ttyname = tty filename |
* @ttyname = tty filename |
* return: none |
* return: none |
*/ |
*/ |
inline void | void |
ioFreePTY(int ptyfd, const char *ttyname) |
ioFreePTY(int ptyfd, const char *ttyname) |
{ |
{ |
assert(ttyname); |
assert(ttyname); |
Line 108 ioFreePTY(int ptyfd, const char *ttyname)
|
Line 108 ioFreePTY(int ptyfd, const char *ttyname)
|
* @ypxl = y pixels |
* @ypxl = y pixels |
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
inline int | int |
ioChgWinPTY(int ptyfd, u_short row, u_short col, u_short xpxl, u_short ypxl) |
ioChgWinPTY(int ptyfd, u_short row, u_short col, u_short xpxl, u_short ypxl) |
{ |
{ |
struct winsize w; |
struct winsize w; |
Line 245 ioSetSidTTY(int *ttyfd, const char *ttyname)
|
Line 245 ioSetSidTTY(int *ttyfd, const char *ttyname)
|
* @otio = saved old termios for later restore if !=NULL |
* @otio = saved old termios for later restore if !=NULL |
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
inline int | int |
ioSetRAWMode(int fd, struct termios *otio) |
ioSetRAWMode(int fd, struct termios *otio) |
{ |
{ |
struct termios tio; |
struct termios tio; |
Line 285 ioSetRAWMode(int fd, struct termios *otio)
|
Line 285 ioSetRAWMode(int fd, struct termios *otio)
|
* @tio = termios structure for restore |
* @tio = termios structure for restore |
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
inline int | int |
ioRestoreMode(int fd, struct termios tio) |
ioRestoreMode(int fd, struct termios tio) |
{ |
{ |
if (tcsetattr(fd, TCSADRAIN, &tio) == -1) { |
if (tcsetattr(fd, TCSADRAIN, &tio) == -1) { |