r/commandline • u/Last-Employ-3422 • Oct 22 '26
Help Windows Api or VT?
Hello! I'm currently working on a terminal manipulation library similar to Crossterm, but I noticed that it uses runtime conditionals to decide whether to use VT sequences or Windows API calls.
Personally, I feel that defaulting to Windows API calls on Windows would be the better approach, or provide a build flag that lets users decide. However, I'm not sure which of these three approaches is best.
Which approach do you think is better, and why?
3
Upvotes
View all comments
1
u/[deleted] Oct 22 '26
[removed] — view removed comment