Gnus development mailing list
 help / color / mirror / Atom feed
* Smiley.el
@ 1997-11-07  7:02 Greg Stark
  1997-11-13 21:16 ` Smiley.el Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Stark @ 1997-11-07  7:02 UTC (permalink / raw)



Ever wish you smiley.el worked on a terminal? Well it can't, but it there are
two smiley faces in the standard pc console font that it could use. I don't
know what console escape sequence to use to access them except on linux. On
linux the escape sequence to switch fonts is: ^[[11m and the characters are 1
and 2.

So:
(aset standard-display-table 25 (vector (create-glyph "\^[[11m\^A\^[[10m")))
(aset standard-display-table 26 (vector (create-glyph "\^[[11m\^B\^[[10m")))

make ^X and ^Z display as smiley faces on a terminal on linux i386 
(and probably on an alpha with a vga card).

One caveat, W3 already plays with the display-table for for ^A-^O in the
standard-display-table. I want to make it use a private display-table but as
it stands it would be nice if Gnus used either higher control characters,
control characters with the high bit set, or a private display-table.

greg


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

* Re: Smiley.el
  1997-11-07  7:02 Smiley.el Greg Stark
@ 1997-11-13 21:16 ` Lars Magne Ingebrigtsen
  1997-11-14  5:39   ` Smiley.el Hrvoje Niksic
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-11-13 21:16 UTC (permalink / raw)


Greg Stark <gsstark@MIT.EDU> writes:

> (aset standard-display-table 25 (vector (create-glyph "\^[[11m\^A\^[[10m")))
> (aset standard-display-table 26 (vector (create-glyph "\^[[11m\^B\^[[10m")))
> 
> make ^X and ^Z display as smiley faces on a terminal on linux i386 
> (and probably on an alpha with a vga card).

I think this might make a fun addition to smiley.el if anybody wants
to implement it.

It should definitely use a display table local to the article buffer,
though.  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Smiley.el
  1997-11-13 21:16 ` Smiley.el Lars Magne Ingebrigtsen
@ 1997-11-14  5:39   ` Hrvoje Niksic
  0 siblings, 0 replies; 4+ messages in thread
From: Hrvoje Niksic @ 1997-11-14  5:39 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Greg Stark <gsstark@MIT.EDU> writes:
> 
> > (aset standard-display-table 25 (vector (create-glyph "\^[[11m\^A\^[[10m")))
> > (aset standard-display-table 26 (vector (create-glyph "\^[[11m\^B\^[[10m")))
> > 
> > make ^X and ^Z display as smiley faces on a terminal on linux i386 
> > (and probably on an alpha with a vga card).
> 
> I think this might make a fun addition to smiley.el if anybody wants
> to implement it.
> 
> It should definitely use a display table local to the article buffer,
> though.

It should also be conditionalized to not work on XEmacs, because
XEmacs display-table model cannot handle stuff like "\e[11m\C-a\e[10m"
in its disp-table entries.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Then...  his face does a complete change of expression.  It goes from
a "Vengeance is mine" expression, to a "What the fuck" blank look.


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

* smiley.el
@ 1996-06-17 14:07 Dr. Pete Gieser
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. Pete Gieser @ 1996-06-17 14:07 UTC (permalink / raw)



This needs 

(require 'annotations)

Pete
-- 

Peter Gieser, Ph.D.                    Phone:  (352) 392-5198 ext. 443
POG Statistical Office                 FAX:    (352) 392-8162
104 North Main Street  #600            Email:  pete@pog.ufl.edu
Gainesville, FL 32601                  

                 * Send me email to receive my PGP public key *



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

end of thread, other threads:[~1997-11-14  5:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-07  7:02 Smiley.el Greg Stark
1997-11-13 21:16 ` Smiley.el Lars Magne Ingebrigtsen
1997-11-14  5:39   ` Smiley.el Hrvoje Niksic
  -- strict thread matches above, loose matches on Subject: below --
1996-06-17 14:07 smiley.el Dr. Pete Gieser

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).