Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T19:06:36.000Z (3 months ago)
- Last Synced: 2024-10-29T21:18:54.940Z (3 months 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
![Logo](https://raw.githubusercontent.com/goswinr/Fesher/main/Docs/logo128.png)
# Fesher[![Fesher on nuget.org](https://img.shields.io/nuget/v/Fesher)](https://www.nuget.org/packages/Fesher/)
[![Build Status](https://github.com/goswinr/Fesher/actions/workflows/build.yml/badge.svg)](https://github.com/goswinr/Fesher/actions/workflows/build.yml)
![code size](https://img.shields.io/github/languages/code-size/goswinr/Fesher.svg)
[![license](https://img.shields.io/github/license/goswinr/Fesher)](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 colorsclearFeshLog() //optionally clear log window
Printfn.red "The red answer is %s!" 42
```![Screenshot](https://raw.githubusercontent.com/goswinr/Fesher/main/Docs/screen.png)
### License
[MIT](https://raw.githubusercontent.com/goswinr/Fesher/main/LICENSE.md)### Changelog
see [CHANGELOG.md](https://github.com/goswinr/Fesher/blob/main/CHANGELOG.md)