Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: additional xmodmap information

...


StepCommand
1Determine the key code of the Right-Ctrl key.

$ xmodmap -pk | grep "Control_R"

You will receive an output similar to: 

105 0xffe4 (Control_R) 0x0000 (NoSymbol) 55 0xffe4 (Control_R)

2Redefine the key code to the numeric keypad Enter key.$ xmodmap -e "keycode 105 = KP_Enter"
3If 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
languagetext
#!/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

...