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

  • Home
  • SEARCH
  • 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 7510211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:09:40+00:00 2026-05-29T23:09:40+00:00

I am using C in Fedora Linux to build a voice streaming application. I

  • 0

I am using C in Fedora Linux to build a voice streaming application. I have audio running between two clients, but the next stage is to implement the user interface.

I am aiming to use different keyboard keys in a “push to talk” style, ie holding the “Q” key allows the user to talk to one user, “W” another and so on.

My question is, how would I go about implementing this? The transmit thread is just a while loop that reads 180 bytes from the sound card and sends it as a UDP packet. THe mist obvious issue is echoing of the key pressed, filling the screen with q’s and w’s, and how I can detect key down/key up in C. I am looking at ncurses but it is a big topic!

Any ideas or further reading would be greatly appreciated.

J

  • 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-29T23:09:43+00:00Added an answer on May 29, 2026 at 11:09 pm

    The first part of your question, as to how to detect keypress without using ncurses is answered excellently, using termios, by @jim mcnamara

    And ncurses doesn’t seem to be as scary as it sounds :-). Here is an ncurses implementation which exactly ( almost ) satisfies your requirement. But according to this post, you need to add a notimeout() call so that getch()(ncurses one) doesn’t wait for next keypress.

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

Sidebar

Related Questions

I am using the easy eclipse on fedora Linux system. I have to configure
What's the difference between running an application in a Linux terminal and Eclipse? I
Hi I am using Fedora 10 linux. I have created a .spec file now
Hi I am using Fedora 10 linux. I have created an rpm for my
Hi I am using 64bit Fedora 10 linux. I have created a sample java
gcc 4.5.1 Fedora 14 Linux I have this static library that was build from
I have several amazon ec2 instances running Linux AMIs based on fedora and even
I'm using Amazon EC2 with a Fedora 8 Core AMI. I have an EBS
I am using Fedora linux where ulimit -n 10000 increases file limit upto 10000.
I'm using g++ on fedora linux 13. I'm just practicing some exercises from my

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.