feat: support tui
This commit is contained in:
14
tui/input.go
Normal file
14
tui/input.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package tui
|
||||
|
||||
import "github.com/charmbracelet/lipgloss"
|
||||
|
||||
// renderInputBox 渲染底部输入框区域。
|
||||
func renderInputBox(inputView string, width int) string {
|
||||
style := lipgloss.NewStyle().
|
||||
Width(width).
|
||||
Border(baseBorder, true, false, false, false).
|
||||
BorderForeground(colorDim).
|
||||
Padding(0, 1)
|
||||
|
||||
return style.Render(inputView)
|
||||
}
|
||||
Reference in New Issue
Block a user