Strange symbols at start of line in Cygwin terminal

40 views
Skip to first unread message

Dieter Mai

unread,
Oct 19, 2021, 4:32:33 AM10/19/21
to jline-users
Hi jline-users,

I've recently started to use jline3 for a project. It all works fine, except when i start my application with Cygwin, each line starts with unwanted symboles. Here an example

←[?2004hEnter input>foo
←[?2004lInvalid input

"Enter input>" is the prompt and  "Invalid input" is the response. "←[?2004h" is at the start of every prompt and "←[?2004l" At the start of every output.

I tried to change the used Charset that the terminal uses but this did not help. Jline3 PosixSysTerminal as the terminal implementation which seems right to me.
I set the type of the terminal to "ansi" because the the default "xterm" caused the unwanted prefix for each line to be even longer.

Does anyone know to correct this?

Dieter

Guillaume Nodet

unread,
Oct 19, 2021, 4:43:41 AM10/19/21
to jline...@googlegroups.com
Try calling:
    reader.unsetOpt(Option.BRACKETED_PASTE);


Cheers,
Guillaume

--
You received this message because you are subscribed to the Google Groups "jline-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jline-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/733ba5a2-e98b-4278-9ec9-f5d668d53ea5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages