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

Clearing Script Console Output Window #750

Closed
NotSoRandomOne opened this issue Aug 31, 2019 · 4 comments
Closed

Clearing Script Console Output Window #750

NotSoRandomOne opened this issue Aug 31, 2019 · 4 comments
Assignees
Labels
bug Something likely wrong in the code state: confirmed A developer can reproduce the issue
Milestone

Comments

@NotSoRandomOne
Copy link

First, Thanks for the previous changes! Very cool!

One thing I noticed in previous build and this new master (17131) is there doesn't seem to be any way to clear the script console output window.

The following will show the issue. Rerun it a few times, and the output just keeps growing. Have to restart Stellarium to clear it, as far as I can tell, because 'Clear Text' in the upper right hand dropdown doesn't do anything when the output tab is selected.

map=core.getSelectedObjectInfo();
core.output(core.mapToString(map));

core.resetOutput();

(Copy/Paste with Ctrl-V/Ctrl-C!!!!!! So Wonderful!!!! Thanks! Made this post a little easier!)

@alex-w
Copy link
Member

alex-w commented Aug 31, 2019

The "Clear Text" command in upper right dropdown is clearing all labels on the screen - it's OK.

To clearing text in some tab (script, log or output) - please press button "Clear" (see top left corner).

The command core.resetOutput(); should clearing the output tab of course - so, it's regress.

@alex-w alex-w closed this as completed in e1579fa Aug 31, 2019
@alex-w alex-w self-assigned this Aug 31, 2019
@alex-w alex-w added this to the 0.19.2 milestone Aug 31, 2019
@alex-w alex-w added this to To Do in GUI via automation Aug 31, 2019
@alex-w alex-w added this to To Do in Scripting via automation Aug 31, 2019
@alex-w alex-w moved this from To Do to Done in GUI Aug 31, 2019
@alex-w alex-w moved this from To Do to Done in Scripting Aug 31, 2019
@alex-w alex-w added bug Something likely wrong in the code state: confirmed A developer can reproduce the issue labels Aug 31, 2019
@NotSoRandomOne
Copy link
Author

One comment when someone has time to do UI work (if you agree it could be improved) is that the 'Clear' button, the 'File Open' button, and even the SSC button all look like they are disabled. The File Save button looks enabled, and useful, but it is a little hard to tell what the others are because of the greyness used in the colors. If they used the same blues as the File Save button, the problem would be eliminated. This may apply to other windows as well, but I haven't played with them as much.

@NotSoRandomOne
Copy link
Author

(If you want that as a feature request, let me know and I'll put it in as a new item for you.)

@alex-w
Copy link
Member

alex-w commented Sep 1, 2019

Yes, please fill a new request

gzotti pushed a commit that referenced this issue Dec 23, 2019
Calling this method should clearing the output file and Output window in
Script Console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something likely wrong in the code state: confirmed A developer can reproduce the issue
Projects
GUI
  
Done
Scripting
  
Done
Development

No branches or pull requests

2 participants