mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 06:44:12 +08:00
区分文件夹和文件的颜色
This commit is contained in:
parent
4cf057977a
commit
f414ac99d7
@ -156,7 +156,7 @@ Result browseFiles(const char *const basePath, char selected[512])
|
||||
s32 oldCursorPos = 0;
|
||||
while(1)
|
||||
{
|
||||
ee_printf("\x1b[%lu;H\x1b[37m %.51s", oldCursorPos - windowPos, &dList->ptrs[oldCursorPos][1]); // Clear old cursor.
|
||||
ee_printf(*dList->ptrs[cursorPos] == ENT_TYPE_FILE ? "\x1b[%lu;H\x1b[37m %.51s" : "\x1b[%lu;H\x1b[36m %.51s", oldCursorPos - windowPos, &dList->ptrs[oldCursorPos][1]); // Clear old cursor.
|
||||
ee_printf("\x1b[%lu;H\x1b[33m>%.51s", cursorPos - windowPos, &dList->ptrs[cursorPos][1]); // Draw cursor.
|
||||
|
||||
u32 kDown;
|
||||
|
Loading…
x
Reference in New Issue
Block a user