del logs.rb (garbage)

git-svn-id: file:///home/svn/framework3/trunk@4494 4d416f70-5f16-0410-b530-b9f4589650da
unstable
fab 2007-02-28 22:06:13 +00:00
parent a0a788bfcf
commit c28b11c156
2 changed files with 0 additions and 82 deletions

View File

@ -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'

View File

@ -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