-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:dariooddenino/purescript-charm
- Loading branch information
Showing
5 changed files
with
83 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Purescript Charm | ||
================ | ||
|
||
A PureScript wrapper for [Charm](https://github.com/substack/node-charm). | ||
|
||
Use ansi terminal characters to write colors and cursor positions. | ||
|
||
Example | ||
======= | ||
|
||
```purescript | ||
import Prelude | ||
import Node.Charm | ||
main :: Eff (charm :: CHARM) Unit | ||
main = do | ||
let c = charm [] | ||
render c do | ||
reset | ||
right 16 | ||
write "beep" | ||
down 1 | ||
right 32 | ||
foreground $ Left Magenta | ||
write "boop\n" | ||
display Reset | ||
end | ||
``` | ||
|
||
Missing | ||
======= | ||
|
||
- Right now `purescript-charm` only works with the default `process.stdin` / `process.stdout`. | ||
|
||
- `getPosition` doesn't work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters