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

28 lines
498 B
C
Raw Permalink Normal View History

2023-08-31 04:19:35 +00:00
#ifndef KILO_H
#define KILO_H
2023-09-01 15:04:12 +00:00
#define KILO_TAB_STOP 4
2023-08-31 04:19:35 +00:00
#include <termios.h>
#include <time.h>
struct editor_state {
2023-09-01 15:04:12 +00:00
int screenrows, screencols;
2023-09-04 03:56:00 +00:00
int quit_times;
2023-08-31 04:19:35 +00:00
2023-09-01 15:04:12 +00:00
struct buffer *current_buf;
struct termios orig_termios;
2023-08-31 04:19:35 +00:00
char message[256];
time_t message_time;
};
extern struct editor_state E;
2023-09-04 15:53:43 +00:00
void editor_set_message(const char *fmt, ...);
char *editor_prompt(const char *prompt);
2023-10-03 05:58:02 +00:00
extern char *error_message;
void error_set_message(const char *prefix);
2023-08-31 04:19:35 +00:00
#endif // KILO_H