This package provides a way to depend on the right platform-specific Vty package at build time by detecting the build environment's operating system.
To use this package instead of a specific platform package:
- Add a package dependency on
vty-crossplatform
- Import
mkVty
fromGraphics.Vty.CrossPlatform
- Call
mkVty
to initialize the terminal
Behind the scenes, this package will depend on the right platform package at compile time.
At present, this provides support via the following platform-specific packages:
Got a new Vty platform package you want to integrate here? The only
build-time requirement to integrate with this package is simply that the
new package exports a function called mkVty
with type VtyUserConfig -> IO Vty
. Open a ticket with a request to add your package and we can
work out the details.