Class: Notiffany::Notifier::TerminalTitle

Inherits:
Base
  • Object
show all
Defined in:
lib/notiffany/notifier/terminal_title.rb

Overview

Shows system notifications in the terminal title bar.

Constant Summary collapse

DEFAULTS =
{}

Constants inherited from Base

Base::ERROR_ADD_GEM_AND_RUN_BUNDLE, Base::HOSTS

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#_image_path, #initialize, #name, #notify, #title

Constructor Details

This class inherits a constructor from Notiffany::Notifier::Base

Instance Method Details

#turn_offObject

Clears the terminal title



11
12
13
# File 'lib/notiffany/notifier/terminal_title.rb', line 11

def turn_off
  STDOUT.puts "\e]2;\a"
end