Github user pluradj commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/385#discussion_r76052809
--- Diff:
gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
---
@@ -191,7 +192,18 @@ class Console {
groovy.setResultHook(handleResultShowNothing)
}
- private def handlePrompt = { interactive ? STANDARD_INPUT_PROMPT : "" }
+ private def handlePrompt = {
+ if (interactive) {
+ int lineNo = groovy.buffers.current().size()
+ if (lineNo > 0 ) {
+ return
lineNo.toString().padLeft(STANDARD_INPUT_PROMPT_PAD,
'0').padRight(STANDARD_INPUT_PROMPT.length()-2, ' ') + "> "
--- End diff --
Yeah, it might be better to merge the 2 PRs together.
`STANDARD_INPUT_PROMPT.length()` is replaced by the `input.prompt` preference
from the colorization PR.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---