Archived
1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
kilo/include/kilo.h
Hadeed Ahmad f866add58f Begin work on text editing
Along with lots of stuff I was too lazy to commit separately
2023-09-02 10:30:25 +05:00

25 lines
436 B
C

#ifndef KILO_H
#define KILO_H
#define KILO_VERSION "0.0.1"
#define KILO_TAB_STOP 4
#include <termios.h>
#include <time.h>
struct editor_state {
int cx, cy, rx;
int row_off, col_off;
int screenrows, screencols;
struct buffer *current_buf;
struct termios orig_termios;
char message[256];
time_t message_time;
};
extern struct editor_state E;
void editor_set_message(const char *, ...);
#endif // KILO_H