...
Step | Command | |
---|---|---|
1 | Determine the key code of the Right-Ctrl key. |
You will receive an output similar to:
|
2 | Redefine the key code to the numeric keypad Enter key. | $ xmodmap -e "keycode 105 = KP_Enter" |
3 | If original key mapping is required, reverse step 2. | $ xmodmap -e "keycode 105 = Control_R" |
Please note: these settings are not persistent across X-sessions. To always use a certain setting when running xhpterm, you could, for example, use a small script to set and reset the key mapping. An example (only for illustrative purposes only) is shown below.
Code Block | ||
---|---|---|
| ||
#!/usr/bin/bash
#
# parameter: -f <font> -p <port>
#
while getopts "f:p:" opt; do
case "$opt" in
(f) font="-font $OPTARG" ;;
(p) port="-port $OPTARG" ;;
(*) print "flag [$opt] unknown. abort." && exit 1 ;;
esac
done
if [[ -z "$port" ]]; then
echo "Port (-p) is mandatory"
exit 1
fi
xmodmap -e "keycode 105 = KP_Enter"
/opt/charon/bin/xhpterm -clean $font $port
xmodmap -e "keycode 105 = Control_R" |
Using Different Fonts
The default command-line to start xhpterm is: $ xhpterm -port 30000 -clean -font 10x20
...