Module broot::display

source ·
Expand description

This module is where is defined whether broot writes on stdout, on stderr or elsewhere. It also provides helper structs for io.

Modules

Macros

  • declare a style named $dst which is usually a reference to the $src skin but, in case selected is true, is a clone with background changed to the one of selected lines.

Structs

  • the areas of the various parts of a panel. It’s also where a state usually checks how many panels there are, and their respective positions
  • A tree wrapper which can be used either
  • an object which writes file permissions (mode, owner, group)
  • The dimensions of the screen

Enums

Constants

  • if true then the status of a panel covers the whole width of the terminal (over the other panels)

Statics

Functions

  • find and return the size of a cell (a char location) in pixels as (width, height). Many terminals don’t fill this information correctly, so an error is expected (it works on kitty, where I use the data to compute the rendering dimensions of images)
  • return a Cols which tries to take the s setting into account but is guaranteed to have every Col exactly once.
  • return a Cols which tries to take the s setting into account but is guaranteed to have every Col exactly once.
  • return the writer used by the application

Type Aliases

  • the type used by all GUI writing functions