Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-860

Command "clear" for the text InteractiveShell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1-rc-3
    • None
    • None
    • Patch

    Description

      When we use groovy as a scripting tool in production, we often use
      the InteractiveShell to do some basic tests to prove some concepts,
      so we often try different ways and sometimes we forget what we have
      typed.

      Of course, we can use command 'display' and check what have typed,
      but often it is more desirable to simply clear all typed statements
      and restart!

      For that purpose, I have patched the class "groovy.ui.InteractiveShell"
      to add another command 'clear'. I have used the modified version for some
      time and now I upload this patch.

      This patch is created again the latest version code (InteractiveShell $Revision 1.25)

      Attachments

        1. patch.txt
          3 kB
          Huxi LI

        Activity

          People

            user57 Jason Dillon
            huxili Huxi LI
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: