Turn off IME features on terminal

Bug: 391481577
Bug: 405891712

Test: open vi, type some texts, press enter (only once) -> moves to the
next line
Test: on the shell, type some texts, press space twice, type more text
-> only the texts typed in are shown
Test: turn on talkback. check focus goes to each line in the terminal

Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:38f4903b40f471dd9e157edc14286cb7a195ab91)
Merged-In: I2700534b56b546ae23bd208a7bbeb6711aa79f61
Change-Id: I2700534b56b546ae23bd208a7bbeb6711aa79f61
diff --git a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt
index 6917827..9910591 100644
--- a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt
+++ b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.kt
@@ -286,7 +286,11 @@
     override fun onCreateInputConnection(outAttrs: EditorInfo?): InputConnection? {
         val inputConnection = super.onCreateInputConnection(outAttrs)
         if (outAttrs != null) {
-            outAttrs.inputType = outAttrs.inputType or InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
+            outAttrs.inputType =
+                InputType.TYPE_CLASS_TEXT or
+                    InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS or
+                    InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
+            outAttrs.imeOptions = EditorInfo.IME_FLAG_FORCE_ASCII
         }
         return inputConnection
     }