cw 0.0.12 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # class Monitor
4
-
5
- class monitor
6
-
7
- attr_accessor :quit
8
-
9
- def initialize cw
10
- @cw = cw
11
- end
12
-
13
- def cw
14
- @cw
15
- end
16
-
17
- def monitor_keys
18
- str = ' '
19
- chr = ''
20
- loop do
21
- begin
22
- system("stty raw -echo")
23
- chr = STDIN.getc
24
- #input_file.print chr
25
- str[0] = str[1]
26
- str[1] = chr
27
- quit = true if str == 'qq'
28
- @entered_word << chr
29
- check_match
30
- ensure
31
- system("stty -raw echo")
32
- end
33
- break if @quit == true
34
- end
35
- end
36
- end