aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/output.h
blob: 8e602a6f413ee35929d83e8ee5c591bce6a8051c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: MIT-0 */

#ifndef OUTPUT_H
#define OUTPUT_H

#include <wchar.h>

#include "deco.h"

#define ASC 0x2197 /* Unicode North East Arrow */
#define LVL 0x2192 /* Unicode Rightwards Arrow */
#define DEC 0x2198 /* Unicode South East Arrow */
#define SWI 0x21BB /* Clockwise Open Circle Arrow */
#define LTR 0x2113 /* Script Small L */

/* functions */
void print_planhead(void);
void print_planline(const wchar_t sign, const double depth, const double time, const double runtime, const gas_t *gas);
void print_planfoot(const decostate_t *ds);

void scan_gas(gas_t *gas, char *str);
void format_gas(char *buf, const size_t buflen, const gas_t *gas);

#endif /* end of include guard: OUTPUT_H */