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

GETCH brings all data in as bytes. #31

Open
nwautier opened this issue Sep 27, 2017 · 3 comments
Open

GETCH brings all data in as bytes. #31

nwautier opened this issue Sep 27, 2017 · 3 comments

Comments

@nwautier
Copy link
Owner

While the code works this way, it is frustrating to make modifications going forward. If you use GETCH, you need to compare the returned value to b'x' rather than just x.

@nwautier
Copy link
Owner Author

GETCH was used so that we wouldn't need a return after every token was scanned... Which is great for counting, but config screens may need more than a single keystroke, so we should use INPUT there instead.

Either all "keybinding" needs to be done using GETCH, or we should get rid of GETCH entirely.

@nwautier
Copy link
Owner Author

More can be seen in the recent history across the ConfigFile Branch.

@nwautier
Copy link
Owner Author

Here is a temporary workaround:
bytes(x, 'utf-8')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant