console improvements

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-04-02 00:14:34 +00:00
parent 1e7e2d9db9
commit 68e1f93e99
2 changed files with 12 additions and 3 deletions

View File

@ -5,7 +5,8 @@ from buffer.color import ColorDataBuffer
console = None console = None
class ConsoleBuffer(Buffer): class ConsoleBuffer(Buffer):
btype = 'console' btype = 'console'
modename = 'ipython' #modename = 'ipython'
modename = 'console'
bannerlines = [ bannerlines = [
'# Python Console\n', '# Python Console\n',
"# Evaluate python expressions in the editor's context (self)\n", "# Evaluate python expressions in the editor's context (self)\n",

View File

@ -1,3 +1,11 @@
from mode import Fundamental #from mode import Fundamental
class Console(Fundamental): name = 'Console' #class Console(Fundamental): name = 'Console'
from mode.ipython import Ipython
class Console(Ipython):
name = 'Console'
colors = {}
_bindings = {
'open-console': ('M-e',),
}
install = Console.install install = Console.install