Do you know whether ncurses supports Alt or Ctrl combination keys


 
Thread Tools Search this Thread
Top Forums Programming Do you know whether ncurses supports Alt or Ctrl combination keys
# 1  
Old 04-28-2009
Do you know whether ncurses supports Alt or Ctrl combination keys

I'm new in ncurses. I'd like to ask one question.

Do you know whether ncurses supports Alt or Ctrl combination keys?

Our application wants to get response when inputting Alt or Ctrl combination keys by keyboard in one linux c project.

I try one testing on ncurses, it seems ncurses doesn't support Alt combination keys,
it gets the same value for inputting A and Alt+A.

Could anyone give any suggestions on this?

Thank you for your time!
# 2  
Old 04-30-2009
Hi everyone,

NCurses is a text-based UI application.
It provides a library to facilitate function keys input.

Please see the following link:
ncurses - Wikipedia, the free encyclopedia

Now my application wants to use this library, but according to my testing,
unfortunately, it seems it does not support Alt combination keys.

Can anyone give any kind suggestions on this?

Thanks in advance!
# 3  
Old 04-30-2009
It depends on whether the relevant capabilities are in the terminfo or termcap entry for your particular terminal. Read up on terminfo, tic, untic, etc.
# 4  
Old 05-01-2009
Hi fpmurphy,

Thank you for your information.

But the core header file of ncurses doesn't contain a key something like
Alt combination keys.

I mean that header file includes all the keys it supports. So if ncurses supports Alt combination key, that file should include some key identifying
Alt combination key.

Is my understanding correct?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Samba - Change passwd from client with ctrl + alt + del

Hello, I got a very strange issue using samba. From a Windows 7 client that joined the domain, i want to change a user password. Here is what i am doing exactly : Loging into the domain account, with username and password. Pressing ctrl + alt + del Clic on Change password menu Enter old... (8 Replies)
Discussion started by: Purgator
8 Replies

2. Shell Programming and Scripting

Automation of keyboard inputs..like Ctrl+d and Ctrl+a

Hi..! I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited.. So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same. i will have to press Ctrl+a and Ctrl+d for... (2 Replies)
Discussion started by: chandana hs
2 Replies

3. UNIX for Dummies Questions & Answers

Ctrl-V + Ctrl-J for newline character does not work inside vi editor

Hi friends, I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script. #! /bin/sh echo "select * from tab; commit;" > data.sql I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Discussion started by: royalibrahim
1 Replies

4. Shell Programming and Scripting

How to handle CTRL+Z or CTRL+C in shells script?

Hi, while executing shell script, in the middle of the process, if we kill the shell script( ctrl+z or ctrl+c), script will be killed and the files which using for the script will be in the folder. How to handle those scenarios. Is there any possibilities, if user breaks the script, I need to... (3 Replies)
Discussion started by: ckchelladurai
3 Replies

5. Shell Programming and Scripting

Ctrl-C or Ctrl-Z causing exit the session

H! I have written script where it need to invoke the perl script in background, then write the pid in temp file then bring back the job to foreground. whenever the Ctrl-C or Ctrl-Z is pressed in the script has to exit and prompt should be dispalyed. but this script causing exit from shell session... (2 Replies)
Discussion started by: jramesh1
2 Replies

6. Shell Programming and Scripting

How to send Ctrl Break combination in Expect

Greetings, I am writing an Expect script to automate multiple processes on an HP-UX system. Everything has gone fine so far but I now have run into a problem. One of the processes that I'm trying to automate requires the key combination of ctrl break and I have so far been unable to figure out... (1 Reply)
Discussion started by: g_trueblood2000
1 Replies

7. Shell Programming and Scripting

Catching ctrl-C or ctrl-D

Hi there, I'm using HP-UX 11 machine. I am running a script, thats gonna take a long time to execute. When I press ctrl-c to come out of my script, I have to catch that signal(ctrl-c) and display that ctrl-c had been pressed. How can I do it. Thanks in advance (2 Replies)
Discussion started by: sendhilmani123
2 Replies

8. AIX

Disable ctrl-c,ctrl-d,ctrl-d in ksh script

I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies

9. Shell Programming and Scripting

Python+Linux: CTRL-ALT-DEL Ncurses Utility

I have this NCurses utility that prompts for user input and takes action appropriately, I changed the default action for the three finger'd salute to run this utility instead of restarting the system. This is a problem: Printing to stdout happens immediately, but before anything else (such as... (0 Replies)
Discussion started by: thmnetwork
0 Replies

10. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies
Login or Register to Ask a Question