comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 42:7ac846a07ed4 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 09:14:31 -0700
parents 9621ac4dd5eb
children 79aaf30947e2
comparison
equal deleted inserted replaced
41:9621ac4dd5eb 42:7ac846a07ed4
938 * @param text 938 * @param text
939 * The string of characters to be sent 939 * The string of characters to be sent
940 * 940 *
941 * @see #sendAid 941 * @see #sendAid
942 * 942 *
943 * Added synchronized to fix a StringOutOfBounds error - Luc Gorren LDC
944 */ 943 */
945 public synchronized void sendKeys(String text) { 944 public synchronized void sendKeys(String text) {
946 945
947 // if (text == null) {
948 // return;
949 // }
950 this.keybuf.append(text); 946 this.keybuf.append(text);
951 947
952 if (isStatusErrorCode() && !resetRequired) { 948 if (isStatusErrorCode() && !resetRequired) {
953 setCursorActive(false); 949 setCursorActive(false);
954 simulateMnemonic(getMnemonicValue("[reset]")); 950 simulateMnemonic(getMnemonicValue("[reset]"));
968 return; 964 return;
969 } 965 }
970 966
971 oia.setKeysBuffered(true); 967 oia.setKeysBuffered(true);
972 968
973 if (bufferedKeys == null) { 969 if (bufferedKeys == null) bufferedKeys = text;
974 bufferedKeys = text; 970 else bufferedKeys += text;
975 return;
976 }
977 bufferedKeys += text;
978 return; 971 return;
979 } 972 }
980 973
981 } else { 974 } else {
982 975