cpjreynolds / rustty

A terminal UI library
https://docs.rs/rustty
MIT License
153 stars 14 forks source link

Windows support #9

Open retep998 opened 9 years ago

retep998 commented 9 years ago

Is Windows support something that is planned on being supported eventually?

cpjreynolds commented 9 years ago

Windows support is something I've been thinking about, however it would almost definitely have to be within the context of Cygwin. The low-level parts of the library are all based on posix standards for portability, and I'm not sure they could be translated easily to Windows; furthermore, I have no experience with software development on Windows so I would be of no help for a port using native APIs.

In all, I think support for Cygwin is very possible, but native windows support is unlikely.

retep998 commented 9 years ago

The concept of a terminal being a grid of cells is exactly how the native Windows console works. While the low level details would need to be swapped out entirely with the Windows console API, I don't see any issues with the API of this library that would hinder that. I'd be happy to assist with implementing the native Windows support if that was desired.

droundy commented 9 years ago

I agree that native Windows support would be great, although I also have no windows background nor a windows computer. Possibly someone could copy what is being done on rustbox or termbox-go.