just moved some code between files, behaviour unchanged
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user