8169595: jshell tool: pasting multiple lines hangs input

Need to allow newlines in the user's input.

Reviewed-by: rfield
This commit is contained in:
Jan Lahoda 2016-11-14 10:07:10 +01:00
parent 9889b22056
commit eab488fc01

View File

@ -3222,7 +3222,7 @@ public class ConsoleReader
}
//where:
private Pattern CURSOR_COLUMN_PATTERN =
Pattern.compile("(?<prefix>.*)\033\\[[0-9]+;(?<column>[0-9]+)R");
Pattern.compile("(?<prefix>.*)\033\\[[0-9]+;(?<column>[0-9]+)R", Pattern.DOTALL);
/**
* Read a line for unsupported terminals.