From c28b11c15637896018404511b0ca835c7ae827c4 Mon Sep 17 00:00:00 2001 From: fab <> Date: Wed, 28 Feb 2007 22:06:13 +0000 Subject: [PATCH] del logs.rb (garbage) git-svn-id: file:///home/svn/framework3/trunk@4494 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/gtk2/driver.rb | 1 - lib/msf/ui/gtk2/logs.rb | 81 --------------------------------------- 2 files changed, 82 deletions(-) delete mode 100644 lib/msf/ui/gtk2/logs.rb diff --git a/lib/msf/ui/gtk2/driver.rb b/lib/msf/ui/gtk2/driver.rb index 8bdd7106d4..65b222b975 100644 --- a/lib/msf/ui/gtk2/driver.rb +++ b/lib/msf/ui/gtk2/driver.rb @@ -7,7 +7,6 @@ require 'msf/ui/gtk2/app' require 'msf/ui/gtk2/about' require 'msf/ui/gtk2/frame' require 'msf/ui/gtk2/dialogs' -require 'msf/ui/gtk2/logs' require 'msf/ui/gtk2/stream' require 'msf/ui/gtk2/view' require 'msf/ui/gtk2/search' diff --git a/lib/msf/ui/gtk2/logs.rb b/lib/msf/ui/gtk2/logs.rb deleted file mode 100644 index 90e7a098c4..0000000000 --- a/lib/msf/ui/gtk2/logs.rb +++ /dev/null @@ -1,81 +0,0 @@ -module Msf -module Ui -module Gtk2 - -class Output < Rex::Ui::Output - - def initialize(buffer) - @buffer = buffer - end - - def print_error(msg = '') - @buffer.insert_at_cursor("[-] #{msg}\n") - end - - def print_good(msg = '') - @buffer.insert_at_cursor("[+] #{msg}\n") - end - - def print_status(msg = '') - @buffer.insert_at_cursor("[*] #{msg}\n") - end - - def print_line(msg = '') - @buffer.insert_at_cursor(msg + "\n") - end -end - -class Input < Rex::Ui::Text::Input - - def initialize(buffer) - @buffer = buffer - end - - # - # Reads text from standard input. - # - def sysread(len = 1) - $stdin.sysread(len) - end - - # - # Wait for a line of input to be read from standard input. - # - def gets - return $stdin.gets - end - - # - # Print a prompt and flush standard output. - # - def _print_prompt(prompt) - @buffer.insert_at_cursor(prompt) - #$stdout.flush - end - - # - # Print a prompt and flush standard output. - # - def prompt(prompt) - _print_prompt(prompt) - return gets() - end - - # - # Returns whether or not EOF has been reached on stdin. - # - def eof? - $stdin.closed? - end - - # - # Returns the file descriptor associated with standard input. - # - def fd - return $stdin - end -end - -end -end -end