add 3 modes of displaying

This commit is contained in:
2023-11-23 12:40:33 +03:00
parent ac4694375e
commit 57235dccdd
7 changed files with 390 additions and 134 deletions

View File

@@ -39,7 +39,7 @@ typedef struct {
struct termios2 oldtty; // TTY flags for previous port settings
struct termios2 tty; // TTY flags for current settings
int comfd; // TTY file descriptor
char *buf; // buffer for data read
uint8_t *buf; // buffer for data read
size_t bufsz; // size of buf
size_t buflen; // length of data read into buf
} TTY_descr2;
@@ -55,8 +55,8 @@ typedef struct{
char seol[5]; // `eol` with doubled backslash (for print @ screen)
} chardevice;
char *ReadData(int *l);
int SendData(const char *data, size_t len);
uint8_t *ReadData(int *l);
int SendData(const uint8_t *data, size_t len);
void settimeout(int tms);
int opendev(chardevice *d, char *path);
void closedev();