implemented style for executables
This commit is contained in:
1 parent
7a78bc6fc8
commit
95fc4dec6a
2 files changed
+8
-2
No files matched your search
+2
-2
@@ -55,8 +55,8 @@ const style_t socket_style[ SOCK_STYLE_NUM ] = { style_none };
|
|||||||
const uint32_t socket_colour = 0xEEEEEE;
|
const uint32_t socket_colour = 0xEEEEEE;
|
||||||
|
|
||||||
#define EXEC_STYLE_NUM ( ( int )1 )
|
#define EXEC_STYLE_NUM ( ( int )1 )
|
||||||
const style_t exec_style[ EXEC_STYLE_NUM ] = { style_none };
|
const style_t executable_style[ EXEC_STYLE_NUM ] = { style_bold };
|
||||||
const uint32_t exec_colour = 0xEEEEEE;
|
const uint32_t executable_colour = 0x34AD1F;
|
||||||
|
|
||||||
// files by extension
|
// files by extension
|
||||||
#define MAKE_STYLE_NUM ( ( int )2 )
|
#define MAKE_STYLE_NUM ( ( int )2 )
|
||||||
|
|||||||
@@ -273,6 +273,12 @@ void set_file_style( const directory_entry_t* const entry )
|
|||||||
{
|
{
|
||||||
if ( !entry ) return;
|
if ( !entry ) return;
|
||||||
|
|
||||||
|
if ( entry->stats.st_mode & S_IXUSR )
|
||||||
|
{
|
||||||
|
format_set_style( &executable_style[ 0 ], EXEC_STYLE_NUM );
|
||||||
|
format_set_colour( executable_colour );
|
||||||
|
}
|
||||||
|
|
||||||
// makefiles and readmes
|
// makefiles and readmes
|
||||||
if ( compare_makefile( entry ) )
|
if ( compare_makefile( entry ) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user