gyscos / gyscos/cursive

Is there a way to trap Alt/Control-Key?

Open
#291 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

A suggestion or asking for help.

# Problem description

In C (I don't know how portable is this, so I can be totally off here), you can do something like

printf("%d %d",getchar(), getchar());

and if one does a alt-f (or example), it will output 102 27. So this could be a way to catch Alt keys (useful when you want to pop up a menu).

Is there a way to do this currently, or is this a feature-request?

# Environment

Linux

Backend used: ncurses
* If using ncurses on linux, ncurses version? (run `grep "define NCURSES_VERSION " /usr/include/curses.h`)
6.1
* Current locale (run `locale` in a terminal).
en_US.UTF-8
* Cursive version (from crates.io, from git, ...)
0.9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.