Create a tool with Codex that sends messages to Codex running in iTerm. The tool was built, but it can only write messages to the input box and cannot send them. I tried various string concatenations like "\r" and other combinations, but none worked.


Then I looked into iTerm's source code and searched online, and ultimately concluded that it's not possible.
iTerm's API only allows sending text; it cannot directly send keyboard events, so sending messages automatically isn't feasible. I was advised to only support tmux and give up on iTerm.
But I didn't give up. I experimented a few more times and found that after sending the text, sending a separate "\r" can trigger the message to send.
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments