From owner-freebsd-questions Tue May 27 05:06:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA10163 for questions-outgoing; Tue, 27 May 1997 05:06:18 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA10149 for ; Tue, 27 May 1997 05:06:14 -0700 (PDT) Received: by mail.EUnet.hu, id OAA18649; Tue, 27 May 1997 14:06:07 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id NAA00980; Tue, 27 May 1997 13:27:50 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705271127.NAA00980@CoDe.hu> Subject: Re: X - cr/nl To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 27 May 1997 13:27:49 +0200 (MET DST) Cc: un_x@anchorage.net In-Reply-To: from Steve Howe at "May 24, 97 04:45:40 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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"