pub enum Indicator {
Show 24 variants
Normal,
RegularFile,
Directory,
SymbolicLink,
FIFO,
Socket,
Door,
BlockDevice,
CharacterDevice,
OrphanedSymbolicLink,
Setuid,
Setgid,
Sticky,
OtherWritable,
StickyAndOtherWritable,
ExecutableFile,
MissingFile,
Capabilities,
MultipleHardLinks,
LeftCode,
RightCode,
EndCode,
Reset,
ClearLine,
}
Variants§
Normal
no
: Normal (non-filename) text
RegularFile
fi
: Regular file
Directory
di
: Directory
SymbolicLink
ln
: Symbolic link
FIFO
pi
: Named pipe or FIFO
Socket
so
: Socket
Door
do
: Door (IPC connection to another program)
BlockDevice
bd
: Block-oriented device
CharacterDevice
cd
: Character-oriented device
OrphanedSymbolicLink
or
: A broken symbolic link
Setuid
su
: A file that is setuid (u+s
)
Setgid
sg
: A file that is setgid (g+s
)
Sticky
st
: A directory that is sticky and other-writable (+t
, o+w
)
OtherWritable
ow
: A directory that is not sticky and other-writeable (o+w
)
StickyAndOtherWritable
tw
: A directory that is sticky and other-writable (+t
, o+w
)
ExecutableFile
ex
: Executable file
MissingFile
mi
: Missing file
Capabilities
ca
: File with capabilities set
MultipleHardLinks
mh
: File with multiple hard links
LeftCode
lc
: Code that is printed before the color sequence
RightCode
rc
: Code that is printed after the color sequence
EndCode
ec
: End code
Reset
rs
: Code to reset to ordinary colors
ClearLine
cl
: Code to clear to the end of the line