Futures
Access hundreds of perpetual contracts
TradFi
Gold
One platform for global traditional assets
Options
Hot
Trade European-style vanilla options
Unified Account
Maximize your capital efficiency
Demo Trading
Introduction to Futures Trading
Learn the basics of futures trading
Futures Events
Join events to earn rewards
Demo Trading
Use virtual funds to practice risk-free trading
Launch
CandyDrop
Collect candies to earn airdrops
Launchpool
Quick staking, earn potential new tokens
HODLer Airdrop
Hold GT and get massive airdrops for free
Launchpad
Be early to the next big token project
Alpha Points
Trade on-chain assets and earn airdrops
Futures Points
Earn futures points and claim airdrop rewards
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.