Matt Kotsenas
a6bb41e802
Fix Win32 get_key ( #819 )
...
PR #711 moved the arrow and cancel key codes to `const.py`. However, the
move also changed the codes from byte arrays to strings, which broke the
use of `msvcrt.getch()` for Windows.
The fix is to use `msvcrt.getwch()` so the key is a Unicode character,
matching the Unix implementation.
2018-07-10 00:46:57 +02:00
Vladimir Iakovlev
72f0df2f90
#711 : Handle ctrl+n and ctrl+p
2017-10-16 19:19:29 +02:00
Vladimir Iakovlev
725ef271b1
Merge branch 'flake8' of https://github.com/josephfrazier/thefuck into josephfrazier-flake8
...
# Conflicts:
# thefuck/system/unix.py
# thefuck/system/win32.py
2017-03-13 13:35:11 +01:00
Vladimir Iakovlev
c7d7a6d1d7
#612 : Little cleanup
2017-03-13 13:30:07 +01:00
Joseph Frazier
4b53b1d3e3
Support Linux/Windows in yarn_help
rule
...
See https://www.dwheeler.com/essays/open-files-urls.html
and https://stackoverflow.com/questions/5226958/which-equivalent-function-in-python/15133367#15133367
2017-03-10 15:22:48 -05:00
Joseph Frazier
e009f0a05b
Fix flake8 errors: E305 expected 2 blank lines after class or function definition
2017-03-08 19:53:54 -05:00
Joseph Frazier
fb3d8d1e01
Ignore flake8 errors with inline comments: F401,F403
2016-10-06 15:31:55 -04:00
Vladimir Iakovlev
71025dff17
#N/A: Monkeypatch old pathlib even on unix
2016-08-14 15:32:53 +03:00
Vladimir Iakovlev
621b455334
#N/A: Monkeypatch pathlib on windows
2016-08-14 15:15:03 +03:00
Pablo Santiago Blum de Aguiar
047efd5575
#486 : Use alternative encoding when sys.stdout.encoding is None
...
Fix #486
2016-03-22 16:13:59 -03:00
Matt Kotsenas
d4bc8cebf1
Replace raise with return for Ctrl+C in Windows
...
- Replace the raise `const.CtrlC` with `return const.CtrlC` the match the
unix implementation and prevent a stacktrace when cancelling a command
on Windows
2016-03-16 16:37:59 -07:00
nvbn
b65a9a0a4f
#414 : Initialize output before any colorama import
2015-12-04 18:34:52 +08:00
nvbn
29c1d1efcf
#414 : Move system-dependent utils in system
module
2015-12-03 20:03:27 +08:00