-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
33 lines (27 loc) · 797 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef CONFIG_H
#define CONFIG_H
#include <time.h>
#include <termios.h>
#include <stdint.h>
#include "erow.h"
#include "esyntax.h"
struct config {
int32_t cx, cy; //cursor coordinates (cx - row, cy - column)
int32_t rx; //render string horizontal coordinate
int32_t coloff;
int32_t rowoff;
int32_t screenrows;
int32_t screencols;
int32_t rowsnum;
int32_t max_linenum;
erow *row; //file rows
int32_t dirty;
char *filename;
char statusmsg[80];
time_t statusmsg_time;
struct esyntax *syntax;
struct termios original_termios; //previous terminal state (for recover after exiting editor)
};
extern struct config E;
void init(void);
#endif /* CONFIG_H */