1

我根本找不到从键盘上阅读的方法。

在脚本文件中,我尝试了这个:

CLI run
CLI setPrompt
CLI readLine
CLI whatever

但它不起作用。

4

2 回答 2

2

或者,从不需要您libreadline安装的行中读取的一种方法是使用:

myInputtedValue := File standardInput readLine

于 2016-02-13T00:31:29.130 回答
1

你可以这样做:

myInputtedValue := ReadLine readLine
于 2016-01-26T11:13:58.103 回答