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

add kbhit() #438

Merged
merged 1 commit into from
Sep 21, 2017
Merged

add kbhit() #438

merged 1 commit into from
Sep 21, 2017

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Jun 21, 2017

add kbhit function

kbhit() Checks the console for a keystroke. retuns keycode value if a key has been pressed immediately, otherwise it returns nil. Note that this does not work well on Emacs Shell mode, run EusLisp program from terminal shell.

see #30, euslisp/EusLisp#237

(dotimes (i 10)
  (setq c (kbhit))
  (if c
     (format t "~c(~d)~%" c c))
    (format t "no input...~%"))
  (unix::sleep 1))

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

Successfully merging this pull request may close these issues.

1 participant