Ask coding questions

← Back to all posts
Clickable terminal
ash15khng (712)

I've seen a few projects making use of the terminal, but it uses clickable buttons on the terminal?
How do you do that?

Answered by SPQR (587) [earned 5 cycles]
View Answer
SPQR (587)

@Zavexeon I looked into it a bit and it seems that the terminal can sometimes detect mouse clicks but it doesn't seem to be able to get the mouse position on Linux, which is what runs on. So, clickable buttons on the terminal aren't really an option. @ash15khng If you really want buttons, though, you can have buttons which can be selected using the keyboard, like with arrow keys (don't use the arrow keys) or something of that nature.

please mark this response as the answer if I answered your question :)

ash15khng (712)

@SPQR I'm going to mark you as correct first but I've seen various projects using clickable buttons? Idk I'll try to read their code.

Zavexeon (1187)

I think this can be done in C++. I have no idea how, though.

@SPQR may know.