Clear REPL console

#1

I would like to know if is possible to add a command to clear the REPL console?

#2

Do you mean :reset? Or like the bash command clear?

#3

Exactly like bash clear command.

#4

C-l

Apparently this must be at least 20 characters long to post.

3 Likes
#5

On the Mac Terminal app and iTerm ⌘K will clear the screen and scrollback.

1 Like
#6

Yeah, I would think a spam filter would care more about a maximum number of
characters than a minimum…

#7

The nice thing about Discourse is that we can customize it :slight_smile:
So, perhaps we can get rid of this weird restriction. :rolling_eyes:

1 Like
#8

17 extra characters spent would probably make this message “C-I” more clear.

I for one have to bow my head in shame, and admit I don’t understand what is meant with “C-I” in this post, and could have used the extra context required by the minimum character count.

1 Like
#9

That is a key combination: Ctrl+l

1 Like
#10

Another cool trick with sbt:

in ~/.sbt/0.13/build.sbt

commands += Command.command("cls") { state =>
  print("\033c") // clear char in xterm
  state
}

then I use it like this: ~;cls;test

#11

:help could include terminal help, including .rc files and any jline info (if jline is used).

That l sure looks like an I. I wonder if the forum can specify the font. That was an eye, not an ell.

#12

Cool! Someone should open a sbt ticket to keep track of this feature. Implementing it wouldn’t be hard, either!