[opensuse] Jstar: how to get ctrl-left and ctrl-right keys working, solved.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, It has been a long standing nuisance that ctrl-left and ctrl-right do not work in jstar. I got, by chance, a hint on nntp:alt.os.linux. There is this paragraph on the man page: «Unfortunately, there is no standard way to get the keysequence given by the terminal emulator when you hit Ctrl-Right Arrow. Instead you have to determine this sequence yourself and enter it directly in the joerc file. Some examples are given for Xterm and gnome-terminal. Hit ^Q Ctrl-Right Arrow within JOE to have the sequence shown on your screen. Note that Putty uses Esc Esc [ C which will not appear with ^Q Right Arrow (also Esc Esc is the set bookmark command, so you need to unbind it to do this in Putty).» - From there I got the sequences: ^right [1;5C ^left [1;5D Looking at both /etc/joe/jstarrc and /etc/joe/joerc (the mentioned paragraph in the man about Xterm is only in plain joe), I finally found how to do it. Locate in /etc/joe/jstarrc nextword ^F Goto next word ... prevword ^A Previous word and add: nextword ^[ [ 1 ; 5 C CER: Goto next word prevword ^[ [ 1 ; 5 D CER: Previous word It appears that the configuration file configures the entire keyboard of the editor. Everything. I don't know if my changes will work on all terminals. They work on xterm, xfce-terminal, lxterminal, gnome-terminal, and konsole, but not in console. There the sequences would be: - --> [C <-- [D - -- Cheers Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXdaK4Bwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVAZYAn1tmY+d7CBJo+jOTxmAQ /aLSBdlzAJ9Z3194SbB5krPdGKBrbq3N+qf9BQ== =QOp2 -----END PGP SIGNATURE-----
participants (1)
-
Carlos E. R.