I've been playing with the console improvements in Windows 10. I've hacked up a Win32 compiled version of the venerable VTTEST[1] and run it in the Windows 10 (Build 2004) standard console, and 90%+ of the ANSI escape sequences now work exactly as they should. As such, I'm not sure what a framework like this adds, other than abstracting away the ESC sequences? --- [1] https://invisible-island.net/vttest/
Spectre.Console lets you make beautiful console apps with .NET Core
21–30 of 35 posts
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#22Does it support input anyway? Can a user choose a table row with arrow keys and press a button to do something or input a value?
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#23I've been playing with the console improvements in Windows 10. I've hacked up a Win32 compiled version of the venerable VTTEST[1] and run it in the Windows 10 (Build 2004) standard console, and 90%+ of the ANSI escape sequences now work exactly as they should. As such, I'm not sure what a framework like this adds, other than abstracting away the ESC sequences? --- [1] https://invisible-island.net/vttest/
I'm the author of this lib. Yes, abstracting away ANSI escape sequences is one purpose of the lib, but first and foremost the purpose is to make it easier to render complex things as tables, panels, grids etc.
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#24Wow. I wish there was something like this for other languages (like Python, Nim or Go).
For Python check out the “rich” module[1]. It even uses a table of Star Wars movies as an example. It gives you access to colors and other niceties, like outputting syntax highlighted elements and colorful exceptions with little effort. [1]: https://github.com/willmcgugan/rich
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#25It doesn't mention which platforms are supported, but from a quick search of the repo, it seems to support both Windows and Unix consoles. Nice.
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#26I've been playing with the console improvements in Windows 10. I've hacked up a Win32 compiled version of the venerable VTTEST[1] and run it in the Windows 10 (Build 2004) standard console, and 90%+ of the ANSI escape sequences now work exactly as they should. As such, I'm not sure what a framework like this adds, other than abstracting away the ESC sequences? --- [1] https://invisible-island.net/vttest/
I'm the author of this lib. Yes, abstracting away ANSI escape sequences is one purpose of the lib, but first and foremost the purpose is to make it easier to render complex things as tables, panels, grids etc.
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#27I'm seeing more and more dancing around what I think is a desire to have a computing system much closer to the UI of emacs/lisp machine. It seems the desire is to use the power of natural language to interact with the machine with commands but to not be limited by textual output. Emacs can render pictures and PDFs but it can't render HTML well or videos at all. Another UI that comes real close to what I think a lot o…
This would allow me integrate actual graphics into my "C64 emulator for docker" instead of just a subset of the PETSCI character set :)
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#28Though TUIs have its place, this totally destroys the ability for text processing used a lot on Unix platforms where a more simple output would suffice. For some applications like this it might be better to go for a non-terminal GUI anyway.
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#29Does it support input anyway? Can a user choose a table row with arrow keys and press a button to do something or input a value?
It's not a TUI library in that sense. You should check out Gui.cs if you want to build more interactive applications in C#: https://github.com/migueldeicaza/gui.cs
What I need is a library to give me high-level TUI widgets (kind of like VisualBasic for DOS, not necessarily WYSIWG - code-first is OK) which would look good.
The one you have linked seems the best I have seen (among all the languages) so far but Spectre.Console looks (literally, I mean the aesthetic aspect) even better.
Re: Spectre.Console lets you make beautiful console apps with .NET Core
#30I'm seeing more and more dancing around what I think is a desire to have a computing system much closer to the UI of emacs/lisp machine. It seems the desire is to use the power of natural language to interact with the machine with commands but to not be limited by textual output. Emacs can render pictures and PDFs but it can't render HTML well or videos at all. Another UI that comes real close to what I think a lot o…
I agree. I'm actually working on a couple of projects around non-technical textual interfaces, trying to make "code" applicable to more than just "building software".
Are you familiar with the Raskins' work?
https://en.wikipedia.org/wiki/Canon_Cat https://humane.computer/in-conversation-with-aza-raskin/ https://www.youtube.com/watch?v=EuELwq2ThJE