File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ def close_arg(stream)
17
17
stream . puts 'exit'
18
18
Process . waitpid ( stream . pid )
19
19
end
20
+
21
+ ##
22
+ # Plot test page for given term_name into file
23
+ # with file_name (optional).
24
+ #
25
+ # Test page contains possibilities of the term.
26
+ def test ( term_name , file_name = nil )
27
+ Terminal . new . set ( term : term_name ) . test ( file_name )
28
+ end
20
29
end
21
30
22
31
##
@@ -164,5 +173,16 @@ def close
164
173
check_errors
165
174
Terminal . close_arg ( @in )
166
175
end
176
+
177
+
178
+ ##
179
+ # Plot test page into file with file_name (optional).
180
+ #
181
+ # Test page contains possibilities of the term.
182
+ def test ( file_name = nil )
183
+ set ( output : file_name ) if file_name
184
+ stream_puts ( 'test' )
185
+ unset ( :output )
186
+ end
167
187
end
168
188
end
You can’t perform that action at this time.
0 commit comments