Changeset 834

Show
Ignore:
Timestamp:
08/06/08 14:49:30 (4 years ago)
Author:
mwhitworth
Message:

Various prompt color fixes.

Location:
Whitix/trunk/user/burn
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/user/burn/builtins.c

    r820 r834  
    6666                } 
    6767        } 
     68         
     69        ConsSetForeColor(promptColor); 
     70         
    6871        return 0; 
    6972} 
     
    8891 
    8992        fd=SysOpen((dirName) ? dirName : ".",_SYS_FILE_READ,0); 
     93         
    9094        if (fd < 0) 
    9195        { 
     
    131135                        { 
    132136                                putchar('/'); 
    133                                 ConsColorReset(); 
     137                                ConsSetForeColor(promptColor); 
    134138                        } 
    135139 
  • Whitix/trunk/user/burn/main.c

    r820 r834  
    164164int main(int argc,char* argv[]) 
    165165{ 
     166    ConsSetForeColor(promptColor); 
     167     
    166168        printf("Burn shell V%d.0%d\n---------------\nPrint help for a list of commands\n", MAJOR_BURN_VERSION, MINOR_BURN_VERSION); 
    167169        strcpy(prompt, ">"); 
     
    171173 
    172174        while (1) 
    173     {    
    174         ConsSetForeColor(promptColor); 
     175    { 
    175176        printf("%s", currPath); 
    176                 printf("%s",prompt); 
    177                 ConsColorReset(); 
     177                printf("%s", prompt); 
    178178                gets(buffer,BUFFER_SIZE-1); 
    179179