Module: ColorLS
- Defined in:
- lib/colorls/git.rb,
lib/colorls/core.rb,
lib/colorls/yaml.rb,
lib/colorls/flags.rb,
lib/colorls/layout.rb,
lib/colorls/version.rb,
lib/colorls/fileinfo.rb
Defined Under Namespace
Modules: Git
Classes: Core, FileInfo, Flags, HorizontalLayout, Layout, SingleColumnLayout, VerticalLayout, Yaml
Constant Summary
collapse
- VERSION =
'1.5.0'
Class Method Summary
collapse
Class Method Details
.file_encoding ⇒ Object
7
8
9
|
# File 'lib/colorls/core.rb', line 7
def self.file_encoding
@file_encoding
end
|
.screen_width ⇒ Object
23
24
25
|
# File 'lib/colorls/core.rb', line 23
def self.screen_width
@screen_width
end
|
.terminal_width ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/colorls/core.rb', line 11
def self.terminal_width
console = IO.console
width = IO.console_size[1]
return width if console.nil? || console.winsize[1].zero?
console.winsize[1]
end
|