1

Topic: CsConsoleFormat - text Formatting in the console (.NET)

library CsConsoleFormat for text formatting in the console. Has convenient syntax for coloring, text wrapping, tables, lists and still a heap only. Understands  characters for transfers, non-breaking spaces and other. It is possible to draw in the console primitives and DOS-ovskimi characters for boundaries. Is on friendly terms with . It is possible to write the code so: <Document> <Span Color = "Red"> Hello </Span> <Br/> <Span Color = "Yellow"> world! </Span> </Document> Or so: new Document (new Span ("Hello") {Color = ConsoleColor. Red}, "\n", new Span ("world!" ) {Color = ConsoleColor. Yellow}); It is written under inspiration from ConsoleFramework which is written under  from WPF.  lie on NuGet, the code is covered by tests, all is supported from.NET 3.5 to.NET Standard 2.0. More shortly, all as is necessary. P.S. Hurrah! Returned access to an old account. And I thought that with the ends lost. P.P.S. Oh, probably, not in that forum sent. Overshot.

2

Re: CsConsoleFormat - text Formatting in the console (.NET)

3

Re: CsConsoleFormat - text Formatting in the console (.NET)

4

Re: CsConsoleFormat - text Formatting in the console (.NET)

5

Re: CsConsoleFormat - text Formatting in the console (.NET)

The following step: character graphics http://picoe.ca/products/pablodraw/ https://www.youtube.com/watch?v=lGVtjsBWKPU

6

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, kov_serg, you wrote: _> As the tetris with usage of this library will look? In any way. Library only for an one-time output of the text. It is amusing that the question about interactive console applications arises the first any more for the first time, and the library which really implements  with windows and buttons in addition (ConsoleFramework) rolls to nobody necessary. Probably, it is logical to be interested that such cool it is possible to make in the console, but this library is intended for ordinarier purposes - first of all this coloring of an output of console utilities which are often used in the console in an interactive mode, especially for a help output on commands. For example, Git is able to color the deduced text. Than other console applications are worse? Here a screenshot of the project-example from a repository:

7

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, Kolesiki, you wrote: A>> Has convenient syntax... A>> <Document> A>> <Span Color = "Red"> Hello </Span> A>> <Br/> A>> <Span Color = "Yellow"> world! </Span> A>> </Document> K> do not tell more word "convenient", hardly you understand its value! Well give, tell to me as the markup language for documents with  as in WPF and  should look. I weigh attention. I implemented all through XAML which in the elementary case turns in HTML 3.2. If who does not love XML, that is alternative DSL directly in C# which repeats native  LINQ to XML (System. Xml. Linq. XElement) with all  IEnumerable and other. In addition there are methods-expansions for  lines a-lja npm.js/colors. If there are specific proposals on syntax, instead of level claims "HTML - faugh" and "XAML - faugh", I weigh attention.

8

Re: CsConsoleFormat - text Formatting in the console (.NET)

9

Re: CsConsoleFormat - text Formatting in the console (.NET)

10

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, kov_serg, you wrote: _> the Best  the console at boobs https://www.youtube.com/watch?v=-zvihHxrfzM&t=202 _> And color there not the main thing is wrong. In  made, that the console looked as a shit that those who looks because of a back of the system administrator, did not think that that is engaged in something cheerful. To system administrators it is difficult, they need to support reputation, idleness to justify. At programmers of such problem is not present. The colored code is a norm. Therefore and in other tools it is not necessary to be afraid to make beautifully and conveniently. We tell, you use syntax highlighting at code editing? Or use the Notepad built in Windows for editing because "color is not the main thing"? And  the interface the Notepad is better repeats, instead of everyones fashionable Sublime Text or -  my God! -  IDE type of a Visual Studio with the infinite helps and refactorings. Also opposite syntax highlighting is not disconnected, it is necessary to change color of each element on black in adjustments. . And why there not Courier New by default, how in ?! Monsters, force to look on Consolas!

11

Re: CsConsoleFormat - text Formatting in the console (.NET)

12

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, kov_serg, you wrote: _> you are not right, it very much  is made. Also that at operation demonstration it is necessary to pull  what page at a window and the page at the real console of the different size is too it is thought over? Also what the font is by default used not from standard adjustments (it Windows 7, there is Consolas), and Courier New which morally obsolete is about 15 years ago too is thought over? Me does not interest that as well as to what it is connected. There all can be though three times abruptly. I see that GUI in video - a sediment. I estimate it. _> there is a drawing, what for to scoff at the console. She allows to cling to the device on two wires (RX, TX) and to interact with it. That is Git in the console you never use? Always press buttons in any GUI? You use command line only through wrappers like it , at least? _> ps: By the way if it is necessary to correct fast something here it is a notepad https://xhmikosr.github.io/notepad2-mod better everyones  IDE What for this bit from the program to use? Is Notepad ++.

13

Re: CsConsoleFormat - text Formatting in the console (.NET)

14

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, kov_serg, you wrote: _> It is a pity that you do not see a problem essence. You do not explain it. Well, except "it is not necessary to me, means, it is necessary to nobody". _> And the Arabian digits did not become outdated? Arabian - is not present. Roman - yes. I not casually told that Courier New became outdated 15 years ago, though to a font for 60 years. Courier New became outdated not because of time of the creation, and because of appearance in 2001 year Windows XP with technology  smoothings ClearType and ubiquitous passage with CRT on LCD. Courier New has been optimized for old technologies. (If you use CRT and disconnect ClearType - yes, in usage Courier New there is a sense as in this case it looks perfectly. Also, probably, Courier New looks not so awfully in 300 + DPI in a large size, but I do not have possibility to estimate.) _> It not GUI it CLI. If you have to make  the formatted output normal html approaches almost in all cases. And any  with this problem consults more than well. And if at you is not present GUI and you use the console? Here sit in your favourite  and drive in commands. Or use that  a wrapper over the console from . Is not present at you HTML and GUI either there, or there. And color - is. (Well, in  is; that console  hardly is able color, and the router hardly is able.NET Core.) By the way, the console hardly becomes outdated, and here  already shows age. , constructed on the unsystematic bare text and crutches with props round this concept, morally becomes outdated, though also it will be applied long enough because of an imperial heritage. The future for PowerShell. _> it is not necessary to drive a wave, this notepad soils notepad ++ Name though one point on which Notepad2 someone soils (except time from the last release). [Edit] And, you on mod threw the link. It even on time from the last release soils nobody. However, it same thrown, only versions of libraries are updated, judging by .

15

Re: CsConsoleFormat - text Formatting in the console (.NET)

A> Zapilil library CsConsoleFormat for text formatting in the console. Cool. At me is a little console  which never it is required heavy GUI, and they outgrew for a long time possibilities of the standard console. I will try to cross to library, thanks.

16

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, hi_octane, you wrote: _> it is cool. At me is a little console  which never it is required heavy GUI, and they outgrew for a long time possibilities of the standard console. I will try to cross to library, thanks.  ? If yes, as cross, throw the link - it will be useful for me to look at real usage.

17

Re: CsConsoleFormat - text Formatting in the console (.NET)

18

Re: CsConsoleFormat - text Formatting in the console (.NET)

Hello, kov_serg, you wrote: _> Ramsky nobody uses? XXL size - not And we write down: you do not know the Roman digits. The sizes have no relation to the Roman digits. Any "S", "XS" and "XXXL" in the Roman digits is not present, these are abbreviations from "extra-small" and "extra-extra-extra-large". The Roman digits use, certainly. In the core for  and pathos in special cases. And if the average person understands "XX-th century", if you will use "MDCCCXCVIII" at date record on you look as at the loony. _> it is problems of specific implementation, instead of a font. Algorithms of alignment on a pixel grid are stored in the font, therefore it is problems that a font. (That  ignores algorithms and draws soap are problems .) _> Strangely enough but html there is _> Image: 3jE5S6C.png you as a matter of fact will argue or write one-line formal replies out of place? Here tell, when you want to learn, what arguments are at a command, you write "foo-h" or "lynx http://google.com/search?q=linux+foo+manual"? _> Well well. Powershell it is pure  a hand-made article after cmd and cscript it is finite  as great achievement. That is as a matter of fact there is nothing to object. A>> Name though one point on which Notepad2 someone soils (except time from the last release). _> On a functional. That is any point cannot name.

19

Re: CsConsoleFormat - text Formatting in the console (.NET)

20

Re: CsConsoleFormat - text Formatting in the console (.NET)

A> Figoviny ? If yes, as cross, throw the link - it will be useful for me to look at real usage. Alas, while are not planned at all in open-sors