This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
android.useAndroidX=true
|
||||
org.gradle.jvmargs=-Xmx2048m -XX:+IgnoreUnrecognizedVMOptions -XX:MaxMetaspaceSize=512m
|
||||
kotlin.compiler.execution.strategy=in-process
|
||||
|
||||
|
||||
@@ -187,16 +187,8 @@ class TerminalViewModel(application: Application) : AndroidViewModel(application
|
||||
ip.setKeyboardLocked(false)
|
||||
ip.sendAid(AID_ENTER)
|
||||
} else if (ch >= ' ') {
|
||||
var curAddr = buf.cursorAddress
|
||||
if (buf.isFormatted) {
|
||||
val faVal = buf.getFieldAttributeAt(curAddr)
|
||||
if (faIsProtected(faVal.toInt() and 0xFF) || buf.getCell(curAddr).isFieldAttribute) {
|
||||
curAddr = buf.findNextUnprotected(curAddr)
|
||||
buf.cursorAddress = curAddr
|
||||
}
|
||||
}
|
||||
ip.typeCharacter(ch)
|
||||
log.info("After typeCharacter('$ch'): newAddr=${buf.cursorAddress}, cellChar='${buf.getCell(curAddr).ucs4}'")
|
||||
log.info("After typeCharacter('$ch'): newAddr=${buf.cursorAddress}, cellChar='${buf.getCell(buf.cursorAddress).ucs4}'")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user