Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old clear command because cls is way better #18

Open
stbischof opened this issue Apr 27, 2021 · 2 comments
Open

remove old clear command because cls is way better #18

stbischof opened this issue Apr 27, 2021 · 2 comments

Comments

@stbischof
Copy link
Contributor

Old:

@Descriptor("clears the screen")
public void clear(CommandSession s) {
for (int i = 0; i < 100; i++) {
s.getConsole()
.println();
}
}

New:

@Descriptor("Clear the screen")
public void cls(CommandSession session) {
session.getConsole()
.append("\u001B[2J")
.flush();
}

@pkriens
Copy link
Member

pkriens commented Apr 27, 2021

Notice that the latest bndtools has an extension to clear the Eclipse console with this ANSI code.

@pkriens
Copy link
Member

pkriens commented Apr 27, 2021

Just pushed the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants