Changeset 7360332 in mainline


Ignore:
Timestamp:
2012-05-04T09:27:57Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6efb4d2
Parents:
341b515
Message:

Do not dump ASCI escape sequences by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/msim/helenos.c

    r341b515 r7360332  
    4848 */
    4949#define IGNORE_ANSI_ESCAPE_SEQUENCES
     50/* Define when you want the ANSI escape sequences to be dumped as
     51 * hex numbers.
     52 */
     53// #define DUMP_ANSI_ESCAPE_SEQUENCES
    5054
    5155extern char *input_helenos_get_next_command(void);
     
    105109
    106110        if (inside_ansi_escape) {
     111#ifdef DUMP_ANSI_ESCAPE_SEQUENCES
    107112                fprintf(stderr, "%02" PRIx32 "'%c' ", val, val >= 32 ? val : '?');
     113#endif
    108114                if (isalpha((int) val)) {
    109115                        just_ended_ansi_escape = true;
    110116                        inside_ansi_escape = false;
     117#ifdef DUMP_ANSI_ESCAPE_SEQUENCES
    111118                        fprintf(stderr, " [END]\n");
     119#endif
    112120                }
    113121
     
    119127
    120128                if (!just_ended_ansi_escape) {
     129#ifdef DUMP_ANSI_ESCAPE_SEQUENCES
    121130                        fprintf(stderr, "\n");
     131#endif
    122132                }
     133#ifdef DUMP_ANSI_ESCAPE_SEQUENCES
    123134                fprintf(stderr, "ESC sequence: ");
     135#endif
    124136
    125137                return;
Note: See TracChangeset for help on using the changeset viewer.