Permalink
Browse files

I don't have stty.exe

  • Loading branch information...
1 parent 0d413df commit 15a0f1a7962663ed982d470384e12a97dc2ef256 @mattn mattn committed Sep 1, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/plugins/another_prompt.rb
  2. +1 −0 lib/plugins/line.rb
@@ -19,6 +19,7 @@
system('clear')
end,
'L' => lambda do
+ return if RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|bccwin/
puts '-' *
`stty size`.chomp.
sub(/^\d+\s(\d+)$/, '\\1').to_i
View
@@ -3,6 +3,7 @@
:help => 'Draws a line without any side effect on Twitter.',
#:aliases => [:l],
:exec_proc => lambda {|arg|
+ return if RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|bccwin/
window_width = (ENV['COLUMNS'] || `stty size`[/\d+\s+(\d+)/, 1]).to_i
text = '<dark>' + (' ' * window_width) + '</dark>'
puts TermColor.parse(text)

0 comments on commit 15a0f1a

Please sign in to comment.