enterRawMode

fun Terminal.enterRawMode(mouseTracking: MouseTracking = MouseTracking.Off): RawModeScope

Enter raw mode on the terminal, disabling line buffering and echoing to enable reading individual input events.

Return

A scope that will restore the terminal to its previous state when closed

Parameters

mouseTracking

What type of mouse events to listen for.

Throws

if the terminal is not interactive or raw mode cannot be entered.