From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 21:27:52 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 647B4106566C for ; Sat, 12 Mar 2011 21:27:52 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp4.iomartmail.com (asmtp4.iomartmail.com [62.128.201.175]) by mx1.freebsd.org (Postfix) with ESMTP id E2A9E8FC13 for ; Sat, 12 Mar 2011 21:27:51 +0000 (UTC) Received: from asmtp4.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p2CLRnNA005775; Sat, 12 Mar 2011 21:27:50 GMT Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id p2CLRnrn005768; Sat, 12 Mar 2011 21:27:49 GMT Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 21C4933C1F; Sat, 12 Mar 2011 21:27:49 +0000 (GMT) Date: Sat, 12 Mar 2011 21:27:49 +0000 From: Frank Shute To: Antonio Olivares Message-ID: <20110312212749.GB38813@orange.esperance-linux.co.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-RC2 amd64 X-Organisation: 'shute.org.uk' Cc: FreeBSD Questions Subject: Re: Character shortcuts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2011 21:27:52 -0000 --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 12, 2011 at 02:07:59PM -0600, Antonio Olivares wrote: > > Dear FreeBSD experts, >=20 > There has been something that I find hard to do, I would like to find > a CTRL + KEY combination, or ALT + KEY combination to input special > characters like (=F1) [ALT + 164 or ALT + 0241 in Mr. Gates OS]. >=20 > http://www.forlang.wsu.edu/help/keyboards.asp >=20 > accents other symbols like copyright, euro, etc. I would like to do > the same(have a special key combination) to get the characters in > FreeBSD too, but googling have not found something that works. I even > tried to run a litte program in the shell to generate the characters > to use for cutting + pasting to no avial. >=20 > But the characters after 127 are not printable :( using the pr-ascii scri= pt from > http://tldp.org/LDP/abs/html/wrapper.html >=20 > u + 00F1 is the =F1,but I don't know which key combination gives the > same results as above. A script/program(C,C++) that would generate > the characters would be nice, but if there is a key combination that > could be used to generate the special letters. >=20 > Thanks in Advance, >=20 > Antonio You can get those characters (digraphs) using vim. :help dig in (g)vim. E.g Ctl-k n ~ =F1 Ctl-k C o =A9 There's a note about using the Euro sign in the vim helpfile. (Depends on the encoding of the font you're using.) You could also make macros for these digraphs in vim. Regards, --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk175VQACgkQHduKvUAgeK5TXACdG38cBcu3O4h3GhwnGNMviC1R IlEAn1Wwm5T0dX7PvPTvMtjGwjM8oKhp =t/b5 -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--