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!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Shell Programming and Scripting
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
3. AIX
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
10. UNIX for Beginners Questions & Answers
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
LEARN ABOUT DEBIAN
prima::colordialog
Prima::ColorDialog(3) User Contributed Perl Documentation Prima::ColorDialog(3)
NAME
Prima::ColorDialog - standard color selection facilities
SYNOPSIS
use Prima qw(StdDlg Application);
my $p = Prima::ColorDialog-> create(
quality => 1,
);
printf "color: %06x", $p-> value if $p-> execute == mb::OK;
DESCRIPTION
The module contains two packages, "Prima::ColorDialog" and "Prima::ColorComboBox", used as standard tools for interactive color selection.
"Prima::ColorComboBox" is a modified combo widget, which provides selecting from predefined palette but also can invoke
"Prima::ColorDialog" window.
Prima::ColorDialog
Properties
quality BOOLEAN
Used to increase visual quality of the dialog if run on paletted displays.
Default value: 0
value COLOR
Selects the color, represented by the color wheel and other dialog controls.
Default value: "cl::White"
Methods
hsv2rgb HUE, SATURATION, LUMINOSITY
Converts color from HSV to RGB format and returns three integer values, red, green, and blue components.
rgb2hsv RED, GREEN, BLUE
Converts color from RGB to HSV format and returns three numerical values, hue, saturation, and luminosity components.
rgb2value RED, GREEN, BLUE
Combines separate channels into single 24-bit RGB value and returns the result.
value2rgb COLOR
Splits 24-bit RGB value into three channels, red, green, and blue and returns three integer values.
xy2hs X, Y, RADIUS
Maps X and Y coordinate values onto a color wheel with RADIUS in pixels. The code uses RADIUS = 119 for mouse position coordinate
mapping. Returns three values, - hue, saturation and error flag. If error flag is set, the conversion has failed.
hs2xy HUE, SATURATION
Maps hue and saturation onto 256-pixel wide color wheel, and returns X and Y coordinates of the corresponding point.
create_wheel SHADES, BACK_COLOR
Creates a color wheel with number of SHADES given, drawn on a BACK_COLOR background, and returns a "Prima::DeviceBitmap" object.
create_wheel_shape SHADES
Creates a circular 1-bit mask, with radius derived from SHAPES. SHAPES must be same as passed to create_wheel. Returns "Prima::Image"
object.
Events
BeginDragColor $PROPERTY
Called when the user starts dragginh a color from the color wheel by with left mouse button and combination of Alt, Ctrl, and Shift
keys. $PROPERTY is one of "Prima::Widget" color properties, and depends on combination of keys:
Alt backColor
Ctrl color
Alt+Shift hiliteBackColor
Ctrl+Shift hiliteColor
Ctrl+Alt disabledColor
Ctrl+Alt+Shift disabledBackColor
Default action reflects the property to be changes in the dialog title
Change
The notification is called when the value property is changed, either interactively or as a result of direct call.
EndDragColor $PROPERTY, $WIDGET
Called when the user releases the mouse drag over a Prima widget. Default action sets "$WIDGET->$PROPERTY" to the current color value.
Variables
$colorWheel
Contains cached result of create_wheel call.
$colorWheelShape
Contains cached result of create_wheel_shape call.
Prima::ColorComboBox
Events
Colorify INDEX, COLOR_PTR
"nt::Action" callback, designed to map combo palette index into a RGB color. INDEX is an integer from 0 to colors - 1, COLOR_PTR is a
reference to a result scalar, where the notification is expected to write the resulting color.
Properties
colors INTEGER
Defines amount of colors in the fixed palette of the combo box.
value COLOR
Contains the color selection as 24-bit integer value.
SEE ALSO
Prima, Prima::ComboBox, examples/cv.pl.
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
perl v5.14.2 2009-02-24 Prima::ColorDialog(3)