Commit 37851f4920f0dd54fe0f759bfd99ab308d10c6d2

Authored by perry.werneck@gmail.com
1 parent 12770c70

Iniciando implementação da passagem de valores da interface jni para o buffer de terminal

Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
@@ -274,6 +274,16 @@ @@ -274,6 +274,16 @@
274 274
275 if(*ptr) 275 if(*ptr)
276 { 276 {
  277 + int f;
  278 + char * last = ptr;
  279 +
  280 + for(f=0;ptr[f];f++)
  281 + {
  282 + if(ptr[f] > ' ')
  283 + last = ptr+f+1;
  284 + }
  285 + *last = 0;
  286 +
277 append_string(&info," value=\""); 287 append_string(&info," value=\"");
278 append_string(&info,ptr); 288 append_string(&info,ptr);
279 append_string(&info,"\""); 289 append_string(&info,"\"");
@@ -397,7 +407,7 @@ @@ -397,7 +407,7 @@
397 407
398 if(info.form) 408 if(info.form)
399 { 409 {
400 - static const char * prefix = "<form name=\"" PACKAGE_NAME "\">"; 410 + static const char * prefix = "<form name=\"" PACKAGE_NAME "\" id=\"form3270\" >";
401 static const char * suffix = "</form>"; 411 static const char * suffix = "</form>";
402 char *text = info.text; 412 char *text = info.text;
403 413