Closed blackbit42 closed 11 months ago
I can certainly change the default c3270 keymap so that ^A, q is Quit(-force)
instead of Quit()
.
The issue with your keymap is that you have put two entries on one line. The proper syntax would be:
c3270.keymap.mine: Ctrl<Key>A <Key>n: Quit(-force)\n\
Ctrl<Key>A <Key>q: Menu()
c3270.keymap: base,mine
c3270.keymap.mine: \n\
Ctrl<Key>A <Key>q: Quit(-force)
c3270.keymap: base,mine
This now makes c3270
quit on ^-a q
.
i guess the relevant part of the [documentation](https://x3270.miraheze.org/wiki/Quit()_action) is:
Unless the -force option is given (New in 4.0), the emulator will not terminate if Quit() is invoked from a keymap and there is a host session active.
Thanks for your help.
The
c3270
default config contains:Ctrl-A is apparently being recognized by the emulator, indicated by a
C
in OIA. At least that what I think theC
signifies. Though, hittingq
then yields no action. Similarly,alt-q
in x3270 doesn't end the emulator either.What might I be doing wrong here?
I tried to play around with custom keymaps to test the waters with
Quit(-force)
and whatnot and came up with:Unfortunately that results in
Column 37 is
:
. I have no idea whatsoever what is off here.