Commit cd358ad9820eaedf33abc3e985e14c3932250f91

Authored by perry.werneck@gmail.com
1 parent 57c71b10

Incluindo notificação do estado do bloco selecionado

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
selection.c
... ... @@ -572,8 +572,16 @@ LIB3270_EXPORT char * lib3270_get_field_at(H3270 *session, int baddr)
572 572 return lib3270_get_text(session,first,lib3270_field_length(session,first)+1);
573 573 }
574 574  
  575 +LIB3270_EXPORT int lib3270_has_selection(H3270 *hSession)
  576 +{
  577 + CHECK_SESSION_HANDLE(hSession);
  578 + return hSession->selected != 0;
  579 +}
  580 +
575 581 LIB3270_EXPORT char * lib3270_get_selected(H3270 *hSession)
576 582 {
  583 + CHECK_SESSION_HANDLE(hSession);
  584 +
577 585 if(!hSession->selected || hSession->select.start == hSession->select.end)
578 586 return NULL;
579 587  
... ...