Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.
Go to Latest
function readKeypress
import { readKeypress } from "https://deno.land/x/netzo@0.5.107/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>