Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,SuperCollider 的命令行 REPL 中如何进行多行输入?例如,在 Haskell 中,您使用 :{ 和 :} 在 ghci 中打开和关闭多行条目。
如果您使用sclang-i 标志(意思是 eg sclang -i something),则执行先前输入的文本的键码是 esc,后跟换行符。例如:
sclang
sclang -i something
~a = { "test".postln; }^[ ~a.();^[
输出:test
test
如果您从 IDE 或其他脚本上下文(用于 sclang 的单元测试)驱动 sclang,则此工作文件。如果您使用的是 repl,似乎没有办法进行多行条目 - repl 使用 readline,它没有开箱即用的多行支持。这可能应该作为一个错误提交。