Method: Howzit::StringUtils#should_mark_iterm?
- Defined in:
- lib/howzit/stringutils.rb
#should_mark_iterm? ⇒ Boolean
Test if iTerm markers should be output. Requires that the $TERM_PROGRAM be iTerm and howzit is not running directives or paginating output
331 332 333 |
# File 'lib/howzit/stringutils.rb', line 331 def should_mark_iterm? ENV['TERM_PROGRAM'] =~ /^iTerm/ && !Howzit.[:run] && !Howzit.[:paginate] end |