clikt / com.github.ajalt.clikt.output / TermUi

TermUi

object TermUi

Properties

Name Summary
isWindows True if the current platform is a version of windows.val isWindows:Boolean

Functions

Name Summary
confirm Prompt for user confirmation.fun confirm(text:String, default:Boolean= false, abort:Boolean= false, promptSuffix:String= ": ", showDefault:Boolean= true, console:CliktConsole= defaultCliktConsole()):Boolean?
echo Print the message to the screen.fun echo(message:Any?, trailingNewline:Boolean= true, err:Boolean= false, console:CliktConsole= defaultCliktConsole(), lineSeparator:String= console.lineSeparator):Unit
editFile Edit the file with filename in the editor.fun editFile(filename:String, editor:String? = null, env:Map<String,String> = emptyMap(), requireSave:Boolean= false, extension:String= ".txt"):Unit
editText Edit text in the editor.fun editText(text:String, editor:String? = null, env:Map<String,String> = emptyMap(), requireSave:Boolean= false, extension:String= ".txt"):String?
prompt Prompt a user for text input.fun <T> prompt(text:String, default:String? = null, hideInput:Boolean= false, requireConfirmation:Boolean= false, confirmationPrompt:String= "Repeat for confirmation: ", promptSuffix:String= ": ", showDefault:Boolean= true, console:CliktConsole= defaultCliktConsole(), convert: (String) -> T): T?``fun prompt(text:String, default:String? = null, hideInput:Boolean= false, requireConfirmation:Boolean= false, confirmationPrompt:String= "Repeat for confirmation: ", promptSuffix:String= ": ", showDefault:Boolean= true):String?