Skip to content

driver/pty: Map CR->LF from terminal input#8667

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
no1wudi:adb
Feb 27, 2023
Merged

driver/pty: Map CR->LF from terminal input#8667
xiaoxiang781216 merged 1 commit intoapache:masterfrom
no1wudi:adb

Conversation

@no1wudi
Copy link
Contributor

@no1wudi no1wudi commented Feb 27, 2023

Summary

NuttX only treat \n as new line after #8628, so need this conversion to interact with terminal emulator.

The default configuration is suitable for adb like usage (master connected to external terminal emulator, slave connected to nsh).

For other usage that need transparent data stream, need to call termios to make the pty works in raw mode.

Impact

pty driver

Testing

adb and telnetd shell

NuttX only treat \n as new line after apache#8628,
so need this conversion to interact with terminal emulator.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit b178ce4 into apache:master Feb 27, 2023
@no1wudi no1wudi deleted the adb branch February 28, 2023 01:38
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.

3 participants