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

[bug]: CLEAR command does not work in enhanced console (works on cqlsh) #533

Closed
millerjp opened this issue Oct 31, 2024 · 0 comments
Closed
Assignees
Labels
Bug Something isn't working cql console

Comments

@millerjp
Copy link
Contributor

millerjp commented Oct 31, 2024

The CLEAR command in CQLSH is a utility command that cleans up the terminal window by clearing all previous output from the screen[1][2]. Here are the key details about using CLEAR:

Usage Methods

Command Syntax

  • You can use either CLEAR or CLS as the command[1]
  • No parameters are required for this command[1]

Keyboard Shortcut

  • You can also use CTRL+L as a keyboard shortcut to clear the screen[1][4]

Platform Considerations

Unix/Linux

  • The CLEAR command works natively in bash shell environments[4]

Windows

  • In Windows command prompt, clearing the screen within CQLSH may be more limited[4]
  • You might need to exit CQLSH and use the Windows CLS command separately[4]

Example Usage

cqlsh> CLEAR
cqlsh> CLS

This command will remove all previous output and give you a clean terminal window to work with[2]. It's particularly useful when you want to declutter your workspace after executing multiple commands or queries.

Citations:
[1] https://docs.datastax.com/en/cql/hcd-1.0/reference/cqlsh-commands/clear.html
[2] https://www.cloudduggu.com/cassandra/shell-commands/
[3] https://www.i2tutorials.com/cassandra-tutorial/cassandra-cqlsh-commands/
[4] https://stackoverflow.com/questions/29573615/clearing-cassandra-cqlsh-console-in-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working cql console
Projects
None yet
Development

No branches or pull requests

2 participants