9 ms·
Codex uses Ratatui also since June last year. You might be interested to read https://github.com/openai/codex/issues/8344 https://github.com/openai/codex/issues
by joshka 24d ago
Codex uses Ratatui also since June last year. You might be interested to read https://github.com/openai/codex/issues/8344 https://github.com/openai/codex/issues/8344
There's a lot of things you can do to get to 90-95% fidelity with a normal scollable terminal, but that last 5-10% is impossible. And it's because the you're throwing away a bunch of information about mouse movements, clicks, scrolling, keyboard on the input side and all the layout info on the output side (the terminal just sees cells, locations, etc.).
A good analogy is what if your webserver could only send pixels, not html. And receive raw mouse movements. The amount of stuff you have to do to reconcile that across operating systems and hardware would be enormous. That's what you realistically have when you're writing a tool that reimplements all the bits from a terminal emulator in a tui.