2vin / keyboard-input

Live keyboard input display without 'Enter' key

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyboard-input

Live keyboard input display without 'Enter' key

This program can be used to create own applications like notepad in C++. It reads live keypresses from the keyboard and display them on the screen.

Compile

g++ keyStroke.cpp -o main -lpthread -std=c++11

Usage

./main

It should print live keypresses on terminal screen. Edit the TOGGLE() thread and/or while(!TERMINATE) to make it suitable for your use case.

About

Live keyboard input display without 'Enter' key

License:MIT License


Languages

Language:C++ 100.0%