LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2017, 12:15 PM   #1
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Salckware
Posts: 32

Rep: Reputation: Disabled
ncurses not capturing system keys


raw();
keypad(stdscr, TRUE);

not capturing the system keys
all function keys are going to the system NOT the program

- - - - -
system information:

CPU: AMD Athlon(tm) II P360 Dual-Core x 2
MEM: 3783MB (1009MB used)
SCSI: ATA WDC WD3200BEVT-7 320 GB
TSSTcorp DVD+-RW TS-L633C
DISP: Resolution 1366x768 pixels
OpenGL Renderer Gallium 0.4
AMD RS880 (DRM 2.49.0 / 4.10.0-32-generic,LLVM 4.0.0)
Linux Mint 18.2 Sonya
Kernal Linux 4.10.0-33-generic x86_64
MATE 1.18.0

using:
libncurses5 & libncursesw5
 
Old 09-26-2017, 12:30 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,273

Rep: Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994
Please be more precise, what are the 'system keys'?
Mayhap you have a laptop, where function-keys don't act as function keys, unless you press them together with a button labeled [Fn] ?
 
1 members found this post helpful.
Old 09-26-2017, 12:34 PM   #3
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Salckware
Posts: 32

Original Poster
Rep: Reputation: Disabled
as I said: Function Keys

looks to be an issue with the Terminal
 
Old 09-26-2017, 12:43 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,273

Rep: Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994
Mayhap you have a laptop, where function-keys don't act as function keys, unless you press them together with a button labeled [Fn] ?
 
Old 09-26-2017, 01:05 PM   #5
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Salckware
Posts: 32

Original Poster
Rep: Reputation: Disabled
I toggled that setting system BIOS.
The F-Keys are always ON now & the system stuff requires the Fn to work.

No, from what I can tell it is something system / terminal related.

Did some research and it looks like the default xterm does not like ncurses.
 
Old 09-26-2017, 01:09 PM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,273

Rep: Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994
Off: It would be surprising, considering the fact that ncurses and xterm are maintained by the same person: Thomas E. Dickey
You really should do some testing, eg trying different terminal-emulators, trying Midnigth Commander's Learn Key functionality, trying this program: http://web.axelero.hu/lzsiga/shkeys.c
 
1 members found this post helpful.
Old 09-26-2017, 01:15 PM   #7
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Salckware
Posts: 32

Original Poster
Rep: Reputation: Disabled
I have emailed Thomas.

Wait and see what he has to say.

I have a new install of Linux Mint Mate 18.2 so everything should be up to date.


---
If there's a BUG, I'll find it, or it will find me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of System-config-users not capturing activity FyveSyx Linux - Security 3 12-16-2010 10:41 AM
Capturing system settings mjchin Linux - Newbie 3 03-20-2009 08:09 AM
Problem with ncurses and character sets/keys galapogos Programming 3 05-07-2008 02:00 AM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
Ncurses interface.. how to find the keys mentioned ? Dark Carnival Linux - Software 1 06-07-2004 09:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration