tuiInputHelper

package
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

tuiInputHelper

tuiInputHelper provides terminal UI input helpers — prompting for text and password input with optional mandatory enforcement.

Functions

Function Description
GetUserInput(question string, inputWidth int, inputMandatory bool, isPassword bool) string Prompts the user in the terminal for input; masks characters for password entry; repeats the prompt if the field is mandatory and left empty

Example

import "github.com/mt1976/frantic-core/tuiInputHelper"

func main() {
    name := tuiInputHelper.GetUserInput("Enter your name", 40, true, false)
    fmt.Println("Hello,", name)

    password := tuiInputHelper.GetUserInput("Enter password", 40, true, true)
    _ = password
}

Documentation

Overview

Package tuiInputHelper offers helpers for terminal UI input handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserInput

func GetUserInput(question string, inputWidth int, inputMandatory bool, isPassword bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL