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

Standard library method for getting a character from keyboard input? #89

Open
ibara opened this issue Nov 16, 2020 · 3 comments
Open

Standard library method for getting a character from keyboard input? #89

ibara opened this issue Nov 16, 2020 · 3 comments

Comments

@ibara
Copy link
Contributor

ibara commented Nov 16, 2020

Hello --

(Keeping individual issues separate for organization purposes.)

Is there an easy way to get keyboard input with Cowgol? I have a Brainfuck to Cowgol transpiler: https://github.com/ibara/cowgol-utilities/blob/main/bfc.cow but it is missing an implementation for the comma operator since I could not figure out how to get keyboard input. It otherwise works perfectly fine.

Thanks!

@davidgiven
Copy link
Owner

I've not thought about this yet --- honestly, the standard library needs a lot of work. There are decisions to make about things like buffering. The whole console I/O layer needs reworking, and renaming all those print_ methods to something else. Right now there's only just enough functionality to run the compiler toolchain itself.

What platforms are you mainly aiming at?

@ibara
Copy link
Contributor Author

ibara commented Nov 16, 2020

OpenBSD (aka modern Unix) and CP/M on Z80/8080.

@dumblob
Copy link

dumblob commented Oct 18, 2023

Cheeky question - any news on this?

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

3 participants