From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to `start-process' in different terminal? Date: Tue, 24 Jun 2014 18:37:33 +0300 Message-ID: <831tues4hu.fsf@gnu.org> References: <87egyhnfzj.fsf@kuiper.lan.informatimago.com> <87lhsmmvy3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403624875 16044 80.91.229.3 (24 Jun 2014 15:47:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2014 15:47:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 17:47:48 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WzSwk-0003cP-Uh for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 17:47:47 +0200 Original-Received: from localhost ([::1]:60437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSwk-0002na-G9 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 11:47:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSn2-0007Hi-0f for help-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:37:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzSmv-00007K-0D for help-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:37:43 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:50720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzSmu-00006b-No for help-gnu-emacs@gnu.org; Tue, 24 Jun 2014 11:37:36 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N7O00500JD7ZH00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:37:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7O005S6JENWB60@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:37:35 +0300 (IDT) In-reply-to: <87lhsmmvy3.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98377 Archived-At: > From: Thorsten Jolitz > 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) --> (# > > # > 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.