9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] keyboard chord for the ☹ (unicode 0x2639) rune
@ 2004-02-04 22:23 andrey mirtchovski
  2004-02-05 15:21 ` [9fans] keyboard chord for the 0x2639 rune andrey mirtchovski
  0 siblings, 1 reply; 2+ messages in thread
From: andrey mirtchovski @ 2004-02-04 22:23 UTC (permalink / raw)
  To: 9fans

added to latin1.h -- a key chording combination for typing the "sad"
smiley face, ☹..

key combination is alt+':'+'('; the key combination for the "happy"
smiley face is alt + ':' + ')'..

I've also changed drawterm's code to work around a bug/feature in
newer GCC compilers which prevents it from normally functioning if
compiled with anything above 3.0 (the problem has been reported
previously in 2001 and 2003 by Ish Rattan and me).  I've also updated
the linux and freebsd drawterm binaries on

	http://pages.cpsc.ucalgary.ca/~mirtchov/p9

to reflect that fact.

I know most of you don't really care about this but I find myself
needing it from time to time, so here are the diffs:

---------------

diff /n/dump/2004/0204/sys/src/9/port/latin1.h /sys/src/9/port/latin1.h
23c23
< 	":", ")-=",	L"☺÷≔",
---
> 	":", "()-=",	L"☹☺÷≔",

diff /n/dump/2004/0204/sys/src/cmd/unix/drawterm/latin1.c /sys/src/cmd/unix/drawterm/latin1.c
65c65
< 	":", "-=)", { 0xF7, 0x2254, 0x263A, },
---
> 	":", "-=()", { 0xF7, 0x2254, 0x2639, 0x263A, },

diff /n/dump/2004/0204/lib/keyboard /lib/keyboard
543a544
> 2639  :(          ☹ sad face

---------------

this fixes the runtime signal 11 crashing:

---------------

diff /n/dump/2004/0204/sys/src/cmd/unix/drawterm/doprint.c /sys/src/cmd/unix/drawterm/doprint.c
530c530
< 	rune = va_arg(*arg, Rune);
---
> 	rune = va_arg(*arg, unsigned int);

---------------

andrey



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] keyboard chord for the 0x2639 rune
  2004-02-04 22:23 [9fans] keyboard chord for the ☹ (unicode 0x2639) rune andrey mirtchovski
@ 2004-02-05 15:21 ` andrey mirtchovski
  0 siblings, 0 replies; 2+ messages in thread
From: andrey mirtchovski @ 2004-02-05 15:21 UTC (permalink / raw)
  To: 9fans

On Wed, 4 Feb 2004, andrey mirtchovski wrote:

> added to latin1.h -- a key chording combination for typing the "sad"
> smiley face, ☹..
> 

thanks to nemo for pointing out aux/mklatinkbd and
/sys/src/9/port/portmkfile -- I had no clue they existed...

there is no need to manually change /sys/src/9/port/latin1.h then -- it can
be generated from /lib/keyboard directly, drawterm though cannot (I believe)

andrey




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-05 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-04 22:23 [9fans] keyboard chord for the ☹ (unicode 0x2639) rune andrey mirtchovski
2004-02-05 15:21 ` [9fans] keyboard chord for the 0x2639 rune andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).