[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to `start-process' in different terminal?

From: Eli Zaretskii
Subject: Re: How to `start-process' in different terminal?
Date: Tue, 24 Jun 2014 18:37:33 +0300

> From: Thorsten Jolitz <address@hidden>
> Date: Tue, 24 Jun 2014 12:41:08 +0200
> >> I would like to fallback to "fbgs" if it is nil on GNU/Linux,
> >> normally from an Emacs running inside a tmux session e.g. on tty.
> >
> > It depends on the frame, nowadays emacs can work BOTH on a terminal and
> > a X window at the same time:
> >
> > (frame-list) --> (#<frame PGM 0x39cff98> 
> >                   #<frame gnus at
> > 0x1172ab0>)
> >
> > So calling display-graphic-p is meaningless.
> hmm ... right now I try to live without X11, but before when I had one
> Emacs server running and several Emacsclients open, on the console and
> under X11, I used `display-graphic-p' successfully to determine
> background-color.

I don't understand why.  There's absolutely no relation between
display-graphic-p and the color capabilities of the frame's terminal.
There are graphic terminals that can only display shades of gray, and
there are text terminals that can display hundreds of colors.

There are other predicates and functions to query the terminal about
color support.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]