muby 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,8 +3,9 @@ require 'ncurses'
3
3
 
4
4
  module Muby
5
5
 
6
- VERSION = "0.7.0"
7
6
 
7
+ VERSION = "0.7.1" unless defined?(Muby::VERSION)
8
+
8
9
  #
9
10
  # The class that encapsulates all configuration.
10
11
  #
@@ -17,7 +18,7 @@ module Muby
17
18
  #
18
19
  class Configuration
19
20
 
20
- @@instance = nil
21
+ @@instance ||= nil
21
22
 
22
23
  def self.get
23
24
  @@instance ||= Configuration.new
@@ -7,6 +7,8 @@ module Muby
7
7
  :feed_completer_with_input => "If true, the completion command will use everything seen from the remote end to calculate possible completions.",
8
8
  :extra_completions => "Fill this array with words that you allways want to be able to complete to.",
9
9
  :extra_verbosity_settings => "The settings we want to toggle to when running the toggle_verbosity! method.",
10
+ :input_window_geometry => "The top and left corners of the InputWindow, and its width and height. The values will be set to what you enter here, or if they are Strings will be evaluated when the windows are set up.",
11
+ :output_window_geometry => "The top and left corners of the OutputWindow, and its width and height. The values will be set to what you enter here, or if they are Strings will be evaluated when the windows are set up.",
10
12
  :echo_keycodes => "Whether to echo the keycode for every key pressed or not.",
11
13
  :echo => "Whether to print what is sent to the server to the outputwindow.",
12
14
  :show_level => "What level of information to provide the user.
@@ -20,8 +20,8 @@ class Muby::InputWindow
20
20
  include Muby::Styled
21
21
  include Muby::HelperMethods
22
22
 
23
- @@instance = nil
24
-
23
+ @@instance ||= nil
24
+
25
25
  def self.get_instance
26
26
  @@instance ||= Muby::InputWindow.new
27
27
  end
@@ -59,20 +59,27 @@ class Muby::InputWindow
59
59
  help unless conf.user_edited_config_file
60
60
  end
61
61
 
62
+ def reload!
63
+ @left = nil
64
+ @top = nil
65
+ @width = nil
66
+ @height = nil
67
+ end
68
+
62
69
  def left
63
- execute_with_verbosity(:trace, conf.input_window_geometry[:left])
70
+ @left ||= execute_with_verbosity(:trace, conf.input_window_geometry[:left])
64
71
  end
65
72
 
66
73
  def top
67
- execute_with_verbosity(:trace, conf.input_window_geometry[:top])
74
+ @top ||= execute_with_verbosity(:trace, conf.input_window_geometry[:top])
68
75
  end
69
76
 
70
77
  def width
71
- execute_with_verbosity(:trace, conf.input_window_geometry[:width])
78
+ @width ||= execute_with_verbosity(:trace, conf.input_window_geometry[:width])
72
79
  end
73
80
 
74
81
  def height
75
- execute_with_verbosity(:trace, conf.input_window_geometry[:height])
82
+ @height ||= execute_with_verbosity(:trace, conf.input_window_geometry[:height])
76
83
  end
77
84
 
78
85
  #
@@ -10,7 +10,7 @@ class Muby::OutputWindow
10
10
 
11
11
  attr_reader :scrollback, :size, :outputBuffer
12
12
 
13
- @@instance = nil
13
+ @@instance ||= nil
14
14
 
15
15
  def self.get_instance
16
16
  @@instance ||= Muby::OutputWindow.new
@@ -233,6 +233,7 @@ ENDTEXT
233
233
  def reload_application!
234
234
  conf.reload_application!
235
235
  Muby::OutputWindow.get_instance.reload!
236
+ Muby::InputWindow.get_instance.reload!
236
237
  end
237
238
 
238
239
  def complete!
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: muby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.0
6
+ version: 0.7.1
7
7
  date: 2007-10-19 00:00:00 +02:00
8
8
  summary: A simple but powerful mud client.
9
9
  require_paths: