#include <readline/readline.h>
#include <readline/history.h>
+#include "png.h"
+
//This routine locates a scope by VID/PID and returns an opened handle to it.
usb_dev_handle *find_scope() {
unsigned char lut[256][3];
time_t lt;
char filename[256];
+ unsigned char *png;
int i;
int l;
+ int fd;
FILE *fp;
pid_t display;
default:
break;
}
+
+ strftime(filename, sizeof(filename), "screen_%Y%m%d-%H%M%S.png", localtime(<));
+ fd=open(filename, O_CREAT|O_WRONLY, 0644);
+ png = lcd2png(screen, &i);
+ write(fd, png, i);
+ close(fd);
}
void child_reaper(int sig)