Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stata 15: Clear command window

    In previous versions of Stata (for Windows) one could clear the command window by pressing "page down". But this doesn't work for Stata 15. Surely there must be a better way to clear a long command other than use the backspace key?

  • #2
    I did not know about using Page Down to clear the command window, but just verified that it works in Stata/IC 13 for Windows, but not in Stata/IC 15 for Windows.

    Rather than Backspace, try Ctrl-A (to select all) followed by Delete.
    --
    Bruce Weaver
    Email: [email protected]
    Version: Stata/MP 18.5 (Windows)

    Comment


    • #3
      I do not have access to Stata 15 yet, but I would like to comment on the "page down" button. It does not really clear the command window but allows you to scroll through the commands that have been issued. So the "page up" button is probably the more useful one as it brings back all the commands that you have previously typed. The Escape button clears the command window.

      Actually, this and more is documented in [U] 10 Keyboard use

      Best
      Daniel
      Last edited by daniel klein; 29 Jun 2017, 09:35. Reason: added link

      Comment


      • #4
        Code:
        cls
        clears the results window

        Comment


        • #5
          Aha! Yes <esc> instead of <page down> works. Thanks to all who responded.

          Comment


          • #6
            Before Stata 15, if you were typing a command and either intentionally or unintentionally pressed page up, you could not get back back the command you were typing if you pressed page down. Stata 15 now makes the contents of the Command window the beginning of the command "history", not an empty Command window. As others mentioned, you can always clear the contents of the Command window by pressing the escape key.

            Here's another feature but it's not new. Pressing shift + cursor up/down in the Command window will scroll the Results window.
            -Chinh Nguyen

            Comment


            • #7
              Here's another feature but it's not new. Pressing shift + cursor up/down in the Command window will scroll the Results window.
              Wow! I wish I had known about that before. Switching back and forth between the command and results window to find something earlier result in order to inform what you want to do next was such a nuisance! Thanks.

              Comment


              • #8
                Originally posted by Chinh Nguyen (StataCorp) View Post
                Here's another feature but it's not new. Pressing shift + cursor up/down in the Command window will scroll the Results window.
                In Stata 15 shift + PgUp or PgDn also works!

                Comment

                Working...
                X