Module: Echoes

Defined in:
lib/echoes.rb,
lib/echoes/gui.rb,
lib/echoes/tab.rb,
lib/echoes/cell.rb,
lib/echoes/objc.rb,
lib/echoes/pane.rb,
lib/echoes/client.rb,
lib/echoes/cursor.rb,
lib/echoes/editor.rb,
lib/echoes/parser.rb,
lib/echoes/screen.rb,
lib/echoes/profile.rb,
lib/echoes/version.rb,
lib/echoes/terminal.rb,
lib/echoes/copy_mode.rb,
lib/echoes/installer.rb,
lib/echoes/pane_tree.rb,
lib/echoes/preferences.rb,
lib/echoes/configuration.rb,
lib/echoes/iterm2_images.rb,
lib/echoes/sixel_decoder.rb,
lib/echoes/embedded_shell.rb,
lib/echoes/kitty_graphics.rb,
lib/echoes/embedded_shell_helper.rb,
lib/echoes/kitty_graphics_appkit.rb

Defined Under Namespace

Modules: Client, HelperLibc, Installer, Iterm2Images, KittyGraphics, ObjC, Preferences Classes: Cell, Configuration, CopyMode, Cursor, Editor, EmbeddedShell, EmbeddedShellHelper, Error, GUI, Pane, PaneTree, Parser, Profile, Screen, ShakeDetector, SixelDecoder, Tab, Terminal

Constant Summary collapse

VERSION =
"0.3.0"
CONFIG_PATH =
File.join(Dir.home, '.config', 'echoes', 'echoes.conf')

Class Method Summary collapse

Class Method Details

.configObject



255
256
257
# File 'lib/echoes/configuration.rb', line 255

def self.config
  @config ||= Configuration.new
end

.load_configObject



259
260
261
262
263
264
265
# File 'lib/echoes/configuration.rb', line 259

def self.load_config
  if File.exist?(CONFIG_PATH)
    config.instance_eval(File.read(CONFIG_PATH), CONFIG_PATH)
  end
rescue SyntaxError, StandardError => e
  warn "echoes: error loading #{CONFIG_PATH}: #{e.message}"
end