aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/output.h
blob: 083cef022d8527b6d63a38b82fcc2afa15dc1fca (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(wchar_t sign, double depth, double time, double runtime, const gas_t *gas);
void print_planfoot(const decostate_t *ds);

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

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