Update docs

This commit is contained in:
Janne Valkealahti
2023-10-28 09:16:42 +01:00
parent 82df453cc0
commit db3f67784a
7 changed files with 160 additions and 38 deletions

View File

@@ -4,4 +4,14 @@
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
tbd
Views have their own default bindings which can be changed.
You can subscribe into all key events:
[source, java, indent=0]
----
include::{snippets}/KeyHandlingSnippets.java[tag=sample]
----
`KeyEvent` is a record containing info about a binding coming out
from a terminal.

View File

@@ -4,4 +4,12 @@
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
tbd
You can subscribe into all mouse events:
[source, java, indent=0]
----
include::{snippets}/MouseHandlingSnippets.java[tag=sample]
----
`MouseEvent` is a record wrapping _x_ and _Y_ coordinates and
`org.jline.terminal.MouseEvent` from JLine library.