module W3MImageDisplay

Defined in:

w3m_image_display.cr
w3m_image_display/image.cr

Constant Summary

BINARY_PATHS = ["/usr/lib/w3m/w3mimgdisplay", "/usr/libexec/w3m/w3mimgdisplay", "/usr/lib64/w3m/w3mimgdisplay", "/usr/libexec64/w3m/w3mimgdisplay", "/usr/local/libexec/w3m/w3mimgdisplay"]
VERSION = "0.1.2"

Class Method Summary

Class Method Detail

def self.clear(x, y, w, h) #

Clear the pixels, used by Image#clear


[View source]
def self.font_size : Tuple(Int32, Int32) #

The pixel size of the font {x, y}


[View source]
def self.height #

Vertical cells / height / lines


[View source]
def self.image_size(path) : Tuple(Int32, Int32) #

The width and height of an image file


[View source]
def self.pixel_size : Tuple(Int32, Int32) #

The size of the terminal window measured in pixels {x, y}


[View source]
def self.size : Tuple(Int32, Int32) #

The size of the terminal window in columns and lines {x, y}


[View source]
def self.start : Process #

Get the process, and start it if uninitialised


[View source]
def self.sync #

[View source]
def self.sync_communication #

[View source]
def self.terminate #

Prevent future images being drawn

Does not seem to work in xterm

TODO Raise when this is set?


[View source]
def self.width #

Horizontal cells / width / columns


[View source]