libttyrec
a library for handling ttyrec files
- Provided by: libtty-dev (Version: 0.19-2.1build2)
- Source: termrec
- Report a bug
a library for handling ttyrec files
#include <ttyrec.h>
Link with -ltty.
On error, -1 is returned. If you want the message, pass a non-null pointer error, it will be filled in.
The function doesn't return until the end of input data. Returns 1 on success, 0 on failure.
You can read the ttyrec's data while it's being read; all functions are thread-safe with regard to reading. The frames are stored in structures like this:
typedef struct {
struct timeval t;
int len;
char *data; } *ttyrec_frame;
A handful of macros for operating on timeval values: