Skip to content

Instantly share code, notes, and snippets.

@betaboon
Created March 21, 2019 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betaboon/f06e29510ca2ad707acc772ba9a78755 to your computer and use it in GitHub Desktop.
Save betaboon/f06e29510ca2ad707acc772ba9a78755 to your computer and use it in GitHub Desktop.
ﬦ nix-shell -p diffoscope
[nix-shell:~]$ echo $TERM
xterm-256color
[nix-shell:~]$ diffoscope
^CKeyboard Interrupt | 0% ETA: --:--:--
[nix-shell:~]$ unset TERM
[nix-shell:~]$ diffoscope
Traceback (most recent call last):
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/main.py", line 457, in main
log_handler = ProgressManager().setup(parsed_args)
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/progress.py", line 77, in setup
bar = ProgressBar()
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/progress.py", line 248, in __init__
' ',
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/progress.py", line 221, in __init__
self.erase_to_eol = line_ereser(self.fd)
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/logging.py", line 29, in line_ereser
setupterm(fd=fd.fileno())
_curses.error: setupterm: could not find terminfo database
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/bin/.diffoscope-wrapped", line 12, in <module>
sys.exit(main())
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/main.py", line 467, in main
sys.stderr.buffer.write(line_ereser())
File "/nix/store/jqq7bmmnsriirfji29qghkjflpwy44qh-diffoscope-99/lib/python3.6/site-packages/diffoscope/logging.py", line 29, in line_ereser
setupterm(fd=fd.fileno())
_curses.error: setupterm: could not find terminfo database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment