InputView

InputView 提供绘制和修改有界 Rectancle 中文本的功能的基本实现。

Unresolved include directive in modules/ROOT/pages/tui/views/input.adoc - include::../../../../../src/test/java/org/springframework/shell/docs/InputViewSnippets.java[]

Default Bindings

默认 view commands 为:

Table 1. ViewCommands
Command Description

LEFT

Cursor moves left

RIGHT

Cursor moves right

DELETE_CHAR_LEFT

Delete character left

DELETE_CHAR_RIGHT

Delete character right

默认 key bindigs 为:

Table 2. Key
Command Description

CursorLeft

Bound ViewCommand LEFT

CursorRight

Bound ViewCommand RIGHT

Backspace

Bound ViewCommand DELETE_CHAR_LEFT

Delete

Bound ViewCommand DELETE_CHAR_RIGHT

Events

事件根据使用的列表类型发送。

Table 3. InputView Events
Event Description

InputViewTextChangeEvent

Input text has changed