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

example/linux-example: add newline in printf format #49

Merged
merged 1 commit into from
May 7, 2024

Conversation

Junbo-Zheng
Copy link
Contributor

example/linux-example: add newline in printf format

before

➜  /home/mi/xiaomi/embedded-cli git:(dev) ./build/examples/linux-example/embedded_cli_linux
Cli is running. Press 'Esc' to exit
Type "help" for a list of commands
Use backspace and tab to remove chars and autocomplete
> 123 456 789
Received command: 123
                     Arg 0: 456
                               Arg 1: 789
                                         >
>
> abc edf ghi
Received command: abc
                     Arg 0: edf
                               Arg 1: ghi
                                         >
>
> exit
Cli will shutdown now...
➜  /home/mi/xiaomi/embedded-cli git:(dev)

after

➜  /home/mi/xiaomi/embedded-cli git:(dev) ✗ ./build/examples/linux-example/embedded_cli_linux
Cli is running. Press 'Esc' to exit
Type "help" for a list of commands
Use backspace and tab to remove chars and autocomplete
> 123 456 789
Received command: 123
Arg 0: 456
Arg 1: 789
> abc def ghi
Received command: abc
Arg 0: def
Arg 1: ghi
>
>
> exit
Cli will shutdown now...

Signed-off-by: Junbo Zheng zhengjunbo1@xiaomi.com

before
```sh
➜  /home/mi/xiaomi/embedded-cli git:(dev) ./build/examples/linux-example/embedded_cli_linux
Cli is running. Press 'Esc' to exit
Type "help" for a list of commands
Use backspace and tab to remove chars and autocomplete
> 123 456 789
Received command: 123
                     Arg 0: 456
                               Arg 1: 789
                                         >
>
> abc edf ghi
Received command: abc
                     Arg 0: edf
                               Arg 1: ghi
                                         >
>
> exit
Cli will shutdown now...
➜  /home/mi/xiaomi/embedded-cli git:(dev)
```

after
```sh
➜  /home/mi/xiaomi/embedded-cli git:(dev) ✗ ./build/examples/linux-example/embedded_cli_linux
Cli is running. Press 'Esc' to exit
Type "help" for a list of commands
Use backspace and tab to remove chars and autocomplete
> 123 456 789
Received command: 123
Arg 0: 456
Arg 1: 789
> abc def ghi
Received command: abc
Arg 0: def
Arg 1: ghi
>
>
> exit
Cli will shutdown now...
```

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
@funbiscuit funbiscuit merged commit 8734a57 into funbiscuit:master May 7, 2024
@funbiscuit
Copy link
Owner

Thanks for your contributions!

@Junbo-Zheng Junbo-Zheng deleted the example branch May 8, 2024 01:16
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.

2 participants