Huang Qi
fd8ce46060
system/cle: Don't echo extra '\n'
...
Before:
```
NuttShell (NSH) NuttX-12.0.0
nsh> free
/* Extra line here */
total used free largest nused nfree
Umem: 33154512 33584 33120928 33120928 96 1
```
After:
```
NuttShell (NSH) NuttX-12.0.0
nsh> free
total used free largest nused nfree
Umem: 33154512 33584 33120928 33120928 96 1
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-04 13:50:08 +08:00
Huang Qi
db22e07d07
stdio: Remove CONFIG_EOL_IS_XXX
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
Ville Juven
a38c23f557
system/cle.c: Fix configuration for CONFIG_EOL_IS_EITHER_CRLF=y
...
The old flagging was insufficient, only '\r' was accepted as a line terminator
if CONFIG_EOL_IS_EITHER_CRLF was set.
I noticed this regression after:
https://github.com/apache/nuttx/pull/8454
2023-02-14 00:19:24 +08:00
Xiang Xiao
d1e46c2d3e
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
...
align with other macro naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
Xiang Xiao
4941182cc6
Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
...
to support the tristate option correctly and unify the usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
Xiang Xiao
58586f86e3
system/cle: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Alin Jerpelea
84e0ca1310
system: update licenses to Apache
...
Gregory Nutt is has submitted the SGA
Ken Pettit has submitted the ICLA
David S. Alessio has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Alin Jerpelea
ec339bc49a
Makefiles: Gregory Nutt: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Gustavo Henrique Nihei
771d19b94a
system/cle: Remove column offset for cursor position
2021-02-19 10:39:21 -08:00
Gustavo Henrique Nihei
08c29110a6
system/cle: Fix cle application build
2021-02-19 10:39:21 -08:00
YAMAMOTO Takashi
69da172c5f
system/cle/cle.c: Fix syslog formats
2020-11-23 18:23:24 -08:00
Xiang Xiao
deaa6c5b7b
build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
...
and move NUTTXLIB defintion to the common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
ef19ca0243
cle.c: Fix warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-27 15:29:37 +02:00
Xiang Xiao
1511403fdf
Revert "Don't generate .depend anymore"
...
This reverts commit cc5ad09caa
.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore
2020-03-22 18:15:21 +00:00
Gregory Nutt
c742373efc
apps/system/cle: Fix error when compiling with C89 compiler.
2020-03-13 20:14:14 +01:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Adam Feuer
7fd1b9065b
delete all characters from char to EOL
...
- more like GNU readline or emacs - can delete entire line with
ctrl-A ctrl-K
2020-01-08 15:40:04 -06:00
Dave Marples
dbd4e67241
apps/system/cle/cle.c: This commit modifies the cle to use the streams file interface more consistently and has removed the observed race conditions. It was previously a mix of streams and fileio. It also simplifies the VT100 cursor position handling.
2019-11-04 11:35:18 -06:00
Xiang Xiao
7808eb62d2
apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path.
2019-10-17 11:33:59 -06:00
Xiang Xiao
fa0aded666
apps/system/cle/cle.c: Fix warning, re-order to follow coding standard.
2019-10-17 11:20:20 -06:00
Gregory Nutt
3a23523147
Makefiles: This reverts part of commit cf0365ea9
. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured.
2019-10-15 09:25:48 +08:00
Dave Marples
b4134a674d
nshlib/ and system/cle: Add basic color support to the CLE editor.
2019-10-12 00:47:29 +08:00
Xiang Xiao
cf0365ea92
Clean up Makefile under apps folder no functional changes.
2019-10-04 08:35:46 -06:00
Dave Marples
bf9a5180cd
apps/system/cle/cle.c: ASCII DEL should be treated by Delete-Left.
2019-08-01 15:26:49 -06:00
anchao
b5cfd93444
apps/: Modification to build system: Unified application compilation rules
2018-09-03 09:29:56 -06:00
mst
62134a0419
apps/system/cle: Usage improvements including command line history (taken from readline) and support for addition control characters.
2018-08-05 16:05:59 -06:00
Gregory Nutt
7a8561728c
The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree.
2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18
All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted.
2017-08-13 09:35:14 -06:00
Gregory Nutt
3e83aa7388
Add apps/include to include path in top-level Make.defs file. Remove multiple definitions of INCDIR opt.
2016-07-11 10:45:17 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
Gregory Nutt
cd741c82cf
apps/include: Move all header files associated with modules in apps/system to apps/include/system
2016-07-01 06:48:22 -06:00
Gregory Nutt
344c92e2a4
Replace all occurrences of vdbg with vinfo
2016-06-11 11:55:38 -06:00
Sebastien Lorquet
bfff5e7179
Add empty preconfig rules to 'leaf' makefiles
2016-06-02 16:24:30 +02:00
Sebastien Lorquet
9a406515d7
make the full tree use wildcards make.defs
2016-06-02 16:21:21 +02:00
Gregory Nutt
d5b6949c9f
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:14:53 -06:00
Gregory Nutt
6e462908ba
apps/system: Clean up Kconfig menuing
2015-04-07 13:23:39 -06:00
Gregory Nutt
2719815dd9
Update everything under apps/ to use the corrected syslog interfaces
2014-10-08 11:34:22 -06:00
Gregory Nutt
d6bcd1a93a
Add an install target to all makefiles. For the import build, the top-level Makefile now does two passes: (1) builds libapp.a, then (2) installs the programs (not yet finished)
2014-09-06 08:00:47 -06:00
Gregory Nutt
e6743f8370
CLE: Last bugfix commit was insufficient
2014-05-23 07:59:17 -06:00
Gregory Nutt
f1fc923199
CLE: Was not returning the terminating newline character
2014-05-23 07:19:21 -06:00
Gregory Nutt
2b0f1ed109
Change all variadic macros to C99 style
2014-05-22 09:01:51 -06:00
Gregory Nutt
b9cf7acb1a
More trailing whilespace removal
2014-04-13 16:24:28 -06:00
Gregory Nutt
281332cedf
Update documentation, mostly related to the command line editor
2014-02-03 10:56:52 -06:00
Gregory Nutt
55ea1ef68e
VI and CLE: Fix lots of typos in comments
2014-02-02 16:13:40 -06:00
Gregory Nutt
76a94e541d
CLE: Remove some un-used constant data definitions
2014-02-02 13:22:11 -06:00