Tuesday, April 26, 2022

[SOLVED] open xterm with allow-send-events set to True

Issue

I would like to open xterm from a terminal with the command

xterm

and specify the parameter

allow-send-events(toggle)

set to true (without having to do ctrl+click and set it to True manually once xterm is open)

Yet, reading through the term documentation I can't figure out what argument I have to specify to do this. Could someone kindly point it out?

EDIT

I would also be happy if there is a way to toggle this setting directly in the xterm with a typed command e.g.

xterm > allow-send-events("ON")

Would this be possible?


Solution

This command sets the resource allowSendEvents when starting xterm:

xterm -xrm '*allowSendEvents:true'

There also is a menu entry (control-button-one shows the menu).



Answered By - Thomas Dickey
Answer Checked By - Pedro (WPSolving Volunteer)