Commit f12c820773eeb758827eb88ec11331727c66b491
1 parent
57a5b4d0
Exists in
master
and in
3 other branches
Implementando combo para selecao do esquema de cores
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
screen.c
... | ... | @@ -99,6 +99,19 @@ static void addch(H3270 *session, int baddr, unsigned char c, unsigned short att |
99 | 99 | session->update(session,baddr,c,attr,baddr == session->cursor_addr); |
100 | 100 | } |
101 | 101 | |
102 | +LIB3270_EXPORT int lib3270_get_element(H3270 *h, int baddr, unsigned char *c, unsigned short *attr) | |
103 | +{ | |
104 | + CHECK_SESSION_HANDLE(h); | |
105 | + | |
106 | + if(!h->text || baddr < 0 || baddr > (h->rows*h->cols)) | |
107 | + return EINVAL; | |
108 | + | |
109 | + *c = h->text[baddr].chr; | |
110 | + *attr = h->text[baddr].attr; | |
111 | + | |
112 | + return 0; | |
113 | +} | |
114 | + | |
102 | 115 | /** |
103 | 116 | * Initialize the screen. |
104 | 117 | * | ... | ... |