Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8018269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:05:36+00:00 2026-06-04T21:05:36+00:00

How do I get the key codes so I can process arrow, pageUp, pageDown,

  • 0

How do I get the key codes so I can process arrow, pageUp, pageDown, etc, keys using simple C or C++?

I can get the regular keys, I do not know how to get these special keys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:05:38+00:00Added an answer on June 4, 2026 at 9:05 pm

    Linux based systems follow the UNIX tradition, in the sense that those keys are special and their values depend on the terminal settings.

    This is so, because in the old days each UNIX system had a complete different type of keyboard. As such it is somehow complex to be able to write generic code to handle those special keys.

    The best way is to make use of a terminal handling library, like curses or its successor ncurses.

    Here you can get a nice introduction about keyboard usage,

    http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/keys.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using the below code in order to get the Windows License Key.
In Python, how can I simply do the equivalent of dictionary.get(key, default) for lists
Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic According
I'm trying to develop an application using Google's maps and I can't get this
I'm trying to use my debug keystore so I can get a key for
I have code in javascript which get keycodes of different keys and set it
I'm following this guide to get key binding to work in my application. So
How to get private key in string from below... key = paramiko.RSAKey.generate(1024) ssh_key =
From my question at Get Foreign Key Value , I managed to get the
So I want to get a key to use Google API in Eclipse with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.