From 970620a1a9781e83da803c713a4e0a834ba25438 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 4 Sep 2012 11:40:01 +0000 Subject: [PATCH] Iniciando implementação da função "recortar" --- selection.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/selection.c b/selection.c index d80c75e..917d569 100644 --- a/selection.c +++ b/selection.c @@ -527,6 +527,19 @@ LIB3270_EXPORT char * lib3270_get_selected(H3270 *hSession) return get_text(hSession,0); } +LIB3270_EXPORT char * lib3270_cut_selected(H3270 *hSession) +{ + if(!hSession->selected || hSession->select.start == hSession->select.end) + return NULL; + + if(!lib3270_connected(hSession)) + return NULL; + + + return NULL; +} + + LIB3270_EXPORT int lib3270_get_selection_bounds(H3270 *hSession, int *start, int *end) { int first, last; -- libgit2 0.21.2