# Commands in julia

**URL:** <https://discourse.julialang.org/t/commands-in-julia/22067>\
**Category:** New to Julia\
**Created:** [March 19, 2019, 6:18pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067 "2019-03-19T18:18:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GERSON\_EZEQUIEL\_HERN](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerson_ezequiel_hern/32/7437_2.png) [@GERSON\_EZEQUIEL\_HERN](https://discourse.julialang.org/u/GERSON_EZEQUIEL_HERN)\
**Post date:** [March 19, 2019, 6:18pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/1 "2019-03-19T18:18:45Z")

</div>

how to clean the screen (in console)  
Simple commands in julia’s console

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [March 19, 2019, 6:28pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/2 "2019-03-19T18:28:12Z")

</div>

Are you looking for `CTRL + L` ?

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [March 19, 2019, 6:32pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/3 "2019-03-19T18:32:27Z")

</div>

`print("\e[2J")`

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [March 19, 2019, 6:32pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/4 "2019-03-19T18:32:52Z")

</div>

Generally speaking the REPL is very compatible with keyboard commands, so anything that works in `bash` (or `zsh` or whatever) should work in the REPL. I’m not aware of any exceptions, even forward and reverse search work (e.g. `CTRL-R`).

(I don’t know about Windows. In my experience nothing ever works right in Windows, so you can probably expect nothing to work in this case as well.)

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 19, 2019, 7:03pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/5 "2019-03-19T19:03:34Z")

</div>

Hitting `;` will get you into shell mode, where you can type things like `clear` to clean the screen.

---

<div class="post-metadata">

**Author:** ![braamvandyk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/braamvandyk/32/5086_2.png) [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Post date:** [March 21, 2019, 7:12am UTC](https://discourse.julialang.org/t/commands-in-julia/22067/6 "2019-03-21T07:12:44Z")

</div>

Ctrl-L is one of the few things that do work in Windows.

---

<div class="post-metadata">

**Author:** ![ffevotte](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffevotte/32/6587_2.png) [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Post date:** [March 22, 2019, 2:11pm UTC](https://discourse.julialang.org/t/commands-in-julia/22067/7 "2019-03-22T14:11:10Z")

</div>

And if you need to clear the terminal programmatically, something like this should work:

```julia
import REPL
REPL.Terminals.clear(Base.active_repl.t);

```

---

<div class="post-metadata">

**Author:** ![GERSON\_EZEQUIEL\_HERN](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerson_ezequiel_hern/32/7437_2.png) [@GERSON\_EZEQUIEL\_HERN](https://discourse.julialang.org/u/GERSON_EZEQUIEL_HERN)\
**Post date:** [March 24, 2019, 12:49am UTC](https://discourse.julialang.org/t/commands-in-julia/22067/8 "2019-03-24T00:49:20Z")

</div>

that was the answer he was needing …

thank you very much to all …
