-
-
Notifications
You must be signed in to change notification settings - Fork 571
Prompt can't contain [] #648
Copy link
Copy link
Closed
Labels
Bugresolvedif issue is resolved, it will be open until merge with masterif issue is resolved, it will be open until merge with master
Description
Issue summary
Hi,
I'm using 2.22.0 and the following prompt:
prompt: '[foobar /]$ ',
Expected behavior
Prompt is
[foobar /]$
Actual behavior
Prompt is
[foobar /$ ]
or after pressing Enter, the entered line switches but the prompt stays the same:
[foobar /]$
[foobar /$ ]
Steps to reproduce
Use a prompt with [].
f.e. in the demo:
var term = $('body').terminal(() => {}, {
'prompt': '[foobar /]$ '
});
Additional info
This worked for me as a workaround in 2.21.0:
prompt: '[foobar /]$ ',
f.e. in the demo:
var term = $('body').terminal(() => {}, {
'prompt': '[foobar /]$ '
});
But now this adds big span elements after the prompt and after [ and ] if Enter is pressed.
Browser and OS
Chrome 88 on Windows 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugresolvedif issue is resolved, it will be open until merge with masterif issue is resolved, it will be open until merge with master