Commit 970620a1a9781e83da803c713a4e0a834ba25438
1 parent
c687f18f
Exists in
master
and in
3 other branches
Iniciando implementação da função "recortar"
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
selection.c
| @@ -527,6 +527,19 @@ LIB3270_EXPORT char * lib3270_get_selected(H3270 *hSession) | @@ -527,6 +527,19 @@ LIB3270_EXPORT char * lib3270_get_selected(H3270 *hSession) | ||
| 527 | return get_text(hSession,0); | 527 | return get_text(hSession,0); |
| 528 | } | 528 | } |
| 529 | 529 | ||
| 530 | +LIB3270_EXPORT char * lib3270_cut_selected(H3270 *hSession) | ||
| 531 | +{ | ||
| 532 | + if(!hSession->selected || hSession->select.start == hSession->select.end) | ||
| 533 | + return NULL; | ||
| 534 | + | ||
| 535 | + if(!lib3270_connected(hSession)) | ||
| 536 | + return NULL; | ||
| 537 | + | ||
| 538 | + | ||
| 539 | + return NULL; | ||
| 540 | +} | ||
| 541 | + | ||
| 542 | + | ||
| 530 | LIB3270_EXPORT int lib3270_get_selection_bounds(H3270 *hSession, int *start, int *end) | 543 | LIB3270_EXPORT int lib3270_get_selection_bounds(H3270 *hSession, int *start, int *end) |
| 531 | { | 544 | { |
| 532 | int first, last; | 545 | int first, last; |