diff --git a/application.py b/application.py index adcf6eb..0df7c56 100755 --- a/application.py +++ b/application.py @@ -161,16 +161,15 @@ class Application(object): self.loadrc() # initialize our buffers - # note that the first buffer in buffers will be initially visible + # note that only the first buffer will be initially visible buffers.append(buffer.about.AboutBuffer()) - buffers.append(buffer.console.ConsoleBuffer()) - + #buffers.append(buffer.console.ConsoleBuffer()) if self.rcerror: buffers.insert(0, buffer.data.DataBuffer('*RcError*', self.rcerror)) # build windows for our buffers for b in buffers: - if b.name() == '*Console*': + if b.modename: window.Window(b, self) else: window.Window(b, self, mode_name=init_mode) diff --git a/buffer/__init__.py b/buffer/__init__.py index 94182cf..417f2d0 100644 --- a/buffer/__init__.py +++ b/buffer/__init__.py @@ -43,10 +43,11 @@ class DelMove(object): # abstract class class Buffer(object): - btype = 'generic' - mac_re = re.compile('\r(?!\n)') - unix_re = re.compile('(?