You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jason Warner (JIRA)" <ji...@apache.org> on 2007/10/29 17:41:50 UTC
[jira] Created: (GSHELL-37) New Command: Clear
New Command: Clear
------------------
Key: GSHELL-37
URL: https://issues.apache.org/jira/browse/GSHELL-37
Project: GShell
Issue Type: New Feature
Security Level: public (Regular issues)
Components: Commands
Reporter: Jason Warner
Assignee: Jason Warner
Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon updated GSHELL-37:
-------------------------------
Summary: New Command: clear (was: New Command: Clear)
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (GSHELL-37) New Command: Clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon reassigned GSHELL-37:
----------------------------------
Assignee: Jason Dillon (was: Jason Warner)
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: clear
Posted by "Jason Warner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542353 ]
Jason Warner commented on GSHELL-37:
------------------------------------
No problem. I've got a patch but I can't quite figure out how to disable ansi to test it. Also, should we still attempt to execute the command after the warning, or is that going to cause an exception?
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GSHELL-37) New Command: Clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon updated GSHELL-37:
-------------------------------
Fix Version/s: 1.0-alpha-1
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon reopened GSHELL-37:
--------------------------------
Assignee: Jason Warner (was: Jason Dillon)
Can you please add an additional check to see if ANSI is abled, and if not display a warning that this command will be non-functional?
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon closed GSHELL-37.
------------------------------
Resolution: Fixed
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch, GShell-37ANSI.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (GSHELL-37) New Command: Clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon closed GSHELL-37.
------------------------------
Resolution: Fixed
Cool beans. Applied w/slight modifications.
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543283 ]
Jason Dillon commented on GSHELL-37:
------------------------------------
Its breaking when invoking the javacc plugin, which is included locally and uses the groovy+maven integration v 1.0-beta-2 which has a known issue with windows. I'm upgrading to 1.0-beta-3-SNAPSHOT to fix the problem on windows.
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch, GShell-37ANSI.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Dillon reassigned GSHELL-37:
----------------------------------
Assignee: Jason Dillon (was: Jason Warner)
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch, GShell-37ANSI.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543246 ]
Jason Dillon commented on GSHELL-37:
------------------------------------
I will give a windows build a shot, but I'm not sure why it would break.
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch, GShell-37ANSI.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GSHELL-37) New Command: Clear
Posted by "Jason Warner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Warner updated GSHELL-37:
-------------------------------
Attachment: GShell-37.patch
This seems to work. It's simple. It uses the JLine clear screen command to clear the screen (shocking. I know). That's pretty much it. Any other code is just setting up for JLine. Nothing fancy, but it satisfies my obsessive compulsive need to keep my terminal cleared.
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: Clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540912 ]
Jason Dillon commented on GSHELL-37:
------------------------------------
Cool. Only change I'm gonna make is to have the Terminal instance injected.
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Dillon
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: Clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540586 ]
Jason Dillon commented on GSHELL-37:
------------------------------------
You gonna try and make this work?
Should be able to use the JLine API to invoke something to clear the screen and then redraw the prompt fairly easily.
> New Command: Clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GSHELL-37) New Command: clear
Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542606 ]
Jason Dillon commented on GSHELL-37:
------------------------------------
You can disable ANSI colors w/:
{noformat}
./bin/gsh -C off
{noformat}
or setting the terminal:
{noformat}
./bin/gsh -T none
{noformat}
But, need to see what the behavior is in Windows... dunno, have to peep at the src to see what it does with clear. I think its all ANSI so it probs won't work either way. But not sure atm.
As for the warning. I would just check if ANSI is enabled in the terminal and if its not then spit out the warning, else do the clear.
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GSHELL-37) New Command: clear
Posted by "Jason Warner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GSHELL-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Warner updated GSHELL-37:
-------------------------------
Attachment: GShell-37ANSI.patch
This worked as expected on linux. I tried testing on windows, but I had issues building GShell on windows. The error was actually an error in ant 1.7.0. Have you had an issue with this?
> New Command: clear
> ------------------
>
> Key: GSHELL-37
> URL: https://issues.apache.org/jira/browse/GSHELL-37
> Project: GShell
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: Commands
> Reporter: Jason Warner
> Assignee: Jason Warner
> Fix For: 1.0-alpha-1
>
> Attachments: GShell-37.patch, GShell-37ANSI.patch
>
>
> Implement the ability to use the clear command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.