Pedro Pinto
Pedro Pinto
This would only work for people using `less`. There might be systems where it's not available, or someone might want to use an alternative pager, so I don't believe it's...
I've created PR #2209 on top of this one, that makes header escapes optional, that should help people who aren't using terminals and pagers that support those escapes.
Ah, sorry. I think we're talking about separate issues caused by the same thing. In both following cases, I'm using `less` in Windows as the pager. When Pry uses the...
Those were taken from the current release (`0.14.1`). If I use this PR, I only get those smiley faces instead of `^A`/`^B`, like in the 2nd picture, regardless of using...
I was looking more into `less`, and it looks like `--raw-control-chars` and `--RAW-CONTROL-CHARS` are exclusive, and the last option "wins". I've managed to test this with `less` v551 in 2...
I believe I understand the problem a bit better now. The issue is that the `\001`/`\002` codes are _only_ used with readline, and they should _only_ be added in the...
@smook1980 it's been a long while since I've looked into this, but if I recall correctly, `\001` and `\002` are just used by Readline as markers around invisible characters. I...
Unfortunately, in Windows, disabling the pager doesn't seem to work against removing the extra characters.
I've also pushed a version in #2209 that takes a different approach.
Sometimes grammars can be a bit ambiguous, so a small lookahead, like a single char, is useful to disambiguate between token types. On extreme cases, like heredocs, there's even a...