Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows support for tuikit? #13

Closed
bgianfo opened this issue Oct 1, 2019 · 3 comments
Closed

Windows support for tuikit? #13

bgianfo opened this issue Oct 1, 2019 · 3 comments

Comments

@bgianfo
Copy link

bgianfo commented Oct 1, 2019

Is here any chance of adding windows support to tuikit?
It seems to use a bunch of UNIX specific functionality?

@lotabout
Copy link
Collaborator

Sorry for really late response. Basically tuikit uses the following UNIX specific features:

  1. use fcntl to support non-blocking file read (of user input).
  2. use ioctl to get terminal size.
  3. use 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.

@prabirshrestha
Copy link

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.

@Kreijstal
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants