[ 
https://issues.apache.org/jira/browse/CASSANDRA-10086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14708745#comment-14708745
 ] 

Stefania commented on CASSANDRA-10086:
--------------------------------------

Thanks for the patch, +1. [~jbellis] could you commit on 3.0?

The tests for cqlsh are located in _cqlsh_tests/cqlsh_tests.py_. We are missing 
some commands but we've started adding tests whenever we make any changes to 
existing commands or add new ones. A good example would be the DESCRIBE 
command, for which you find some tests in this file. 

The test is actually quite simple, we just run cqlsh and check that there is no 
error in stderr and that stdout contains one of the clear screen ANSI escape 
sequences. Have a look at the top commit 
[here|https://github.com/stef1927/cassandra-dtest/commits/10086].

It works on Linux. Are you by any chance running Windows or Mac OS, to see if 
it works there too? If not, don't worry about it, just review the test and 
confirm you are happy with it.
 

> Add a "CLEAR" cqlsh command to clear the console
> ------------------------------------------------
>
>                 Key: CASSANDRA-10086
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10086
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Paul O'Fallon
>            Priority: Trivial
>              Labels: cqlsh, doc-impacting
>         Attachments: 10086.txt, 10086v2.txt
>
>
> It would be very helpful to have a "CLEAR" command to clear the cqlsh 
> console.  I learned (after researching a patch for this) that lowercase 
> CTRL+L will clear the screen, but having a discrete command would make that 
> more obvious.  To match the expectations of Windows users, an alias to "CLS" 
> would be nice as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to