Module: MouseInput
- Defined in:
- lib/mouse_input.rb,
lib/mouse_input/input.rb,
lib/mouse_input/version.rb,
lib/mouse_input/terminal.rb
Overview
Mouse Input for terminal
Defined Under Namespace
Constant Summary collapse
- VERSION =
version following semver.org/
"0.2.2"
Class Method Summary collapse
-
.read ⇒ Array(x,y)
read mouse input and returns the coords X and Y.
Class Method Details
.read ⇒ Array(x,y)
read mouse input and returns the coords X and Y
15 16 17 18 19 20 21 22 23 |
# File 'lib/mouse_input.rb', line 15 def self.read begin Terminal.setup coords = Mouse.read_input ensure Terminal.restore end coords end |