Closed bgianfo closed 4 years ago
Sorry for really late response. Basically tuikit uses the following UNIX specific features:
fcntl
to support non-blocking file read (of user input).ioctl
to get terminal size.sigaction
to register handler over terminal resize.And you could find the related code at sys
directory.
Unfortunately I'm not familiar with Windows's API. Sorry that I'll not add the support myself. PRs are welcome though.
Seems like skim uses tuikit so it also doesn't work in windows.
What about using existing libraries such as termwiz or crossterm that works in pure rust and is cross platform. Both supports non blocking as well as getting terminal size as well as resize events.
TermWiz is also quite interesting as it has first class support for BufferredTerminal as well as Widgets.
Seems like skim uses tuikit so it also doesn't work in windows.
What about using existing libraries such as termwiz or crossterm that works in pure rust and is cross platform. Both supports non blocking as well as getting terminal size as well as resize events.
TermWiz is also quite interesting as it has first class support for BufferredTerminal as well as Widgets.
maybe a wrapper for windows that uses termwiz?
Is here any chance of adding windows support to tuikit? It seems to use a bunch of UNIX specific functionality?