1

I simply can't find the way to read from the keyboard.

Inside the script file, I tried with this:

CLI run
CLI setPrompt
CLI readLine
CLI whatever

but it doesn't work.

Pang
  • 9,564
  • 146
  • 81
  • 122
Rob
  • 21
  • 2

2 Answers2

2

Alternatively, a way of reading from a line that doesn't require you have libreadline installed, is to use:

myInputtedValue := File standardInput readLine

jer
  • 20,094
  • 5
  • 45
  • 69
1

You can just do:

myInputtedValue := ReadLine readLine
Max
  • 721
  • 5
  • 8