Changeset 16453

Show
Ignore:
Timestamp:
02/17/06 07:21:28 (3 years ago)
Author:
axeld
Message:

The kernel debugger now only puts printable characters into the input buffer.
This should eliminate the cases where commands doesn't seem to be accepted (but look fine on screen).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/system/kernel/debug/debug.c

    r16452 r16453  
    232232                                /* supposed to fall through */ 
    233233                        default: 
    234                                 buffer[position++] = c; 
    235                                 kputchar(c); 
     234                                if (isprint(c)) { 
     235                                        buffer[position++] = c; 
     236                                        kputchar(c); 
     237                                } 
     238                                break; 
    236239                } 
     240 
    237241                if (position >= maxLength - 2) { 
    238242                        buffer[position++] = '\0';