Menu

[76e07a]: / joe / bw.h  Maximize  Restore  History

Download this file

71 lines (58 with data), 2.0 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
66
67
68
69
70
/*
* Edit buffer window generation
* Copyright
* (C) 1992 Joseph H. Allen
*
* This file is part of JOE (Joe's Own Editor)
*/
/* A buffer window: there are several kinds, depending on what is in 'object' */
struct bw {
W *parent;
B *b;
P *top;
P *cursor;
off_t offset;
Screen *t;
ptrdiff_t h, w, x, y;
OPTIONS o;
void *object;
int lincols; /* Line number column width */
off_t curlin; /* Cursor line (highlighted) */
int top_changed; /* Top changed */
struct lattr_db *db; /* line attribute database */
int shell_flag; /* Cursor should follow shell cursor in this window */
};
extern int dspasis; /* Display characters above 127 as-is */
extern int opt_mid; /* Controls how window scrolls: when set, scroll window enough so that line with cursor becomes centered */
extern int opt_left;
extern int opt_right;
extern int selectmask; /* Attribute mask for selected text */
extern int selectatr; /* Attribute value for selected text */
extern int bg_linum; /* Attribute value for line numbers */
extern int bg_curlinum; /* Attribute value for the line number of the current line */
extern int bg_curlin; /* Attribute value for the current line */
extern int curlinmask; /* Mask for the current line */
void bwfllw(W *w);
void bwfllwt(W *w);
void bwfllwh(W *w);
void bwins(BW *w, off_t l, off_t n, int flg);
void bwdel(BW *w, off_t l, off_t n, int flg);
void bwgen(BW *w, int linums, int linchg);
void bwgenh(BW *w);
BW *bwmk(W *window, B *b, int prompt);
void bwmove(BW *w, ptrdiff_t x, ptrdiff_t y);
void bwresz(BW *w, ptrdiff_t wi, ptrdiff_t he);
void bwrm(BW *w);
int ustat(W *w, int k);
int ucrawll(W *w, int k);
int ucrawlr(W *w, int k);
void orphit(BW *bw);
int calclincols(BW *bw);
extern int marking; /* Anchored block marking mode */
void save_file_pos(FILE *f);
void load_file_pos(FILE *f);
off_t get_file_pos(const char *name);
void set_file_pos(const char *name, off_t pos);
extern int restore_file_pos;
void set_file_pos_all(Screen *t);
BW *vtmaster(Screen *t, B *b);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.