|
tico 0.1
Mechanical Watch Terminal Timegrapher
|
#include "printing.h"#include "modsigned.h"#include "mydefs.h"#include <math.h>#include <stdarg.h>#include <stdio.h>#include <string.h>
Macros | |
| #define | COLOR_CYAN "\033[96m" |
| #define | COLOR_RED "\033[31m" |
| #define | COLOR_GREEN "\033[32m" |
| #define | COLOR_RESET "\033[0m" |
| #define | CURSOR_SAVE "\033[s" |
| #define | CURSOR_RESTORE "\033[u" |
| #define | CLEAR_LINE "\033[0K" |
| #define | CURSOR_ROW12 "\033[12;0H" |
| #define | CURSOR_ROW2 "\033[2;0H" |
| #define | CURSOR_COL_FMT "\033[%dG" |
Functions | |
| void | printmsg (const char *fmt,...) |
| void | print (const char *fmt,...) |
| void | printheader (double fittedRate, unsigned int everyline, double beatError, double seconds) |
| void | printspaces (int maxpos, size_t hexvalue, size_t mod, size_t acolumns, double avgPos, size_t correlationThreshold) |
| Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters. More... | |
Variables | |
| volatile unsigned int | columns |
| #define CLEAR_LINE "\033[0K" |
| #define COLOR_CYAN "\033[96m" |
| #define COLOR_GREEN "\033[32m" |
| #define COLOR_RED "\033[31m" |
| #define COLOR_RESET "\033[0m" |
| #define CURSOR_COL_FMT "\033[%dG" |
| #define CURSOR_RESTORE "\033[u" |
| #define CURSOR_ROW12 "\033[12;0H" |
| #define CURSOR_ROW2 "\033[2;0H" |
| #define CURSOR_SAVE "\033[s" |
| void print | ( | const char * | fmt, |
| ... | |||
| ) |
| void printheader | ( | double | fittedRate, |
| unsigned int | everyline, | ||
| double | beatError, | ||
| double | seconds | ||
| ) |
| void printmsg | ( | const char * | fmt, |
| ... | |||
| ) |
| void printspaces | ( | int | maxpos, |
| size_t | hexvalue, | ||
| size_t | mod, | ||
| size_t | acolumns, | ||
| double | avgPos, | ||
| size_t | correlationThreshold | ||
| ) |
Prints spaces to visually represent the position of the maximum correlation in the capture output, based on the provided parameters.
| maxpos | The position of the maximum correlation. |
| hexvalue | The hexadecimal value representing the correlation strength. |
| mod | The modulus used for calculating the width of the spaces. |
| acolumns | The total number of columns available for printing. |
| avgPos | The average position of the correlation. |
| correlationThreshold | The threshold for determining the color of the output. |
|
extern |