Click or drag to resize

aceTerminalInputaskAnyKeyInTime Method

Home | imbSCI | imbACE | imbNLP | imbWEM | imbWBI
User is prompted to press a key in defined time gap. On timeout, default option is selected

Namespace:  imbACE.Services.terminal
Assembly:  imbACE.Services (in imbACE.Services.dll) Version: 0.2
Syntax
C#
public static ConsoleKey askAnyKeyInTime(
	string question,
	ConsoleKey defAns = ConsoleKey.Enter,
	int timeout = 10,
	bool doBeep = false,
	int doBeepInLast = 3
)
Request Example View Source

Parameters

question
Type: SystemString
The question.
defAns (Optional)
Type: SystemConsoleKey
The definition ans.
timeout (Optional)
Type: SystemInt32
The timeout.
doBeep (Optional)
Type: SystemBoolean
if set to true [do beep].
doBeepInLast (Optional)
Type: SystemInt32
The do beep in last.

Return Value

Type: ConsoleKey
See Also