all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
@ 2002-09-11  3:05 Richard Stallman
  2002-09-11  3:42 ` Miles Bader
  2002-09-16  2:41 ` Marcus Brinkmann
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Stallman @ 2002-09-11  3:05 UTC (permalink / raw)
  Cc: Marcus.Brinkmann

Is there any chance you could work on this?
Since you wrote the tty color stuff, this would probably
be easier for you than for anyone else.

------- Start of forwarded message -------
Envelope-to: rms@gnu.org
Delivery-date: Tue, 10 Sep 2002 15:24:10 -0400
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: bug-emacs@gnu.org
Subject: fonts on terminal?
Content-Disposition: inline
Sender: bug-gnu-emacs-admin@gnu.org
Date: Tue, 10 Sep 2002 21:23:41 +0200

Hi,

I am writing the GNU Hurd console right now, and can easily support several
fonts at the same time.  This would allow you to switch to normal,
italic, or even real bold (not extra bright colors, but bold glyphs) using
terminal escape sequences.  There is a standard sequence for italics,
sitm/ritm, but no default sequence for real bold (termcap bold is usually used to
get the other 8 of the 16 available foreground color).

Of course, because this feature is obscure on todays PCs (although not on
all terminals in existance), it not used by modern curses applications, but
it could be.  Is there interest in supporting alternative (italics, bold)
faces for font lock mode in emacs, and would it be easy for you to add it?
Then I will add it to the Hurd console, with sitm/ritm for italics, and a
new capability as a GNU extension for real bold (sbom/rbom?  we should
probably consult the ncurses people about that).

Thanks,
Marcus

- -- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/


_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-11  3:05 [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?] Richard Stallman
@ 2002-09-11  3:42 ` Miles Bader
  2002-09-11  3:53   ` Marcus Brinkmann
  2002-09-16  2:41 ` Marcus Brinkmann
  1 sibling, 1 reply; 10+ messages in thread
From: Miles Bader @ 2002-09-11  3:42 UTC (permalink / raw)
  Cc: eliz, Marcus.Brinkmann, emacs-devel

Richard Stallman <rms@gnu.org> writes:
> Is there interest in supporting alternative (italics, bold)
> faces for font lock mode in emacs, and would it be easy for you to add it?

I think it would be very easy to add to emacs.

[though I'm not sure why the reference to font-lock -- font-lock
naturally already supports those things, it's just that terminals don't]

-Miles
-- 
Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-11  3:42 ` Miles Bader
@ 2002-09-11  3:53   ` Marcus Brinkmann
  2002-09-11  4:17     ` Miles Bader
  0 siblings, 1 reply; 10+ messages in thread
From: Marcus Brinkmann @ 2002-09-11  3:53 UTC (permalink / raw)
  Cc: rms, eliz, emacs-devel

On Wed, Sep 11, 2002 at 12:42:46PM +0900, Miles Bader wrote:
> Richard Stallman <rms@gnu.org> writes:
> > Is there interest in supporting alternative (italics, bold)
> > faces for font lock mode in emacs, and would it be easy for you to add it?
> 
> I think it would be very easy to add to emacs.
> 
> [though I'm not sure why the reference to font-lock -- font-lock
> naturally already supports those things, it's just that terminals don't]

Yeah, I am sorry, that sentence was never spelled out in its entirety.  It
should say: "supporting alternative (italics, bold) faces for font lock mode
in the term bottom handler of emacs", ie the part that translates abstract
descriptions to actual terminal escape sequences to produce the corresponding
face.

I am not familiar with the internals of emacs, though, so all I can do is
describe the outside of the process, and pick it up in the console
implementation where emacs emits sitm,ritm and other new escape sequences.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-11  3:53   ` Marcus Brinkmann
@ 2002-09-11  4:17     ` Miles Bader
  0 siblings, 0 replies; 10+ messages in thread
From: Miles Bader @ 2002-09-11  4:17 UTC (permalink / raw)
  Cc: rms, eliz, emacs-devel

Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:
> Yeah, I am sorry, that sentence was never spelled out in its entirety.  It
> should say: "supporting alternative (italics, bold) faces for font lock mode
> in the term bottom handler of emacs", ie the part that translates abstract
> descriptions to actual terminal escape sequences to produce the corresponding
> face.

Right, that part's simple.

One problem is that emacs allows faces to have `device dependent'
definitions, for cases where the most general definition isn't emulated
well.  A fair number of emacs' standard faces have `tty-specific'
definitions, and some of these might assume that ttys never have italic
(bold's probably not a problem, since ttys already sort-of support bold
via intensity).

I recently added capability-testing support (the `supports' clause) to
the face code so any faces that make that assumption about ttys could be
changed to directly test for italic support instead.

[In general I think the above isn't really a problem, since most
`tty-dependent' face definitions actually care about the color depth
(though this is another thing that should be changed to use a
capability-testing model instead).]

-Miles
-- 
97% of everything is grunge

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-11  3:05 [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?] Richard Stallman
  2002-09-11  3:42 ` Miles Bader
@ 2002-09-16  2:41 ` Marcus Brinkmann
  2002-09-16 19:27   ` Richard Stallman
  1 sibling, 1 reply; 10+ messages in thread
From: Marcus Brinkmann @ 2002-09-16  2:41 UTC (permalink / raw)
  Cc: eliz, emacs-devel

On Tue, Sep 10, 2002 at 11:05:02PM -0400, Richard Stallman wrote:
> Is there any chance you could work on this?
> Since you wrote the tty color stuff, this would probably
> be easier for you than for anyone else.

I have now added the following capabilities to the Hurd console:

# Enable (disable) italic mode.
        sitm=\E[3m, ritm=\E[23m,
# Enable (disable) real bold (not intensity bright) mode.  This is a
# GNU extension.
        gsbom=\EQ, grbom=\ER,

The sitm/ritm is ECMA-48 compatible.  The GNU extension was made up by me,
following the common pattern for set/reset mode (sXYm/rXYm), with a "g"
prefix to mark it as a GNU extension.  The escape sequences they are mapped to
(\EQ/\ER) are marked for private use by ECMA-48.

I will submit this to the ncurses people when I have finished the console (I
am still tweaking the hurd.ti when adding new features etc).

BTW, ECMA-48 also defines an escape sequence to select one of 10 fonts. 
However, I am happy to have one usable unicode font, there is no
terminal capability name for that ECMA capability, and there are no standard
meanings for the font numbers, so it is probably not something worth
implementing.  However, we might keep it in mind for the future.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-16  2:41 ` Marcus Brinkmann
@ 2002-09-16 19:27   ` Richard Stallman
  2002-09-19  3:42     ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2002-09-16 19:27 UTC (permalink / raw)
  Cc: eliz, emacs-devel

Eli, are you interested in implementing tty fonts?

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-16 19:27   ` Richard Stallman
@ 2002-09-19  3:42     ` Eli Zaretskii
  2002-09-19  4:10       ` Miles Bader
  2002-09-19 18:57       ` Richard Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2002-09-19  3:42 UTC (permalink / raw)
  Cc: Marcus.Brinkmann, emacs-devel

> From: Richard Stallman <rms@gnu.org>
> Date: Mon, 16 Sep 2002 15:27:08 -0400
> 
> Eli, are you interested in implementing tty fonts?

I'm interested, but I don't think I'll have time to do that any time
soon.

I agree with Miles that adding this is very easy.

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-19  3:42     ` Eli Zaretskii
@ 2002-09-19  4:10       ` Miles Bader
  2002-09-19 11:01         ` Eli Zaretskii
  2002-09-19 18:57       ` Richard Stallman
  1 sibling, 1 reply; 10+ messages in thread
From: Miles Bader @ 2002-09-19  4:10 UTC (permalink / raw)
  Cc: rms, Marcus.Brinkmann, emacs-devel

"Eli Zaretskii" <eliz@is.elta.co.il> writes:
> I'm interested, but I don't think I'll have time to do that any time
> soon.

I'll do it then.

-Miles
-- 
.Numeric stability is probably not all that important when you're guessing.

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-19  4:10       ` Miles Bader
@ 2002-09-19 11:01         ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2002-09-19 11:01 UTC (permalink / raw)
  Cc: rms, Marcus.Brinkmann, emacs-devel


On 19 Sep 2002, Miles Bader wrote:

> "Eli Zaretskii" <eliz@is.elta.co.il> writes:
> > I'm interested, but I don't think I'll have time to do that any time
> > soon.
> 
> I'll do it then.

Thanks!

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

* Re: [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?]
  2002-09-19  3:42     ` Eli Zaretskii
  2002-09-19  4:10       ` Miles Bader
@ 2002-09-19 18:57       ` Richard Stallman
  1 sibling, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2002-09-19 18:57 UTC (permalink / raw)
  Cc: Marcus.Brinkmann, emacs-devel

    I'm interested, but I don't think I'll have time to do that any time
    soon.

    I agree with Miles that adding this is very easy.

I think it will be easy for you, but not as easy for others.

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

end of thread, other threads:[~2002-09-19 18:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-11  3:05 [Marcus.Brinkmann@ruhr-uni-bochum.de: fonts on terminal?] Richard Stallman
2002-09-11  3:42 ` Miles Bader
2002-09-11  3:53   ` Marcus Brinkmann
2002-09-11  4:17     ` Miles Bader
2002-09-16  2:41 ` Marcus Brinkmann
2002-09-16 19:27   ` Richard Stallman
2002-09-19  3:42     ` Eli Zaretskii
2002-09-19  4:10       ` Miles Bader
2002-09-19 11:01         ` Eli Zaretskii
2002-09-19 18:57       ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.