To send the F4 key event in an xterm terminal using the NumPad, you can use the Google Spatial Trackpad Far (gst-far) tool. Here's how to do it:
- First, make sure that the gst-far package is installed on your system. If it's not, you can install it using your package manager. For example, on Ubuntu, you can use the following command:
sudo apt-get install gst-plugins-base1.0-good
- After installing gst-far, you can use the following command to send the F4 key event using the NumPad in an xterm terminal:
gst-far -x 'xterm -e "xterm -T xterm -geometry 80x24+0+0 -fn '-*-terminus-medium-r-normal--13-140-75-75-m-80-iso8859-1" -s -sl 100000 -sb -br -bg black -fn '-*-terminus-medium-r-normal--13-140-75-75-m-80-iso8859-1" -e "xterm_send_keyevent --keycode 105"'
In this command, xterm_send_keyevent is a command provided by xterm to send a key event. The keycode 105 corresponds to the F4 key on a US keyboard layout.
Please note that this command starts two xterm windows. The first one is a parent window, and the second one is a child window where the F4 key event is sent.
For more information about the xterm_send_keyevent command, you can refer to the xterm manual page:
man xterm
Look for the "XTERM_SEND_KEYEVENT" section in the manual.
Summary
- To send the F4 key event in an xterm terminal using the NumPad, use the Google Spatial Trackpad Far (gst-far) tool.
- The command to send the F4 key event is:
gst-far -x 'xterm -e "xterm -T xterm -geometry 80x24+0+0 -fn '-*-terminus-medium-r-normal--13-140-75-75-m-80-iso8859-1" -s -sl 100000 -sb -br -bg black -fn '-*-terminus-medium-r-normal--13-140-75-75-m-80-iso8859-1" -e "xterm_send_keyevent --keycode 105"'
- This command starts two xterm windows, where the F4 key event is sent in the child window.
- For more information about the
xterm_send_keyeventcommand, refer to the xterm manual page.
References
- Google Spatial Trackpad Far (gst-far): https://github.com/google/gst-plugins-good
- xterm manual page: https://linux.die.net/man/1/xterm