{"id":23402654,"url":"https://github.com/alienfruit/alienfruit.fluentconsole","last_synced_at":"2025-06-28T18:10:02.083Z","repository":{"id":46867002,"uuid":"229289278","full_name":"AlienFruit/AlienFruit.FluentConsole","owner":"AlienFruit","description":"FluentConsole is a simple standart console wrapper, which has a fluent interface.","archived":false,"fork":false,"pushed_at":"2024-07-03T08:51:31.000Z","size":150,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T10:19:18.496Z","etag":null,"topics":["ascii","ascii-picture","asciiart","console","csharp","fluent","fluent-interface","painting","picture"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlienFruit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-20T15:28:28.000Z","updated_at":"2024-07-03T08:51:34.000Z","dependencies_parsed_at":"2024-12-22T12:30:59.098Z","dependency_job_id":"c0179431-49ad-47fb-89ed-999dba7f630c","html_url":"https://github.com/AlienFruit/AlienFruit.FluentConsole","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlienFruit/AlienFruit.FluentConsole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienFruit%2FAlienFruit.FluentConsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienFruit%2FAlienFruit.FluentConsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienFruit%2FAlienFruit.FluentConsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienFruit%2FAlienFruit.FluentConsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlienFruit","download_url":"https://codeload.github.com/AlienFruit/AlienFruit.FluentConsole/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienFruit%2FAlienFruit.FluentConsole/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259755694,"owners_count":22906619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","ascii-picture","asciiart","console","csharp","fluent","fluent-interface","painting","picture"],"created_at":"2024-12-22T12:30:17.870Z","updated_at":"2025-06-14T03:36:53.673Z","avatar_url":"https://github.com/AlienFruit.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n[![GitHub](https://img.shields.io/github/license/keenanwoodall/Deform.svg)](https://github.com/AlienFruit/AlienFruit.Otml/blob/master/LICENSE.MIT)\r\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/AlienFruit/AlienFruit.Otml)\r\n\r\n\r\n## FluentConsole\r\n\r\n### Nuget\r\n|  Package name | Package version            |\r\n|---------------|----------------------------|\r\n|    AlienFruit.FluentConsole      |    [![Nuget](https://img.shields.io/nuget/v/AlienFruit.FluentConsole.svg)](https://www.nuget.org/packages/AlienFruit.FluentConsole)   |\r\n\r\n**FluentConsole** is a simple standart console wrapper, which has a fluent interface.\r\n\r\nProbably many people have noticed that the code of change color in the console is looking a bit bulky.\r\n\r\n```C#\r\nConsole.WriteLine(\"This is a text\");\r\nConsole.ForegroundColor = ConsoleColor.Green;\r\nConsole.WriteLine(\"This is a green text\");\r\nConsole.BackgroundColor = ConsoleColor.Red;\r\nConsole.WriteLine(\"his is a green text with red background\");\r\nConsole.ResetColor();\r\nConsole.WriteLine(\"This is a white text\");\r\n```\r\n\r\nAn alternative approach, with use of FluentConsole\r\n\r\n```C#\r\nFConsole.WriteLine(\"This is a text\")\r\n    .Color(ConsoleColor.Green).WriteLine(\"This is a green text\")\r\n    .BackgroundColor(ConsoleColor.Red).WriteLine(\"This is a green text with red background\")\r\n    .ResetColors()\r\n    .WriteLine(\"This is a white text\");\r\n```\r\nOr:\r\n```C#\r\nFConsole.WriteLine(\"This is a text\")\r\n    .Color(ConsoleColor.Green).WriteLine(\"This is a green text\")\r\n    .BackgroundColor(ConsoleColor.Red).WriteLine(\"This is a green text with red background\")\r\nFConsole.WriteLine(\"This is a white text\");\r\n```\r\n\r\n## FluentConsole.AsciiArt\r\n\r\n### Nuget\r\n|  Package name | Package version            |\r\n|---------------|----------------------------|\r\n|    AlienFruit.FluentConsole.AsciiArt  | [![Nuget](https://img.shields.io/nuget/v/AlienFruit.FluentConsole.AsciiArt.svg)](https://www.nuget.org/packages/AlienFruit.FluentConsole.AsciiArt) |\r\n\r\n**FluentConsole.AsciiArt** is a **FluentConsole** extension by which an ASCII picture can be painted from a file.\r\n\r\nUse the following code for painting a demo picture.\r\n```C#\r\nFConsole.GetInstance().DrawDemo(DemoPicture.RainbowPukeSkull);\r\n```\r\n\r\nNext, you will see the demo picture by xero. You can see all his works on http://0w.nz.\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003cimg src=\"https://raw.githubusercontent.com/AlienFruit/AlienFruit.FluentConsole/master/design/Images/RainbowPukeSkull.png\"\u003e\r\n\u003c/div\u003e\r\n\r\nThere are two methods for drawing your pictures from a file.\r\n\r\n```C# \r\nDraw(string pictureFile) // draw from specified file path\r\n```\r\nand\r\n```C#\r\nDraw(Stream stream) //draw from stream\r\n```\r\nExample:\r\n```C#\r\nFConsole.GetInstance().Draw(\"yourAsciiPicture.otml\");\r\n```\r\n\r\nThe picture file has OTML data format. \r\n\r\nYou can get more information about OTML on\r\nhttps://github.com/AlienFruit/AlienFruit.Otml\r\n\r\n### ASCII picture data structure\r\n\r\n```python\r\n\r\n# This is a mandatory object which contains picture chars.\r\n# @Source is an object which contains a multiline text, you can read more about an Otml multiline text on:\r\n# https://github.com/AlienFruit/AlienFruit.Otml/blob/master/docs/en/specification.md#multiline-values\r\n@source\r\n\t\"      -/////+-\t     \" +\r\n\t\" `-::+d/:--:/d+::-` \" +\r\n\t\"//`  o+      ++  `//\" +\r\n\t\"s   :Ns`    `sN-   s\" +\r\n\t\"+:/oo++//++///+o+:/+\" +\r\n\t\"+yo`    `ys`    `oy/\" +\r\n\t\"s:/      oo      /:s\" +\r\n\t\"+///:--:ohho:--:///+\" +\r\n\t\" `::/os``````so//:` \" +\r\n\t\"      -/:--:/-      \"\r\n\r\n# this is an optional object\r\n@style\r\n\tbackground : default\t# background color of the all picture\r\n\tforeground : green\t# foreground color of tho all picture\r\n\tmargin-top : 2\t\t# top margin, there are 2 empty text lines upper the picture\r\n\tmargin-bottom : 2\t# bottom margin, there are 2 empty text lines down below the picture\r\n\tmargin-left : 2\t\t# left margin, there are 2 empty chars on the picture left\r\n\r\n\r\n# for color text selection are used the spetial methods \"@select\"\r\n\r\n# detailed method\r\n@select\r\n\trow : 0\t\t\t# row number\r\n\tstart : 6\t\t# start selection\r\n\tlength : 8\t\t# selection length\r\n\tforeground : darkGreen\t# foreground color\r\n\tbackground : default \t# background (optional)\r\n\r\n# All available colors:\r\n# black\r\n# darkBlue\r\n# darkGreen\r\n# darkCyan\r\n# darkRed\r\n# darkMagenta\r\n# darkYellow\r\n# gray\r\n# darkGray\r\n# blue\r\n# green\r\n# cyan\r\n# red\r\n# magenta\r\n# yellow\r\n# white\r\n# default - default console color\r\n\r\n# or short method where\r\n# 1 - row number, 1 - start selection, 18 - selection length, \r\n# red - foreground color,\r\n# default - background color (optional)\r\n@select\t: 1, 1, 18, darkGreen, default \r\n\r\n# or short method in other style\r\n@select\t\r\n    2\t\t\t# row number\r\n    0\t\t\t# start selection\r\n    20\t\t\t# selection length\r\n    darkGreen,\t\t# foreground color\r\n    default\t\t# background (optional)\r\n\r\n\r\n@select\t: 3, 0, 20, darkGreen\r\n@select\t: 4, 0, 20, darkGreen\r\n@select\t: 5, 0, 20, darkGreen\r\n@select\t: 6, 0, 20, darkGreen\r\n@select\t: 7, 0, 20, darkGreen\r\n@select\t: 8, 1, 18, darkGreen\r\n@select\t: 9, 6, 8,  darkGreen\r\n    \r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienfruit%2Falienfruit.fluentconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienfruit%2Falienfruit.fluentconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienfruit%2Falienfruit.fluentconsole/lists"}