简体   繁体   English

如何清除Dr. Racket IDE中的解释器屏幕?

[英]How can I clear the interpreter screen in Dr. Racket IDE?

Just starting into The Little Schemer, and have a very basic Dr. Racket IDE question: 刚刚开始进入The Little Schemer,并有一个非常基本的Dr. Racket IDE问题:

  1. How can I clear the interpreter screen? 如何清除翻译屏幕?

  2. How can I set the up arrow to display the previously-typed items (like in Bash) rather than the current behavior of scrolling up the screen? 如何设置向上箭头以显示以前键入的项目(如在Bash中)而不是当前滚动屏幕的行为?

My searches are coming up blank, possibly because I don't know the technical term for these actions. 我的搜索空白,可能是因为我不知道这些操作的技术术语。

Here's how: 这是如何做:

  1. Click on the "run" button, as you discovered 如您所见,单击“运行”按钮
  2. Press Esc + p Esc + p

And this is the relevant page in the documentation . 这是文档中的相关页面。

1 clear interactions window 1个清晰的交互窗口

As you found out, pressing RUN |> starts up a new instance of the selected language, runs everything in the definition window and clears everything you've done in interactions window (repl). 正如您所知,按RUN |>启动所选语言的新实例,在定义窗口中运行所有内容并清除您在交互窗口(repl)中完成的所有操作。

2 get previous entries like in a shell 2获取以前的条目,如在shell中

a) In the Racket IDE you can hold CTRL with arrow keys to get to previously written statements in the interactions window. a)在Racket IDE中,您可以使用箭头键保持CTRL以访问交互窗口中以前编写的语句。

b) Racket can be run from terminal too. b)球拍也可以从终端运行。 When in CLI you type racket it starts up the read-eval-print loop with racket loaded and if you enter (require xrepl) as the first statement you have similar to readline capabilities with up-arrow to get previous, CTRL + r to search history and REPL-commands like ,apropos , ,help and so on. 在CLI中键入racket它会启动带有racket加载的read-eval-print循环,如果输入(require xrepl)作为第一个语句,则类似于readline功能,使用向上箭头获取前一个, CTRL + r进行搜索历史和REPL命令,如,apropos ,help等。 It's called eXtended REPL 它被称为扩展REPL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM