Adam Waldenberg
139f5306f4
Better support terminals behaving like urxvt ( Fixes #101 ).
...
This terminal was allowing backspaces (\b) to bypass column zero on the
current row, completely breaking the current way gitinspector was
clearing text outputted to the currently active row.
2016-01-21 00:22:52 +01:00
Adam Waldenberg
7dda8d34b5
Made terminal.output_progress(...) aware of the terminal width.
...
Instead of clearing the row using the "\b" character on each
iteration, the function now passes a carriage return ("\r") instead.
Furthermore, the row is now always completely cleared before
printing the progress.
2015-11-02 18:02:54 +01:00
Adam Waldenberg
ce91c4176a
Moved blame.Blame.output_progress to terminal.output_progress.
...
This enables us to output progress from multiple modules.
2015-10-29 03:36:53 +01:00
Adam Waldenberg
1f2f120389
Fixed pylint violations reported by a newer version of pylint.
2015-10-12 03:15:30 +02:00
Adam Waldenberg
38df413ebf
Global cleanup fixing some pylint violations.
2015-10-05 06:17:10 +02:00
Adam Waldenberg
568a5e5e8b
Fixed the terminal column alignment for languages with multi-column chars.
...
This is for example needed for the Chinese and Korean translations to work
correctly when using terminal output.
2014-12-19 03:02:08 +01:00
Adam Waldenberg
23bc5fbbea
Print a warning when the terminal encoding is not set (Fixes issue 19).
...
This fix also sets the stdin encoding to UTF-8 whenever it is not set.
The behavior as the same as the one for stdout.
2014-01-08 06:05:10 +01:00
Adam Waldenberg
c69bd515c2
Did some minor tweaks to the strings inside the terminal module.
2013-07-23 01:09:20 +02:00
Adam Waldenberg
9b5e82bc2c
Terminal can now fall back to default size under Windows (Fixes issue 12).
...
Previously; the __get_size_windows__() function could return "None",
whenever the terminal size couldn't be determined; something which broke
the execution.
There was some chance for misbehavior under Linux as well.
2013-07-23 01:08:53 +02:00
Adam Waldenberg
cf63af8819
Fixed some pylint violations in some newly added code.
2013-07-14 04:47:34 +02:00
Adam Waldenberg
5c9335088a
Command-line arguments are now always converted to UTF-8 before use.
2013-07-14 03:10:00 +02:00
Adam Waldenberg
f36b82170f
File structure rearranged to be more compatible with setuptools/Distribute.
...
The fact is, gitinspector is now stable enough to inlude support for python
distribution and setup. This is the first step towards that transition.
2013-06-14 03:16:30 +02:00