1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-20 16:33:20 +00:00
Files
sharkdp--bat/src
mainnebula 167dda63a8 feat: implement --unbuffered mode for streaming input (#3555)
Repurpose the existing --unbuffered/-u flag (previously a POSIX no-op)
to enable unbuffered input reading using fill_buf()/consume() instead
of read_until(b'\n'). This allows partial lines to display immediately
when piping streaming input like `tail -f` into bat.

- Add unbuffered field to Config and InputReader
- Add read_line_unbuffered() using BufRead::fill_buf()/consume()
- Add flush() to OutputHandle, called after each line in unbuffered mode
- Auto-disable line numbers in unbuffered mode to avoid partial line confusion
- Update help text, man page, and shell completions
- Add unit tests and integration tests
2026-02-11 23:27:08 -05:00
..
2023-03-14 21:19:14 +01:00
2022-09-04 14:28:44 +02:00
2025-08-19 05:07:54 +02:00
2025-04-02 11:27:37 +02:00
2025-07-15 16:36:58 -07:00
2024-08-18 10:05:37 +02:00
2023-03-03 13:20:03 +01:00
2025-12-11 05:49:46 +01:00