XHPPrompt(3X)XHPPrompt(3X)NAME
XHPPrompt - Send a prompt to an extended input device.
SYNOPSIS
#include <X11/XHPlib.h>
int XHPPrompt (display, deviceid, prompt)
Display *display;
XID deviceid;
unsigned int prompt;
ARGUMENTS
display Specifies the connection to the X server.
deviceid Specifies the ID of the desired device.
Prompt Specifies the Prompt to be sent. Valid values are: GENERAL_PROMPT, PROMPT_1, PROMPT_2, PROMPT_3, PROMPT_4, PROMPT_5, PROMPT_6,
PROMPT_7.
DESCRIPTION
This request is part of an HP-proprietary extension to X. Its functionality has been superseded by the standard X input device extension
XChangeFeedbackControl request. You should use XChangeFeedbackControl instead of XHPPrompt if possible.
This request sends a prompt to an input device.
A prompt is an audio or visual indication that the program controlling the input device is ready for input. The program may indicate that
status by turning on a prompt on the appropriate input device.
Not all input devices support prompts and acknowledges. Any device that does support a particular prompt will also support the
corresponding acknowledge.
To determine whether an input device supports a particular prompt and acknowledge, the io_byte field of the XHPDeviceList structure should
be examined. The format of this structure is described in the documentation for the XHPListInputDevices request.
RETURN VALUE
none
DIAGNOSTICS
BadDevice An invalid device ID was specified.
BadValue An invalid prompt was specified.
FILES
/usr/include/X11/XHPlib.h
ORIGIN
Hewlett-Packard Company
SEE ALSO XHPListInputDevices(3x)XHPAcknowledge(3x)X Version 11 Release 5 XHPPrompt(3X)
Check Out this Related Man Page
XHPGetCurrentDeviceMask(3X)XHPGetCurrentDeviceMask(3X)NAME
XHPGetCurrentDeviceMask - Get the current extension event mask.
SYNOPSIS
int XHPGetCurrentDeviceMask (display, window, deviceid, mask_return)
Display *display;
Window window;
XID deviceid;
Mask *mask_return;
ARGUMENTS
display Specifies the connection to the X server.
window Specifies the ID of the desired window.
deviceid Specifies the ID of the desired extension input device.
mask_return Address of a variable into which the server can return the mask.
DESCRIPTION
This request is part of an HP-proprietary extension to X. Its functionality has been superseded by the standard X input device extension
XGetSelectedExtensionEvents request. You should use XGetSelectedExtensionEvents instead of XHPCurrentDeviceMask if possible.
This request is provided to support the use of input devices other than the X keyboard and X pointer device.
XHPGetCurrentDeviceMask returns the current event selection mask for the specified extended input device and window. This is the mask that
was specified by the calling client program on a previous XHPSelectExtensionEvent request.
This request is not valid for the X pointer device or the X keyboard device. The current event selection mask for those devices can be
obtained by using the XGetwindowAttribute(3x) request.
RETURN VALUE
none
FILES
none
ORIGIN
Hewlett-Packard Company
SEE ALSO XGetwindowAttribute(3x)XHPSelectExtensionEvent(3x)XHPGetExtEventMask(3x)X Version 11 Release 5 XHPGetCurrentDeviceMask(3X)
I know this is very easy. I just am having a problem determining how to do it.
I want to have a 2-line command prompt when you hit return. I have no problem creating or exporting a PS1, but can't make into 2 lines.
hostname-user:/path/to/dir
#
I really should know this, but my brain... (7 Replies)
Dear all
That's another problem from me, i wanna do a lot of if statement checking for correct input by user, will be prompt input again if the input not meet the requirement defined by If or while statement...
like this one ....
while
I know it's less effiency write the program... (14 Replies)
Hi,
I saw something in weird in Shell prompt.
I did the following steps
1) Typed ls -l and pressed ESC without entering
2) Typed "v" (please notice that I did not type "i" after "v"), which opened vi editor
3) I see the "ls -l" command that I typed in shell prompt
4) Without modifying... (6 Replies)
We have a Solaris 10 machine.
Today a weird issue happened.
After login remotely via ssh, the motd appeared BUT
there was no prompt!
The prompt only appears after pressing Ctrl+d or Ctrl+c.
Strange behaviour.
I have checked /etc/profile and own user .profile, there is no anamoly.
... (11 Replies)
Hi,
Does anyone know any way of making bash prompt extended with conditional content?
Example:
export PS1="] && echo '#' || echo '\$'" # This won't work - prompt is not executed
# export PS1="\$" # This is an existing but also working equivalent
I would like to use more complex... (8 Replies)
Hello All,
I would like to display the current time in prompt.
I tried using following command:
export PS1="$(date +%k:%M:%S) $ "
but it gave me a fixed time in prompt whereas my objective is to get the current time everytime.
$ export PS1="$(date +%k:%M:%S) $ "
17:42:42 $
17:42:42 $... (32 Replies)
Hello all,
I've a flat file in the following format:
AB\001\CDED\001\ABC\001\nEG\001\HIJF\001\EFG\001\nHI\003\HIUL\003\HIJ\003
And I want to substitute \n with the carriage return. Any help is appreciated!
Regards,
- Seth (8 Replies)
Need assistance in changing prompt .
Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files.
set prompt = "$user@`uname -n` : ${cwd}> "
#above commands works for username and hostname but cwd doesnt change
directories
set... (16 Replies)
I have given as:
PS1="Karthick>" in linux.
Now the prompt changed as:
Karthick>
Now I need to get back the default prompt .
How to achieve this?
Thanks in advance (13 Replies)
I use the following command to print the current directory above the command prompt
set prompt="`exec pwd`\n$USER@`hostname -s` %B: % > "
The output is something like this
<current path>
$USER@hostname >
But when I try to CD to any other directory and press the return key, the... (6 Replies)
Hello Guys,
I have facing problem with linux shell prompt .Am expecting my Bash prompt to be like below
but its showing like
~]$ ot@Servername and while typing the commands the prompt looks like below:
~]$ echo $PS1
$
~]$ ot@ServernameChecked the .bash_profile and also changed... (9 Replies)
Hello,
I need help booting to a command prompt. The server runs SCO Openserver 5.0, with a point of sale program that automatically boots upon startup. I can't gain root access, and the administrator password for the point of sale program is un-obtainable. I am upgrading to a new point of sale... (8 Replies)