-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditorUtilities.h
More file actions
65 lines (55 loc) · 1.16 KB
/
editorUtilities.h
File metadata and controls
65 lines (55 loc) · 1.16 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
Author:Yashasvi Goel
Code Refactored on 21/3/20
*/
// #ifndef EDITORUTIL_H
// #define EDITORUTIL_H
#ifndef STRUCT_H
#define STRUCT_H
#include"struct.h"
#endif
#ifndef RAWMODE_H
#define RAWMODE_H
#include "rawMode.c"
#endif
#ifndef EDITORCTRL_H
#define EDITORCTRL_H
#include"editorControl.c"
#endif
#ifndef ROWUTIL_H
#define ROWUTIL_H
#include"rowUtilities.c"
#endif
#ifndef CURSOR_H
#define CURSOR_H
#include"cursorUtilities.c"
#endif
void clearScreen(int options);
// void editorScroll();
void drawTildes(strBuffer* ab);
void drawStatusBar(strBuffer* ab);
void drawMessageBar(strBuffer *ab);
int is_separator(int c);
void editorUpdateSyntax(erow* row);
// int cursorPosition(int*,int*);
void moveCursor(int);
int getWindowSize(int *rows, int *cols);
void editorOpen(char *filename);
void editorSelectSyntaxHighlight();
int editorSyntaxToColor(int hl);
char* editorPrompt(char* prompt, void(*callback)(char*,int));
#ifndef SEARCH_H
#define SEARCH_H
#include"search.c"
#endif
#ifndef SAVE_H
#define SAVE_H
#include"save.c"
#endif
void processKeypress();
void editorDelChar();
void editorInsertNewline();
void editorDelChar();
void editorInsertChar(int c);
//
// #endif