summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-02-16 12:41:48 +0100
committerClifford Wolf <clifford@clifford.at>2015-02-16 12:41:48 +0100
commit33e80b96c7aac6b93e6bee18572abf529f8cc1fa (patch)
treeed7ef660268a1319f41eeaee292e0f9e7a8a08fe /kernel
parent0748ef638d34bb5dd125271abc4fe051f95a790d (diff)
Added YosysJS wrapper
Diffstat (limited to 'kernel')
-rw-r--r--kernel/driver.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 6df7cf2e..69a7b8e1 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -93,7 +93,9 @@ void run(const char *command)
const char *prompt()
{
- return create_prompt(yosys_get_design(), 0);
+ const char *p = create_prompt(yosys_get_design(), 0);
+ while (*p == '\n') p++;
+ return p;
}
#else /* EMSCRIPTEN */