Date: Tue, 27 May 1997 13:27:49 +0200 (MET DST) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Cc: un_x@anchorage.net Subject: Re: X - cr/nl Message-ID: <199705271127.NAA00980@CoDe.hu> In-Reply-To: <Pine.BSF.3.95q.970524164002.20368B-100000@aak.anchorage.net> from Steve Howe at "May 24, 97 04:45:40 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > X changes "cntrl-return" from a "cntrl-J" to "cntrl-M" ... > can i correct this without becoming an termcap (X version) wiz? Well, I think it's not termcap specific. I tried it with xmodmap, and with: xmodmap -e 'keycode 36 = Linefeed Return' I've got, that return will be ^J (instead of ^M), and ^-return will be ^J, too. You can get ^M with Shift-return. I didn't find in the manual, how can we change the Ctrl-foo modifier, but I think it's there. Try to grab the Xkeycaps program, and try to generate with ctrl-return the needed ctrl-j (without remapping return, too). If you know, send it to me, too! Gabor PS: or use xmodmap -e 'keycode 36 = Return Linefeed' so return will ^M, ctrl-return will ^M, too, but shift-return will ^J -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705271127.NAA00980>