repo.or.cz
/
texed.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Begin re-write of basic display functions in scheme
[texed.git]
/
display.h
blob
358adb1d722f37dbb6b75c4c4c182b2658f7816a
1
2
#ifndef DISPLAY_H
3
#define DISPLAY_H
4
5
#define NORMAL_STATE 0
6
#define INSERT_STATE 1
7
#define VISUAL_STATE 2
8
9
#include
"buffer.h"
10
#include <ncurses.h>
11
12
typedef
struct
13
{
14
WINDOW buffer_display
;
15
WINDOW modeline
;
16
buffer_t contents
;
17
}
editor_window_t
;
18
19
WINDOW
*
main_window
;
20
21
WINDOW
*
minibuf
;
22
23
void
display_init
();
24
25
void
minibuf_echo
(
char
*
string
);
26
27
void
minibuf_clear
();
28
29
void
cursor_move_handler
(
buffer_t
*
current
,
int
key
);
30
31
void
display_render
(
buffer_t contents
,
int
state
);
32
33
#endif