diff --git a/buffer/console.py b/buffer/console.py index 50241e6..79b8c41 100644 --- a/buffer/console.py +++ b/buffer/console.py @@ -5,7 +5,8 @@ from buffer.color import ColorDataBuffer console = None class ConsoleBuffer(Buffer): btype = 'console' - modename = 'ipython' + #modename = 'ipython' + modename = 'console' bannerlines = [ '# Python Console\n', "# Evaluate python expressions in the editor's context (self)\n", diff --git a/mode/console.py b/mode/console.py index 9f9a63b..72210d6 100644 --- a/mode/console.py +++ b/mode/console.py @@ -1,3 +1,11 @@ -from mode import Fundamental -class Console(Fundamental): name = 'Console' +#from mode import Fundamental +#class Console(Fundamental): name = 'Console' +from mode.ipython import Ipython +class Console(Ipython): + name = 'Console' + colors = {} + _bindings = { + 'open-console': ('M-e',), + } + install = Console.install