Commit 7a2ecf8fa8a2ae21a11f43869da19ef7fcc8a0c0
1 parent
e36c57a1
Exists in
master
and in
3 other branches
Implementando tratamento de LF nas capturas de conteúdo.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
selection.c
... | ... | @@ -530,19 +530,19 @@ LIB3270_EXPORT char * lib3270_get_text(H3270 *h, int offset, int len, char lf) |
530 | 530 | return buffer; |
531 | 531 | } |
532 | 532 | |
533 | -LIB3270_EXPORT char * lib3270_get_text_at(H3270 *h, int row, int col, int len) | |
533 | +LIB3270_EXPORT char * lib3270_get_text_at(H3270 *h, int row, int col, int len, char lf) | |
534 | 534 | { |
535 | 535 | CHECK_SESSION_HANDLE(h); |
536 | - return lib3270_get_text(h, ((row-1) * h->cols) + (col-1), len, '\n'); | |
536 | + return lib3270_get_text(h, ((row-1) * h->cols) + (col-1), len, lf); | |
537 | 537 | } |
538 | 538 | |
539 | -LIB3270_EXPORT int lib3270_cmp_text_at(H3270 *h, int row, int col, const char *text) | |
539 | +LIB3270_EXPORT int lib3270_cmp_text_at(H3270 *h, int row, int col, const char *text, char lf) | |
540 | 540 | { |
541 | 541 | int rc; |
542 | 542 | size_t sz = strlen(text); |
543 | 543 | char * contents; |
544 | 544 | |
545 | - contents = lib3270_get_text_at(h,row,col,sz); | |
545 | + contents = lib3270_get_text_at(h,row,col,sz,lf); | |
546 | 546 | if(!contents) |
547 | 547 | return -1; |
548 | 548 | ... | ... |