Changeset 6484602 in mainline


Ignore:
Timestamp:
2012-04-15T01:19:27Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94f6df7
Parents:
2d37006
Message:

top: improve help screen and add missing keys

Location:
uspace/app/top
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/screen.c

    r2d37006 r6484602  
    462462}
    463463
     464static inline void print_help_head(void)
     465{
     466        screen_style_inverted();
     467        printf("Help");
     468        screen_newline();
     469        screen_style_normal();
     470}
     471
    464472static void print_help(void)
    465473{
     
    468476        screen_get_size(&cols, &rows);
    469477       
     478        screen_newline();
     479       
     480        printf("Operation modes:");
     481        screen_newline();
     482       
     483        printf(" t .. tasks statistics");
     484        screen_newline();
     485       
     486        printf(" i .. IPC statistics");
     487        screen_newline();
     488       
     489        printf(" e .. exceptions statistics");
     490        screen_newline();
     491       
     492        printf("      a .. toggle display of all/hot exceptions");
     493        screen_newline();
     494
     495        printf(" h .. this help screen");
     496        screen_newline();
     497
     498        screen_newline();
     499
     500        printf("Other keys:");
     501        screen_newline();
     502       
     503        printf(" q .. quit");
     504        screen_newline();
     505       
    470506        sysarg_t col;
    471507        sysarg_t row;
    472508        screen_get_pos(&col, &row);
    473        
    474         screen_newline();
    475        
    476         printf("Operation modes:");
    477         screen_newline();
    478        
    479         printf(" t .. tasks statistics");
    480         screen_newline();
    481        
    482         printf(" i .. IPC statistics");
    483         screen_newline();
    484        
    485         printf(" e .. exceptions statistics");
    486         screen_newline();
    487        
    488         printf("      a .. toggle display of all/hot exceptions");
    489         screen_newline();
    490        
    491         row += 6;
    492509       
    493510        while (row < rows) {
     
    535552                break;
    536553        case OP_HELP:
    537                 print_tasks_head();
     554                print_help_head();
    538555                print_help();
    539556        }
  • uspace/app/top/top.c

    r2d37006 r6484602  
    398398                                break;
    399399                        case 'h':
     400                        case '?':
    400401                                op_mode = OP_HELP;
    401402                                break;
Note: See TracChangeset for help on using the changeset viewer.