# Clear terminal window

**URL:** <https://discourse.julialang.org/t/clear-terminal-window/17046>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 1, 2018, 10:06am UTC](https://discourse.julialang.org/t/clear-terminal-window/17046 "2018-11-01T10:06:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 15, 2021, 12:09pm UTC](https://discourse.julialang.org/t/clear-terminal-window/17046/9 "2021-12-15T12:09:53Z")

</div>

You should probably use something like

```julia
julia> for i in 1:10
           print("\e[0;0H\e[2J")
           println("test", i)
           sleep(0.1)
       end

```

for that.

---

_[View the full topic](https://discourse.julialang.org/t/clear-terminal-window/17046)._
