-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcursor.h
48 lines (42 loc) · 1.11 KB
/
cursor.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* cursor.h
*
* CAVE WALL - Colored Ascii Visual Editor Without Any Loathsome Limitations
* Cursor movement routines - header file
*
* Copyright (C) 2002 Michal Miszewski <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef CURSOR_H
#define CURSOR_H
#ifdef RANDOM
extern FILE *rnd;
#endif
extern WINDOW *editp;
extern int xsize, ysize;
extern int truexsize, trueysize;
extern int leftline, topline;
#ifdef HIGHLIGHT
void highlight_block(void);
#endif
void editprefresh(void);
void editp_scroll(int dlines, int rlines);
void change_editp_size(int down, int right);
void put_cursor(int y, int x);
void cursor_up(void);
void cursor_down(void);
void mv_cursor(int y, int x);
void move_up(void);
void move_down(void);
void move_left(void);
void move_right(void);
int randomize(int min, int max);
void step(void);
void step_bwd(void);
void cursor_load_defaults(void);
extern int xSTART, ySTART, xFIN, yFIN;
extern bool blockmode;
#endif /* CURSOR_H */