2022-07-06 20:38:40 +02:00
|
|
|
package write
|
|
|
|
|
|
|
|
// Options are the customization options for the textarea.
|
|
|
|
type Options struct {
|
2022-07-08 04:39:42 +02:00
|
|
|
CursorColor string `help:"Cursor color" default:"212"`
|
2022-07-07 23:46:22 +02:00
|
|
|
Height int `help:"Text area height" default:"5"`
|
2022-07-06 20:38:40 +02:00
|
|
|
Placeholder string `help:"Placeholder value" default:"Write something..."`
|
|
|
|
Prompt string `help:"Prompt to display" default:"┃ "`
|
2022-07-08 04:39:42 +02:00
|
|
|
PromptColor string `help:"Prompt color" default:"238"`
|
2022-07-07 23:46:22 +02:00
|
|
|
ShowCursorLine bool `help:"Show cursor line" default:"false"`
|
|
|
|
ShowLineNumbers bool `help:"Show line numbers" default:"false"`
|
2022-07-11 22:53:11 +02:00
|
|
|
Value string `help:"Initial value" default:""`
|
2022-07-06 20:38:40 +02:00
|
|
|
Width int `help:"Text area width" default:"50"`
|
|
|
|
}
|