Commit 970620a1a9781e83da803c713a4e0a834ba25438

Authored by perry.werneck@gmail.com
1 parent c687f18f

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 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 543 LIB3270_EXPORT int lib3270_get_selection_bounds(H3270 *hSession, int *start, int *end)
531 544 {
532 545 int first, last;
... ...