Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applied black formatting #55

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d9830f3
Changed: Autoformatted `setup.py` with `black -l 120`
andrewasheridan Nov 30, 2019
9bef538
Changed: Autoformatted `bullet/__init__.py` with `black -l 120`
andrewasheridan Nov 30, 2019
8401051
Changed: Autoformatted `bullet/charDef.py` with `black -l 120`
andrewasheridan Nov 30, 2019
0377491
Changed: Autoformatted `bullet/client.py` with `black -l 120`
andrewasheridan Nov 30, 2019
3ccbfdb
Changed: Autoformatted `bullet/colors.py` with `black -l 120`
andrewasheridan Nov 30, 2019
b78e864
Changed: Autoformatted `bullet/cursor.py` with `black -l 120`
andrewasheridan Nov 30, 2019
f9c7fad
Changed: Autoformatted `bullet/emojis.py` with `black -l 120`
andrewasheridan Nov 30, 2019
00599bd
Changed: Autoformatted `bullet/keyhandler.py` with `black -l 120`
andrewasheridan Nov 30, 2019
9763f21
Changed: Autoformatted `bullet/styles.py` with `black -l 120`
andrewasheridan Nov 30, 2019
96233fc
Changed: Autoformatted `bullet/utils.py` with `black -l 120`
andrewasheridan Nov 30, 2019
eaa4012
Changed: Autoformatted `examples/check.py` with `black -l 120`
andrewasheridan Nov 30, 2019
e6d4f81
Changed: Autoformatted `examples/classic.py` with `black -l 120`
andrewasheridan Nov 30, 2019
005afca
Changed: Autoformatted `examples/colorful.py` with `black -l 120`
andrewasheridan Nov 30, 2019
8bcbe46
Changed: Autoformatted `examples/more.py` with `black -l 120`
andrewasheridan Nov 30, 2019
0bb158a
Changed: Autoformatted `examples/prompt.py` with `black -l 120`
andrewasheridan Nov 30, 2019
e924d17
Changed: Autoformatted `examples/pump.py` with `black -l 120`
andrewasheridan Nov 30, 2019
3235b7c
Changed: Autoformatted `examples/scrollbar.py` with `black -l 120`
andrewasheridan Nov 30, 2019
c18fbe3
Changed: Autoformatted `examples/star.py` with `black -l 120`
andrewasheridan Nov 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bullet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from .client import Numbers
from .client import VerticalPrompt
from .client import SlidePrompt
from .client import ScrollBar
from .client import ScrollBar
56 changes: 28 additions & 28 deletions bullet/charDef.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import sys

# Keyboard mapping macros
# Keyboard mapping macros

LINE_BEGIN_KEY = 1
LINE_END_KEY = 5
TAB_KEY = ord('\t')
NEWLINE_KEY = 13 # Could be platform dependent. Advised to check
ESC_KEY = 27
BACK_SPACE_KEY = 127
ARROW_KEY_FLAG = 1 << 8
ARROW_KEY_INT = 91
ARROW_UP_KEY = 65 + ARROW_KEY_FLAG
ARROW_DOWN_KEY = 66 + ARROW_KEY_FLAG
ARROW_RIGHT_KEY = 67 + ARROW_KEY_FLAG
LINE_BEGIN_KEY = 1
LINE_END_KEY = 5
TAB_KEY = ord("\t")
NEWLINE_KEY = 13 # Could be platform dependent. Advised to check
ESC_KEY = 27
BACK_SPACE_KEY = 127
ARROW_KEY_FLAG = 1 << 8
ARROW_KEY_INT = 91
ARROW_UP_KEY = 65 + ARROW_KEY_FLAG
ARROW_DOWN_KEY = 66 + ARROW_KEY_FLAG
ARROW_RIGHT_KEY = 67 + ARROW_KEY_FLAG
ARROW_LEFT_KEY = 68 + ARROW_KEY_FLAG
ARROW_KEY_BEGIN = ARROW_UP_KEY
ARROW_KEY_END = ARROW_LEFT_KEY
MOD_KEY_FLAG = 1 << 9
MOD_KEY_INT = 91
HOME_KEY = 49 + MOD_KEY_FLAG
INSERT_KEY = 50 + MOD_KEY_FLAG
DELETE_KEY = 51 + MOD_KEY_FLAG
END_KEY = 52 + MOD_KEY_FLAG
PG_UP_KEY = 53 + MOD_KEY_FLAG
PG_DOWN_KEY = 54 + MOD_KEY_FLAG
MOD_KEY_BEGIN = HOME_KEY
MOD_KEY_END = PG_DOWN_KEY
MOD_KEY_DUMMY = 126
UNDEFINED_KEY = sys.maxsize
BEEP_CHAR = 7
ARROW_KEY_END = ARROW_LEFT_KEY
MOD_KEY_FLAG = 1 << 9
MOD_KEY_INT = 91
HOME_KEY = 49 + MOD_KEY_FLAG
INSERT_KEY = 50 + MOD_KEY_FLAG
DELETE_KEY = 51 + MOD_KEY_FLAG
END_KEY = 52 + MOD_KEY_FLAG
PG_UP_KEY = 53 + MOD_KEY_FLAG
PG_DOWN_KEY = 54 + MOD_KEY_FLAG
MOD_KEY_BEGIN = HOME_KEY
MOD_KEY_END = PG_DOWN_KEY
MOD_KEY_DUMMY = 126
UNDEFINED_KEY = sys.maxsize
BEEP_CHAR = 7
BACK_SPACE_CHAR = 8
SPACE_CHAR = ord(' ')
INTERRUPT_KEY = 3
SPACE_CHAR = ord(" ")
INTERRUPT_KEY = 3
Loading