Skip to main content
Module

x/netzo/deps/question/util.ts>readKeypress

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Latest
function readKeypress
import { readKeypress } from "https://deno.land/x/netzo@0.5.119/deps/question/util.ts";

Read character sequence and decode it as keypress

Parameters

reader: Deno.Reader & { rid: number; }
  • TTY reader
optional
bufferLength = [UNSUPPORTED]
  • used because of opportunity to paste text in terminal

Returns

AsyncIterableIterator<Keypress>