#565·FTXUI

How ftxui directly displays terminal results

Author: Kurama622Created Jan 23, 2023Updated Jul 22, 2026
Labelsenhancement

I want to implement a preview feature like the ranger and fzf.

I think the best way is to directly call third-party tools such as bat or ccat to return the terminal result directly in the subwindow, but I don't know how ftxui directly displays the terminal result, I can only get the terminal result as a string, and then add the color.

I want a preview effect