D
Deno

help

How do I detect mouse clicks and key presses with Deno.stdin?

Aagorushkin10/14/2022
I don't even really have any base code, so I was just wondering as to how do I do the problem specified in the title.
UUUnknown User10/14/2022
Message Not Public
Sign In & Join Server To View
Aagorushkin10/14/2022
Ah yeah, I saw that. I was just trying to figure out how it worked, but couldn't exactly pin-point it
CcrowlKats10/14/2022
using Deno.stdin.setRaw & using escape sequences (https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797)
BBeast10/27/2022
Sorry that I noticed it after that long time (if it's already irrelevant sorry for pinging), key and mouse keypress reading happens here: https://github.com/Im-Beast/deno_tui/blob/main/src/key_reader.ts
Aagorushkin10/28/2022
Thank you very much nontheless! Helped a quite a bit

Looking for more? Join the community!

Recommended Posts
ML with FFISuppose you wish to do some machine learning stuff with Deno, would it be optimal to use FFI with C Is there a way to determine what modules have been dynamically imported at runtime?The builtin tools to compile/bundle/vendor don't account for dynamic imports (understandably), but iweird interfacehow can a class implement this interface ```ts interface I { (): void type: string }``` or a `cnpm specifier import typesso when I do something like ```ts import * as rx from 'npm:rxjs' console.log(rx) ``` I do have the error Unsupported scheme node for module `nodemodule`. Supported schemesI'm trying to import a module using: ```js import { example } from "npm:example"; ``` Inside `examplesbuild_deno_loader importing Deno modulesA dependancy I use imports modules like "fs" and I want esbuild_deno_loader to treat them as externaIs there a good dataframe library for deno?I use the nodejs bindings for pola.rs for now but I'd like to move from nodejs to deno. This is my ltype a whole directory to make sure each file in the directory exports a default module of a type.Can you type a whole directory to make sure that every file in the directory is exporting a default help mehow do i get the contents of the html, i tried this, but its not loggingextract generic type of generic classhow to get typeof generic type in generic class ```ts class GenericClass<T> {} ``` i want to extractGithub Repository File Tree Generator based on Deno?Is there some project file tree generator written in TS / Deno?How to import the Image class to Deno Fresh?I'm trying to access an image's `naturalHeight` and `naturalWidth`. But when I construct the object