[
https://issues.apache.org/jira/browse/TINKERPOP-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434900#comment-15434900
]
ASF GitHub Bot commented on TINKERPOP-1285:
-------------------------------------------
Github user spmallette commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/385#discussion_r76053089
--- 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 --
if it's easier to evaluate as merged, then i think we might want to
complete the vote here for this work, as we already have three votes on the
other PR.
> Gremline console does not differentiate between multi-line and single-line
> input
> --------------------------------------------------------------------------------
>
> Key: TINKERPOP-1285
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1285
> Project: TinkerPop
> Issue Type: Improvement
> Components: console
> Affects Versions: 3.2.0-incubating
> Reporter: Rocco Varela
> Priority: Minor
>
> When entering input, say into a script variable, that extends over multiple
> lines the gremlin console does not provide the user with any indication that
> they are in a multi-line input mode. Here is an example.
> Notice the 'gremline>' prompts are presented within the triple-quotes.
> {code}
> gremlin> script = '''
> gremlin> line1_command
> gremlin> line2_command
> gremlin> '''
> {code}
> Ideally we would like something like this, showing the user that they are
> still in multi-line input mode.
> {code}
> gremlin> script = '''
> ... line1_command
> ... line2_command
> ... '''
> gremlin>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)