2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-11 20:12:03 +02:00
|
|
|
|
2015-04-07 21:23:39 +02:00
|
|
|
menuconfig SYSTEM_READLINE
|
|
|
|
bool "readline() Support"
|
2012-04-14 22:01:08 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for the readline() function.
|
|
|
|
|
|
|
|
if SYSTEM_READLINE
|
2015-04-07 21:23:39 +02:00
|
|
|
|
2021-11-07 05:33:20 +01:00
|
|
|
config READLINE_HAVE_EXTMATCH
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2012-04-14 22:22:48 +02:00
|
|
|
config READLINE_ECHO
|
2012-04-11 20:12:03 +02:00
|
|
|
bool "Echo character input"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Echo received character input back via stdout. This is normal
|
|
|
|
behavior and should be selected unless the source of stdin input
|
|
|
|
already has local echo support or you need to suppress the back-channel
|
|
|
|
responses for any other reason.
|
|
|
|
|
2015-07-30 20:53:04 +02:00
|
|
|
if READLINE_ECHO
|
|
|
|
|
2015-07-28 15:17:50 +02:00
|
|
|
config READLINE_TABCOMPLETION
|
|
|
|
bool "Tab completion"
|
|
|
|
default n
|
2020-04-29 16:40:56 +02:00
|
|
|
depends on BUILTIN || READLINE_HAVE_EXTMATCH
|
2015-07-28 15:17:50 +02:00
|
|
|
---help---
|
|
|
|
Build in support for Unix-style tab completion. This feature was
|
2015-08-09 05:54:42 +02:00
|
|
|
originally provided by Nghia Ho.
|
|
|
|
|
2015-07-30 20:11:58 +02:00
|
|
|
if READLINE_TABCOMPLETION
|
|
|
|
|
|
|
|
config READLINE_MAX_BUILTINS
|
|
|
|
int "Maximum built-in matches"
|
|
|
|
default 64
|
2015-08-09 16:15:23 +02:00
|
|
|
depends on BUILTIN
|
2015-07-30 20:11:58 +02:00
|
|
|
---help---
|
|
|
|
This the maximum number of matching names of builtin commands that
|
|
|
|
will be displayed.
|
|
|
|
|
|
|
|
config READLINE_MAX_EXTCMDS
|
2015-08-09 16:15:23 +02:00
|
|
|
int "Maximum external command matches"
|
|
|
|
default 64
|
|
|
|
depends on READLINE_HAVE_EXTMATCH
|
|
|
|
---help---
|
2015-11-03 14:44:50 +01:00
|
|
|
This the maximum number of matching names of external commands that
|
2015-08-09 16:15:23 +02:00
|
|
|
will be displayed.
|
2015-07-28 15:17:50 +02:00
|
|
|
|
2015-07-30 20:11:58 +02:00
|
|
|
endif # READLINE_TABCOMPLETION
|
2015-08-09 16:15:23 +02:00
|
|
|
|
|
|
|
config READLINE_CMD_HISTORY
|
|
|
|
bool "Command line history"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Build in support for Unix-style command history using up and down
|
|
|
|
arrow keys. This feature was originally provided by Nghia Ho.
|
|
|
|
|
|
|
|
NOTE: Command line history is kept in an in-memory array and is
|
|
|
|
shared. In the FLAT or PROTECTED builds, this history is shared by
|
|
|
|
all threads; in the KERNEL build, the command line history is shared
|
|
|
|
by all threads in the process. This means that in a FLAT build, for
|
|
|
|
example, a built-in application started from NSH will have the same
|
|
|
|
history as does NSH if it also uses readline(). This also means
|
|
|
|
that different NSH sessions on serial, USB, or Telnet will also
|
|
|
|
share the same history array.
|
|
|
|
|
|
|
|
In a KERNEL build, each process will have a separately allocated
|
2018-08-06 00:05:59 +02:00
|
|
|
history array so the issue is lessened. History would still be
|
|
|
|
shared amount pthreads within the same process, however.
|
2015-08-09 16:15:23 +02:00
|
|
|
|
|
|
|
if READLINE_CMD_HISTORY
|
|
|
|
|
|
|
|
config READLINE_CMD_HISTORY_LINELEN
|
|
|
|
int "Command line history length"
|
|
|
|
default 64 if DEFAULT_SMALL
|
|
|
|
default 80 if !DEFAULT_SMALL
|
|
|
|
---help---
|
|
|
|
The maximum length of one command line in the in-memory array. The
|
|
|
|
total memory usage for the command line array will be
|
2018-08-06 00:05:59 +02:00
|
|
|
READLINE_CMD_HISTORY_LINELEN x READLINE_CMD_HISTORY_LEN. Default:
|
|
|
|
64/80
|
2015-08-09 16:15:23 +02:00
|
|
|
|
|
|
|
config READLINE_CMD_HISTORY_LEN
|
|
|
|
int "Command line history records"
|
|
|
|
default 4 if DEFAULT_SMALL
|
|
|
|
default 16 if !DEFAULT_SMALL
|
|
|
|
---help---
|
|
|
|
The number of lines of history that will be buffered in the in-
|
|
|
|
memory array. The total memory usage for the command line array
|
|
|
|
will be READLINE_CMD_HISTORY_LINELEN x READLINE_CMD_HISTORY_LEN.
|
|
|
|
Default: 16
|
|
|
|
|
|
|
|
endif # READLINE_CMD_HISTORY
|
2015-07-30 20:53:04 +02:00
|
|
|
endif # READLINE_ECHO
|
2015-07-30 20:11:58 +02:00
|
|
|
endif # SYSTEM_READLINE
|