if (pendingInsert) {
if (pendingInsert && homePos > 0) {
   public void goHome() {      //  now we try to move to first input field according to      //  14.6 WRITE TO DISPLAY Command      //     If the WTD command is valid, after the command is processed,      //          the cursor moves to one of three locations:      //    - The location set by an insert cursor order (unless control      //          character byte 1, bit 1 is equal to B'1'.)      //    - The start of the first non-bypass input field defined in the      //          format table      //    - A default starting address of row 1 column 1.      if (pendingInsert) {         goto_XY(getRow(homePos),getCol(homePos));         isInField();   // we now check if we are in a field      }      else {         if(!gotoField(1)) {            homePos = getPos(1,1);            goto_XY(1,1);            isInField(0,0);   // we now check if we are in a field         }         else {            homePos = getPos(getCurrentRow(),getCurrentCol());         }      }   }