sigildocs

(sigil tui demo)

(sigil tui demo) - Chat demo exercising all sigil-tui components

Run with: ./build/dev/bin/sigil run sigil-tui-demo

Exports

contactprocedure

Construct a contact struct.

contact?procedure

Test if a value is a contact struct.

contact-nameprocedure

Get the name field of a contact struct.

Get the online? field of a contact struct.

Get the group? field of a contact struct.

Get the group? field of a contact struct.

messageprocedure

Construct a message struct.

message?procedure

Test if a value is a message struct.

Get the sender field of a message struct.

message-textprocedure

Get the text field of a message struct.

Get the timestamp field of a message struct.

Get the timestamp field of a message struct.

app-stateprocedure

Construct a app-state struct.

app-state?procedure

Test if a value is a app-state struct.

Get the contacts field of a app-state struct.

Get the selected field of a app-state struct.

Get the conversations field of a app-state struct.

Get the input field of a app-state struct.

Get the mode field of a app-state struct.

Get the scroll-offset field of a app-state struct.

Get the last-tick field of a app-state struct.

Get the sim-counter field of a app-state struct.

Set the contacts field of a app-state struct.

Set the selected field of a app-state struct.

Set the conversations field of a app-state struct.

Set the input field of a app-state struct.

Set the mode field of a app-state struct.

Set the scroll-offset field of a app-state struct.

Set the last-tick field of a app-state struct.

Set the sim-counter field of a app-state struct.

run-demoprocedure

Run the chat demo application.