Menu

[b959bd]: / joe / bw.h  Maximize  Restore  History

Download this file

62 lines (50 with data), 1.5 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
/*
* 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 linums;
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;
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);
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);
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.