How do I get keyboard input in golang?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • go-tty

  • So I'm very new to Golang, and I've been starting some little projects to improve. Currently I am trying to make a nice little program which adds keybinds, for example, when I hit ctrl + h, I want it to shortcut and open up vscode. I'm not having any issue opening up vscode with shell and the 'code' command, but I'm having trouble taking keyboard input. I found this library: https://github.com/mattn/go-tty to get keyboard input, but it only works if the console has focus. How do I get keyboard input when the application does not have focus? Is this even possible?

  • hotkey

    ⌨️ cross-platform hotkey package

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • gohook

    GoHook, Go global keyboard and mouse listener hook

  • kbrelay

  • But here is my solution for a VERY particular use-case: https://github.com/xtj7/kbrelay/blob/main/kbrelay.go

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • what is a basic computer skill you were shocked some people don't have?

    5 projects | /r/AskReddit | 17 Jan 2022
  • Mgmt: Next generation distributed, event-driven, parallel config management

    1 project | news.ycombinator.com | 5 May 2024
  • Show HN: I built a website to share files and messages without any server

    13 projects | news.ycombinator.com | 5 May 2024
  • How to use Templ with Goravel

    3 projects | dev.to | 4 May 2024
  • How single message broke all our monitoring and dashboards

    1 project | dev.to | 2 May 2024