This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository eshell.
View the commit online.
commit 7b598304f0950828ae3c50c17a91ff8fa4a8999c
Author: Swagtoy <m...@ow.swag.toys>
AuthorDate: Wed Nov 20 02:39:45 2024 -0500
eshell: Make itself presentable
Iteration check newline is very likely unneeded here in practice but
this will make the lexing code not need to hack anything.
---
eshell/src/eshell.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/eshell/src/eshell.c b/eshell/src/eshell.c
index 0735dc7..6646a21 100644
--- a/eshell/src/eshell.c
+++ b/eshell/src/eshell.c
@@ -26,8 +26,10 @@ int eshell_cleanup(struct Eshell* eshell)
int eshell_io_loop(struct Eshell* eshell)
{
char in[512] = {0};
- while (1)
+ for (unsigned long iter = 0;; ++iter)
{
+ if (iter != 0)
+ putchar('\n');
fputs("> ", stdout);
char* res = fgets(in, 512, stdin);
// TODO better way to do this?
@@ -35,7 +37,7 @@ int eshell_io_loop(struct Eshell* eshell)
if (res == NULL)
{
// EOL, we hope
- puts("");
+ putchar('\n');
return -1;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.