From 68e1f93e99477b801c69e346774ca172ae863e34 Mon Sep 17 00:00:00 2001 From: moculus Date: Thu, 2 Apr 2009 00:14:34 +0000 Subject: [PATCH] console improvements --HG-- branch : pmacs2 --- buffer/console.py | 3 ++- mode/console.py | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) 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