arduino / arduino/ArduinoCore-mbed

REDIRECT_STDOUT_TO equivalent for stdin

Open
#428 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
411
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Hi,
is there an equivalent way to `REDIRECT_STDOUT_TO `to capture the stdin?

I am trying to integrate JerryScript on the Portenta H7 [(my repository)](https://github.com/dmazzella/Arduino_Portenta_JerryScript).

Running scripts works fine, but to enable the "console" (repl) i need to use [fgetc](https://github.com/jerryscript-project/jerryscript/blob/0d4969661810b9e618485c284c361e597144e9b9/jerry-port/common/jerry-port-io.c#L64) required to enable [repl mode](https://github.com/jerryscript-project/jerryscript/blob/0d4969661810b9e618485c284c361e597144e9b9/jerry-ext/util/repl.c#L26)

Any suggestions?

Thank you,
D.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with REDIRECT_STDOUT_TO and the referenced jerry-port/common/jerry-port-io.c fgetc implementation, then read jerry-ext/util/repl.c to understand the stdin path needed for REPL mode. Determine whether ArduinoCore-mbed exposes an equivalent input-redirection mechanism for the Portenta H7; done means stdin can feed the JerryScript console.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.