2014-01-20 20:17:21 +01: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.
|
2014-01-20 20:17:21 +01:00
|
|
|
#
|
|
|
|
|
2015-04-07 21:23:39 +02:00
|
|
|
menuconfig SYSTEM_VI
|
|
|
|
bool "VI Work-Alike Text Editor"
|
2014-01-20 20:17:21 +01:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for NuttX tiny VI work-alike editor.
|
|
|
|
|
|
|
|
Omitted features:
|
|
|
|
- No keypad cursor control support
|
|
|
|
- No word oriented operations.
|
|
|
|
|
|
|
|
Assumptions and Limitations:
|
2014-01-31 14:13:51 +01:00
|
|
|
- A VT100 host terminal is assumed. At 115200 BAUD, screen
|
|
|
|
update times with a 24x64 edit region are noticeable but
|
|
|
|
acceptable.
|
2014-01-20 20:17:21 +01:00
|
|
|
- A fixed width character set (like Courier) is assumed
|
|
|
|
- Files are edited in memory so unless you have a lot of memory
|
|
|
|
to spare, this editor will only be useful for very small files.
|
|
|
|
|
2014-01-31 14:13:51 +01:00
|
|
|
Size: As of 2013-01-30, it appears that the size will vary from
|
|
|
|
about 8.5 to 10.5KB, depending upon the efficiency of the
|
|
|
|
underlying architecture.
|
|
|
|
|
2014-01-20 20:17:21 +01:00
|
|
|
if SYSTEM_VI
|
|
|
|
|
|
|
|
config SYSTEM_VI_COLS
|
|
|
|
int "Display width (columns)"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
The editor does not have the capability to query the display for
|
|
|
|
its width or height. This setting provides the default width of
|
|
|
|
the display in columns. The actually width can be overridden using
|
|
|
|
command line options.
|
|
|
|
|
|
|
|
config SYSTEM_VI_ROWS
|
|
|
|
int "Display height (rows)"
|
|
|
|
default 16
|
|
|
|
---help---
|
|
|
|
The editor does not have the capability to query the display for
|
|
|
|
its width or height. This setting provides the default height of
|
|
|
|
the display in rows. The actually width can be overridden using
|
|
|
|
command line options.
|
|
|
|
|
|
|
|
config SYSTEM_VI_DEBUGLEVEL
|
|
|
|
int "Debug level"
|
|
|
|
default 0
|
|
|
|
range 0 2
|
|
|
|
---help---
|
|
|
|
0=Debug off; 1=Print errors on console; 2=Print debug information
|
|
|
|
on the console.
|
|
|
|
|
|
|
|
Debug output is generated with syslog. The editor works on
|
|
|
|
/dev/console. In order to get both a usable display and also
|
|
|
|
readable debug output, syslog'ing should sent to some device other
|
|
|
|
than /dev/console (which is the default).
|
|
|
|
|
2014-01-20 21:50:54 +01:00
|
|
|
if NSH_BUILTIN_APPS
|
2014-01-20 20:17:21 +01:00
|
|
|
|
2014-01-20 21:50:54 +01:00
|
|
|
config SYSTEM_VI_STACKSIZE
|
|
|
|
int "Builtin task stack size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
Size of the task to configure when started VI from NSH
|
|
|
|
|
|
|
|
config SYSTEM_VI_PRIORITY
|
|
|
|
int "Builtin task priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Priority of the task to configure when started VI from NSH
|
|
|
|
|
|
|
|
endif # NSH_BUILTIN_APPS
|
|
|
|
endif # SYSTEM_VI
|