@marcuslinke code mentions workaround for https://java.net/jira/browse/JERSEY-2852
https://github.com/jersey/jersey/pull/164 that was already resolved in released versions https://github.com/jersey/jersey/releases/tag/2.22.2 .
@marcuslinke could you review and update it? Maybe it will help with my TTY/hijack issues...