diff options
author | aycabta <aycabta@gmail.com> | 2020-02-14 22:34:56 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-02-14 22:47:27 +0900 |
commit | 2efb38e766b6fc304bb933d696c7500425d178a1 (patch) | |
tree | 43837b3b7899395a9b0d57ff126f7a87c765d33f /lib/reline/windows.rb | |
parent | 78282d4655c05348ce7df24058623d3e868a08e6 (diff) | |
download | ruby-2efb38e766b6fc304bb933d696c7500425d178a1.tar.gz |
[ruby/reline] Use IO#write instead of IO#print
IO#print always adds a string of $\ automatically.
https://github.com/ruby/reline/commit/a93119c847
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r-- | lib/reline/windows.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 22a009ea66..c229c8536f 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -250,8 +250,8 @@ class Reline::Windows def self.clear_screen # TODO: Use FillConsoleOutputCharacter and FillConsoleOutputAttribute - print "\e[2J" - print "\e[1;1H" + write "\e[2J" + write "\e[1;1H" end def self.set_screen_size(rows, columns) |