Subversion Repositories HelenOS

Rev

Rev 3152 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3152 Rev 3166
Line 49... Line 49...
49
    printf("> ");
49
    printf("> ");
50
 
50
 
51
    chars = 0;
51
    chars = 0;
52
    while (chars < n - 1) {
52
    while (chars < n - 1) {
53
        c = getchar();
53
        c = getchar();
-
 
54
        if (c < 0) exit(0);
54
        if (c == '\n') break;
55
        if (c == '\n') break;
55
        if (c == '\b') {
56
        if (c == '\b') {
56
            if (chars > 0) {
57
            if (chars > 0) {
57
                putchar('\b');
58
                putchar('\b');
58
                --chars;
59
                --chars;