https://github.com/goswinr/fesher
A library for colorful console output in the F# scripting editor Fesh
https://github.com/goswinr/fesher
avalonedit fesh fsharp fsharp-interactive fsi pretty-print
Last synced: 12 months ago
JSON representation
A library for colorful console output in the F# scripting editor Fesh
- Host: GitHub
- URL: https://github.com/goswinr/fesher
- Owner: goswinr
- License: mit
- Created: 2024-09-20T14:29:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T19:06:36.000Z (over 1 year ago)
- Last Synced: 2024-10-29T21:18:54.940Z (over 1 year ago)
- Topics: avalonedit, fesh, fsharp, fsharp-interactive, fsi, pretty-print
- Language: F#
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README

# Fesher
[](https://www.nuget.org/packages/Fesher/)
[](https://github.com/goswinr/Fesher/actions/workflows/build.yml)

[](LICENSE)
Fesher is a library for colorful console output in the F# scripting editor [Fesh](https://github.com/goswinr/Fesh)
It has two modules `Printfn` and `Printf` providing functions named by a color.
Those functions work just like the `printfn` and `printf`.
They will detect via reflection if they are running inside Fesh and print in the respective colors.
If used outside of Fesh it will just fall back to `printfn` and `printf`.
The module `Fesher.AllColors` provides [all 280 named WPF colors](https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.colors) as functions.
The function 'clearFeshLog()' will clear the Fesh log window.
### Usage
```fsharp
#r "nuget: Fescher"
open Fesher // for the 18 most common colors, clearFeshLog and setClipboard
//open Fesher.AllColors // for all 280 named WPF colors
clearFeshLog() //optionally clear log window
Printfn.red "The red answer is %s!" 42
```

### License
[MIT](https://raw.githubusercontent.com/goswinr/Fesher/main/LICENSE.md)
### Changelog
see [CHANGELOG.md](https://github.com/goswinr/Fesher/blob/main/CHANGELOG.md)