Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add clear terminal item to contextmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotdrew committed Feb 23, 2017
1 parent f3060d2 commit 9c76414
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/learn-ide.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module.exports =
@subscriptions.add atom.commands.add '.terminal',
'core:copy': => @termView.copyText()
'core:paste': => @termView.pasteText()
'learn-ide:clear-terminal': => @term.send(' ')

atom.config.onDidChange "#{name}.terminalFontColor", ({newValue}) =>
@termView.updateFontColor(newValue)
Expand Down
4 changes: 4 additions & 0 deletions menus/learn-ide.cson
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
'label': 'Paste'
'command': 'core:paste'
}
{
'label': 'Clear terminal'
'command': 'learn-ide:clear-terminal'
}
{
'label': 'Hide Learn IDE Terminal'
'command': 'learn-ide:toggle-terminal'
Expand Down

0 comments on commit 9c76414

Please sign in to comment.