Mercurial > jwe > qt-gui-with-push-parser
comparison tty-main.cpp @ 10:69f5d5e42d2b
print newline on EOF in tty mode
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 May 2019 12:58:58 -0400 |
parents | 822a2fe5bb51 |
children | 894be158b32d |
comparison
equal
deleted
inserted
replaced
9:822a2fe5bb51 | 10:69f5d5e42d2b |
---|---|
27 for (;;) | 27 for (;;) |
28 { | 28 { |
29 char *tmp = readline (parser::beg_of_stmt ? ">> " : ""); | 29 char *tmp = readline (parser::beg_of_stmt ? ">> " : ""); |
30 | 30 |
31 if (! tmp) | 31 if (! tmp) |
32 break; | 32 { |
33 std::cout << "\n"; | |
34 break; | |
35 } | |
33 | 36 |
34 if (*tmp) | 37 if (*tmp) |
35 { | 38 { |
36 add_history (tmp); | 39 add_history (tmp); |
37 using_history (); | 40 using_history (); |