Replies: 2 comments 5 replies
-
Take a look at the Radline project. I believe this is the direction you are interested in. Any assistance is driving this forward is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
OK, I got back to the app in which I wanted to explore RadLine, and saw that it needed upgrading to 0.6.0; however, 0.6.0 only supports .net 6.0, and my app is running (at least right now) as a .NET Framework 4.8 app, so the upgrade failed. That is, it appears that you removed support for .NET Standard 2.0 (which made it usable in .NET Framework). Is this also where Spectre.Console is heading? Or is there some way you can support .NET Framework as well? |
Beta Was this translation helpful? Give feedback.
-
I'm using Spectre.Console happily but would like to know how one might go about creating a multiline prompt "widget" that allows for interactive REPL-style coding. The multiple line input would need a termination rule, either some character that escapes the prompt, or otherwise a place to customize that logic so that a variety of different kinds of input termination strategies to be plugged in by the user.
To be more precise, I'm thinking of the interaction experience I get in Chez Scheme, which has a nifty feature of back highlighting left-parens when I type a right parens, even if it was on a previous line. The termination strategy in Scheme (or any Lisp) is balanced parens - so as soon as I hit enter after balancing my final right parens, then the entire multiline response to the prompt is read in and evaluated. Another feature of Chez's REPL editor is the ability to use up/down/left/right to modify the entry like a normal text editor would. I'd like to replicate that kind of experience in a REPL. Bonus points if I can rewrite the input so far and apply syntax highlighting via dynamic highlighting. Another use case is a database REPL where queries are terminated with ';'.
Any pointers on implementing a widget of this kind (even of lesser ambition) appreciated!
Beta Was this translation helpful? Give feedback.
All reactions