|
|
@ -17,13 +17,14 @@ def get_colors(): |
|
|
|
# the character that must be printed before the filename in ls. The "other" argument denotes |
|
|
|
# the character that must be printed before the filename in ls. The "other" argument denotes |
|
|
|
# any escape codes to print after the main fg/bg sequence (e.g. bold, italic formatters). |
|
|
|
# any escape codes to print after the main fg/bg sequence (e.g. bold, italic formatters). |
|
|
|
# ^^cc is an alias for color_char. |
|
|
|
# ^^cc is an alias for color_char. |
|
|
|
|
|
|
|
# MISSING : color_char(232, 197,ord("?"),0),# A "missing" inode. Should be set to an error condition. |
|
|
|
SPECIAL = { |
|
|
|
SPECIAL = { |
|
|
|
NORMAL : "", # Should be left blank. Used as a fallback for everything else. |
|
|
|
NORMAL : "", # Should be left blank. Used as a fallback for everything else. |
|
|
|
FILE : color_char(234,-1,0xE612,0), # Normal file, or one that does not have a color associated with it. |
|
|
|
FILE : color_char(234,-1,0xE612,0), # Normal file, or one that does not have a color associated with it. |
|
|
|
DIRECTORY : color_char(18,-1,0xE5FE,1), # A folder. |
|
|
|
DIRECTORY : color_char(18,-1,0xE5FE,1), # A folder. |
|
|
|
LINK : color_char(32,-1,0xF178,1), # Any kind of link. |
|
|
|
LINK : color_char(32,-1,0xF178,1), # Any kind of link. |
|
|
|
ORPHAN : color_char(232, 197, 0xF12A,0), # An "orphaned" inode. Should be set to an error condition. |
|
|
|
ORPHAN : color_char(232, 197, 0xF12A,0), # An "orphaned" inode. Should be set to an error condition. |
|
|
|
MISSING : color_char(232, 197,ord("?"),0),# A "missing" inode. Should be set to an error condition. |
|
|
|
MISSING : color_char(9,-1,0xF668,0), # A "missing" inode. Should be set to an error condition. |
|
|
|
PIPE : color_char(115,239,0xFCE3,0), # A named pipe. |
|
|
|
PIPE : color_char(115,239,0xFCE3,0), # A named pipe. |
|
|
|
SOCKET : color_char(140,-1,0xF135,0), # Honestly not sure what this is, so it must not appear much. Not needed probably. |
|
|
|
SOCKET : color_char(140,-1,0xF135,0), # Honestly not sure what this is, so it must not appear much. Not needed probably. |
|
|
|
BLOCKDEV : color_char(177,239,0xF069,0), # A block device (e.g. /dev/sda) |
|
|
|
BLOCKDEV : color_char(177,239,0xF069,0), # A block device (e.g. /dev/sda) |
|
|
|