Categorygithub.com/mritd/promptx
modulepackage
0.0.0-20201227060029-3c9bd8aa86dd
Repository: https://github.com/mritd/promptx.git
Documentation: pkg.go.dev

# README

本仓库已废弃, promptx 已基于 charmbracelet/bubbletea 重新实现,请使用 mritd/bubbles

Promptx

一个简单的 golang 编写的终端提示库,部分代码 copy 自 promptui,代码设计实现参考了 promptuisurvey;至于为何不使用这两个库而自己造轮子是因为这两个库对中文支持都不友好,比如光标移动、删除等

Promptx 使用可参考 _example 目录下的样例代码,目前仅支持单行提示(可以增加实时校验) 与下来列表选择菜单,其运行截图如下:

单行提示

prompt

列表选择

select

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
Styler returns a func that applies the attributes given in the Styler call to the provided string.

# Constants

Background color attributes.
Background color attributes.
Background color attributes.
Background color attributes.
Background color attributes.
Background color attributes.
Background color attributes.
Background color attributes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Foreground color attributes.
Foreground color attributes.
Foreground weight/decoration attributes.
Foreground color attributes.
Foreground weight/decoration attributes.
Foreground color attributes.
Foreground weight/decoration attributes.
Foreground color attributes.
Foreground color attributes.
Foreground weight/decoration attributes.
Foreground color attributes.
Foreground color attributes.
No description provided by the author

# Variables

FuncMap defines template helpers for the output.
ResetCode is the character code used to reset the terminal formatting.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author