Changeset 38c64e8 in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2009-02-28T15:13:57Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c43b1db2
Parents:
7a28812
Message:

The command line should ignore Tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/input.c

    r7a28812 r38c64e8  
    9595}
    9696
    97 /* Borrowed from Jiri Svoboda's 'cli' uspace app */
    9897static void read_line(char *buffer, int n)
    9998{
     
    115114                        continue;
    116115                }
    117                 putchar(c);
    118                 buffer[chars++] = c;
     116                if (c >= ' ') {
     117                        putchar(c);
     118                        buffer[chars++] = c;
     119                }
    119120        }
    120121        putchar('\n');
Note: See TracChangeset for help on using the changeset viewer.