Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for the Console.ReadLine() command
#1
Getting console input is quite frequent in testing. It would be great if it could be supported.
My suggestion is as shown in the diagram below:
   
1. The input box will automatically appear above the output panel when needed.
2. Pressing shift+Enter will automatically increase the height of the input box, turning it into a multiline text input box.
3. Pressing Enter confirms the input.

A demonstration of this feature in LINQPad is shown below.
   

Additionally, I suggest adding two pre-defined code snippets(To make it easier for more people).
cr => Console.ReadLine("");
cw => Console.WriteLine("");
#2
Many beginners in programming start by learning how to create console programs. It is essential to implement the functionality mentioned above. Smile
#3
In next LA:
Console.ReadLine in non-console scripts uses dialog.showInput.
Console in/out functions are redirected not only in miniProgram scripts but also in exeProgram scripts started from LA.
#4
I tested it, and it doesn't feel elegant. It would be more suitable if it could be like the one shown in Figure 1 of #1


Forum Jump:


Users browsing this thread: 1 Guest(s)