bat/src
sharkdp 864656bd11 Pass --no-init on Windows if less version < 559
We used to call `less` with
``` bash
less --RAW-CONTROL-CHARS --quit-if-one-screen --no-init
```
We only passed `--no-init` because there was a bug with previous versions
of `less` which required the use of `--no-init` in combination with
`--quit-if-one-screen` to prevent this "no output" issue from happening.

Since bat 0.13, [we omit the `--no-init` option](0ecc94956b/src/output.rs (L85-L97))
if we can detect that the version of `less` is higher than or equal to 530. We
did that because `--no-init` breaks mouse support and because [less 530 fixed
the above-mentioned bug](http://www.greenwoodsoftware.com/less/news.530.html).
However, it seems that this bug was *not* fixed on Windows!

According to @gwsw, the issue should be fixed with less 559 on Windows.

closes #887
2020-04-21 18:18:03 +02:00
..
bin/bat Fix compilation of library 2020-04-21 18:14:31 +02:00
assets_metadata.rs Fix compilation of library 2020-04-21 18:14:31 +02:00
assets.rs Fix compilation of library 2020-04-21 18:14:31 +02:00
config.rs Remove commented-out code 2020-04-21 08:57:15 +02:00
controller.rs Small refactoring, handle invalid UTF-8 filenames 2020-04-21 08:57:15 +02:00
decorations.rs Move git changes support behind a feature 2020-03-31 09:27:56 +02:00
diff.rs Move git changes support behind a feature 2020-03-31 09:27:56 +02:00
errors.rs Add metadata information to cached assets 2020-04-21 18:14:31 +02:00
inputfile.rs Small refactoring, handle invalid UTF-8 filenames 2020-04-21 08:57:15 +02:00
less.rs Move paging support behind a feature 2020-03-31 09:27:56 +02:00
lib.rs Add metadata information to cached assets 2020-04-21 18:14:31 +02:00
line_range.rs Hide methods from line_range 2020-03-21 22:21:23 +01:00
output.rs Pass --no-init on Windows if less version < 559 2020-04-21 18:18:03 +02:00
preprocessor.rs Handle non-unicode characters in the preprocessor 2019-08-31 20:56:53 +02:00
printer.rs Improve error message 2020-04-21 08:57:15 +02:00
style.rs Move git changes support behind a feature 2020-03-31 09:27:56 +02:00
syntax_mapping.rs Add more default mappings, reverse traversal 2020-03-22 11:02:51 +01:00
terminal.rs Strip dependencies of bat-as-a-library 2020-03-31 09:27:56 +02:00
wrap.rs Rename output component to 'style compinent', move wrap to separate module 2020-03-21 22:21:23 +01:00