apache / apache/nuttx-apps

nsh with CLE and background tasks

Open
#1,653 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

Description

Trying to test the behaviour of CLE with the new code for character position.
I tried this command:

```
nsh>echo "abcd" &
```
to write output in the background and observe the cursor position for CLE.

However this does not really behave as expected and I cant explain what I see;
```
nsh> echo "abcd" &
echo [29:100]
nsh> h_child: BG echo
[6nabcd
child: BG echo complete

nsh: nsh_session: cle failed: 22
nsh>
```

Can you please investigate this? you can reproduce it directly in nsh with a simle "echo".

Configuring readline instead of CLE does not show this "lock" behaviour:
```
nsh> echo abcd &
echo [13:100]
nsh> h_child: BG echo
[Kabcd
child: BG echo complete

nsh>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.