lix/src/libmain
Alois Wohlschlager 82aa1ccab4
fish-completion: leave the shell prompt intact
When generating shell completions, no logging output should be visible because
it would destroy the shell prompt. Originally this was attempted to be done by
simply disabling the progress bar (ca946860ce),
since the situation is particularly bad there (the screen clearing required for
the rendering ends up erasing the shell prompt). Due to overlooking the
implementation of this hack, it was accidentally undone during a later change
(0dd1d8ca1c).
Since even with the hack correctly in place, it is still possible to mess up
the prompt by logging output (for example warnings for disabled experimental
features, or messages generated by `builtins.trace`), simply send it to the bit
bucket where it belongs. This was already done for bash and zsh
(9d840758a8), and it seems that fish was simply
missed at that time. The last trace of the no-longer-working and obsolete hack
is deleted too.

Fixes: #513
Change-Id: I59f1ebf90903034e2059298fa8d76bf970bc3315
2024-09-11 19:03:11 +02:00
..
common-args.cc libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
common-args.hh nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
lix-main.pc.in packaging: rename nixexpr -> lixexpr and so on 2024-05-23 16:45:23 -06:00
loggers.cc fish-completion: leave the shell prompt intact 2024-09-11 19:03:11 +02:00
loggers.hh libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
meson.build build: expose option to enable or disable precompiled std headers 2024-06-06 12:46:26 -06:00
progress-bar.cc libmain/progress-bar: erase all lines of the multi-line format 2024-09-07 10:37:12 +02:00
progress-bar.hh libmain: better fix for #424, #425 2024-07-02 17:16:30 +02:00
shared.cc tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
shared.hh tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
stack.cc tree-wide: fix a pile of lints 2024-08-08 14:53:17 -07:00