Commit 4ba960136dc4e3631e02d5691bd93b720a7c66ac

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

Incluindo macro HLLAPI para apagar até o final do campo; associando ação corresp…

…ondente à tecla <end> (estava faltando esse ajuste no arquivo ui)
@@ -5,7 +5,7 @@ msgid &quot;&quot; @@ -5,7 +5,7 @@ msgid &quot;&quot;
5 msgstr "" 5 msgstr ""
6 "Project-Id-Version: pw3270 5.0\n" 6 "Project-Id-Version: pw3270 5.0\n"
7 "Report-Msgid-Bugs-To: \n" 7 "Report-Msgid-Bugs-To: \n"
8 -"POT-Creation-Date: 2012-10-01 09:56-0300\n" 8 +"POT-Creation-Date: 2012-10-01 10:20-0300\n"
9 "PO-Revision-Date: 2012-09-27 10:51-0300\n" 9 "PO-Revision-Date: 2012-09-27 10:51-0300\n"
10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 "Language-Team: Português <perry.werneck@gmail.com>\n" 11 "Language-Team: Português <perry.werneck@gmail.com>\n"
src/include/lib3270.h
@@ -33,6 +33,11 @@ @@ -33,6 +33,11 @@
33 33
34 #define LIB3270_H_INCLUDED 1 34 #define LIB3270_H_INCLUDED 1
35 #include <stdarg.h> 35 #include <stdarg.h>
  36 + #include <errno.h>
  37 +
  38 + #ifndef ENOTCONN
  39 + #define ENOTCONN 107
  40 + #endif // !ENOTCONN
36 41
37 #if defined(__GNUC__) 42 #if defined(__GNUC__)
38 #define LIB3270_GNUC_FORMAT(s,f) __attribute__ ((__format__ (__printf__, s, f))) 43 #define LIB3270_GNUC_FORMAT(s,f) __attribute__ ((__format__ (__printf__, s, f)))
src/plugins/remotectl/remotectl.c
@@ -207,6 +207,10 @@ @@ -207,6 +207,10 @@
207 lib3270_enter(hSession); 207 lib3270_enter(hSession);
208 break; 208 break;
209 209
  210 + case 'F': // Erase EOF
  211 + lib3270_eraseeof(hSession);
  212 + break;
  213 +
210 case '1': // PF1 214 case '1': // PF1
211 lib3270_pfkey(hSession,1); 215 lib3270_pfkey(hSession,1);
212 break; 216 break;
ui/00default.xml
@@ -79,7 +79,7 @@ @@ -79,7 +79,7 @@
79 <menuitem action='erase' target='all' group='online' key='Pause' label='Clear' /> 79 <menuitem action='erase' target='all' group='online' key='Pause' label='Clear' />
80 <menuitem action='erase' target='input' icon='clear' group='online' label='Erase input' /> 80 <menuitem action='erase' target='input' icon='clear' group='online' label='Erase input' />
81 <menuitem action='erase' target='field' key='<Ctrl>u' group='online' label='Delete field' /> 81 <menuitem action='erase' target='field' key='<Ctrl>u' group='online' label='Delete field' />
82 - <menuitem action='erase' target='eof' group='online' label='Erase to end of field' /> 82 + <menuitem action='erase' target='eof' group='online' key='End' label='Erase to end of field' />
83 <menuitem action='erase' target='eol' group='online' label='Erase to end of line' /> 83 <menuitem action='erase' target='eol' group='online' label='Erase to end of line' />
84 </menu> 84 </menu>
85 85