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 6802117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:11:02+00:00 2026-05-26T19:11:02+00:00

I am new in C but not in programming. I want access keyboard keys

  • 0

I am new in C but not in programming. I want access keyboard keys through pointers. As I have tried it with far pointer and use the address 0x417 and 7th bit on with my programming in my P2 system on Windows box. Now I want to start working in Linux and trying to use the same function but nothing happen with caps lock. Any one can send me some good tutorial about the hardware and file attribute access in Ubuntu Linux.

I am very much thankful to you all.

Regards,

  • 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-05-26T19:11:03+00:00Added an answer on May 26, 2026 at 7:11 pm

    You don’t access the keyboard thru pointers on Linux.

    If you are thinking of a graphical application, it uses X11, and its underlying protocol (which is very complex for newbies). If you are a newbie, I strongly recommend using a graphical toolkit library like Qt or GTK.

    If you are thinking of a console application, I do recommend using a library like ncurses or perhaps readline.

    You could indeed read the raw keyboard (since e.g. the Xorg server does), but this is painful. You’ll need to learn about tty-s and the details are painful. You’ll also need to learn about the raw linux keyboard (I forgot the details, but study the Xorg server for more).

    You really should explain what you want to do. Be aware that understanding in full detail what is a tty or what is the raw keyboard takes months of work. And you should be familiar with linux system calls before even starting.

    You should take advantage that nearly all Linux software is free; so you can study its source code.

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

Sidebar

Related Questions

I'm new to Cocoa and xCode, but not programming though. I have created some
I am new to C, but not to programming. I have been roped into
I am new to PHP but not programming in general. I want to store
I'm fairly new to game programming (but not to programming) and I want to
First, i'm new at Java-programming and my native lang is not english, but still
I'm new to Boost, but not to functional programming, and I'm trying to see
I'm totally new to Ruby but not to programming. All I did was going
I am new to c#, but not to programming. First of, thank you so
I'm new to Java, but not new to programming, so as my first project
I'm new to Flex, although not new to programming. I want to write a

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.