[SERVER-4200] Server should have a "clear screen" command Created: 03/Nov/11  Updated: 11/Jul/16  Resolved: 22/Dec/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.1.0

Type: New Feature Priority: Minor - P4
Reporter: Amazia Gur Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: rn
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

There is a no command to clear screen (like 'cls' in command line)



 Comments   
Comment by auto [ 22/Dec/11 ]

Author:

{u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-4200 add 'cls' (clear screen) command to the shell

Added 'cls' command to clear the screen, very similar to the
existing ctrl-L. Strip spaces from the end of commands so
'cls<space>' also works. Added third_party/linenoise.h to
the Visual Studio project so it's in the main list and not
just implicit.
Branch: master
https://github.com/mongodb/mongo/commit/5b6a46a603dadda153db1581dea3000f57963631

Comment by Tad Marshall [ 02/Dec/11 ]

I'd almost like to give this bug a minus vote if I could, just because the best that I could do would be to add 'cls' as another way to access the functionality that ctrl-L already provides.

We have no precedent for providing commands that duplicate existing keystrokes, and I'm not crazy about setting one. The code that would be added isn't the code for clearing the screen (which already exists), it would be code that ties the "logical" command (text) processing into the "physical" screen handling. In addition to being architecturally clumsy, it seems low-value compared to lots of other shell improvements that could be made. Just sayin' ...

Comment by Eliot Horowitz (Inactive) [ 03/Nov/11 ]

Ctrl-L works now - this would be nice too

Generated at Thu Feb 08 03:05:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.