Table of Contents

Class FileSystemIconProvider

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Determines which symbol to use to represent files and directories.

public class FileSystemIconProvider
Inheritance
FileSystemIconProvider
Inherited Members

Properties

IsOpenGetter

Gets or sets the delegate to be used to determine opened state of directories when resolving GetIcon(IFileSystemInfo). Defaults to always false.

UseNerdIcons

Gets or sets a flag indicating whether to use Nerd Font icons. Defaults to Enable which can be configured by end users from their ./.tui/config.json via ConfigurationManager.

Enabling UseNerdIcons implicitly disables UseUnicodeCharacters.
UseUnicodeCharacters

Gets or sets a flag indicating whether to use common unicode characters for file/directory icons.

Methods

GetIcon(IFileSystemInfo)

Returns the character to use to represent fileSystemInfo or an empty space if no icon should be used.

GetIconWithOptionalSpace(IFileSystemInfo)

Returns GetIcon(IFileSystemInfo) with an extra space on the end if icon is likely to overlap adjacent cells.