dgamelaunch/ttyrec.h

33 lines
695 B
C

#ifndef __TTYREC_H__
#define __TTYREC_H__
#include <sys/time.h>
#include <sys/types.h>
typedef struct header
{
struct timeval tv;
size_t len;
}
Header;
extern void done (void);
extern void fail (void);
extern void fixtty (void);
extern void getslave (void);
extern void doinput (void);
extern void dooutput (int max_idle_time);
extern void doshell (int, char *);
extern void finish (int);
extern void remove_ipfile (void);
extern int ttyrec_main (int, char *username, char *ttyrec_path, char* ttyrec_filename);
extern pid_t child; /* nethack process */
extern int master, slave;
extern struct termios tt;
extern struct winsize win;
extern int encoding_by_name(const char *enc);
#endif