/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-monitor

  • Committer: Teddy Hogeborn
  • Date: 2009-11-11 00:25:22 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091111002522-t416fifqw46xaqn4
* debian/rules: Only set BROKEN_PIE if binutils is a specific range of
                versions.
* mandos-monitor (MandosClientWidget.keypress): Also accept "Ctrl-K"
                                                for removing client.
  (UserInterface.__init__): Use non-bold line drawing charater.
  (UserInterface.log_message): Scroll to bottom.
  (UserInterface.process_input): Also show help on "ESC" key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
            self.proxy.Enable()
151
151
        elif key == u"d" or key == u"-":
152
152
            self.proxy.Disable()
153
 
        elif key == u"r" or key == u"_":
 
153
        elif key == u"r" or key == u"_" or key == u"ctrl k":
154
154
            self.server_proxy_object.RemoveClient(self.proxy
155
155
                                                  .object_path)
156
156
        elif key == u"s":
223
223
                ))
224
224
        
225
225
        if urwid.supports_unicode():
226
 
            #self.divider = u"─" # \u2500
227
 
            self.divider = u"━" # \u2501
 
226
            self.divider = u"─" # \u2500
 
227
            #self.divider = u"━" # \u2501
228
228
        else:
229
229
            #self.divider = u"-" # \u002d
230
230
            self.divider = u"_" # \u005f
313
313
        if (self.max_log_length
314
314
            and len(self.log) > self.max_log_length):
315
315
            del self.log[0:len(self.log)-self.max_log_length-1]
 
316
        self.logbox.set_focus(len(self.logbox.body.contents),
 
317
                              coming_from=u"above")
316
318
    
317
319
    def toggle_log_display(self):
318
320
        """Toggle visibility of the log buffer."""
429
431
            elif key == u"w" or key == u"i":
430
432
                self.change_log_display()
431
433
                self.refresh()
432
 
            elif key == u"?" or key == u"f1":
 
434
            elif key == u"?" or key == u"f1" or key == u"esc":
433
435
                if not self.log_visible:
434
436
                    self.log_visible = True
435
437
                    self.rebuild()