just moved some code between files, behaviour unchanged

This commit is contained in:
2023-03-07 20:41:12 +11:00
parent 16310e7c17
commit 577e88551d
4 changed files with 305 additions and 292 deletions

View File

@ -7,11 +7,18 @@
#include <limits.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <stdbool.h>
#include <time.h>
#include "timer.h"
#define COLSTRLEN 11
extern int maxrows;
extern int maxcols;
extern int colwidth;
extern int in;
extern bool dirty;
struct color {
int r;
@ -19,6 +26,9 @@ struct color {
int b;
};
extern struct color bg;
extern struct color fg;
void setBGColor(struct color);
void setFGColor(struct color);
void clrScreen();
@ -37,6 +47,14 @@ void drawRow(char **data, int count, int row);
void drawCell(char *data, int column, int row, struct color col);
void setMaxRows(int rows);
void setMaxCols(int cols);
void drawNotif();
void clearNotif();
void drawSegmentNames();
void drawTimeColumn();
void toggleCompact();
void drawDisplay();
void resize(int i);
void ftime(char *timestr, int rms, int decimals, bool sign);
#endif