mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32/test_console_attr.rb: reset attributes
* ext/-test-/win32/console/attribute.c (console_set_attribute): set console attribute. * test/-ext-/win32/test_console_attr.rb (reset): reset attributes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
43b00d8a11
commit
34ec7c5b49
2 changed files with 16 additions and 5 deletions
|
|
@ -4,13 +4,12 @@ if /mswin|mingw/ =~ RUBY_PLATFORM and STDOUT.tty?
|
|||
require 'test/unit'
|
||||
|
||||
class Test_Win32Console < Test::Unit::TestCase
|
||||
def setup
|
||||
print "\e[m!"
|
||||
def reset
|
||||
STDOUT.console_attribute(7)
|
||||
end
|
||||
|
||||
def teardown
|
||||
print "\e[m!"
|
||||
end
|
||||
alias setup reset
|
||||
alias teardown reset
|
||||
|
||||
def test_default
|
||||
info = STDOUT.console_info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue