From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: how to display that a term is inside emacs Date: Wed, 04 Dec 2013 20:02:21 +0100 Organization: Informatimago Message-ID: <87haao1ltu.fsf@kuiper.lan.informatimago.com> References: <87pppcef7j.fsf@bye.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386183913 28639 80.91.229.3 (4 Dec 2013 19:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2013 19:05:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 20:05:20 2013 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 1VoHlA-0001jN-0U for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 20:05:20 +0100 Original-Received: from localhost ([::1]:49916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoHl9-00035q-0s for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2013 14:05:19 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-X-Trace: individual.net LTBdLRjF9ytIPwJmhvKsiAKcQTBhoL5g6ZbMdQ00ZDoVwVv+tb Cancel-Lock: sha1:ZGY5MGY5MTcyNjRjNzEyMGVkMWY2ZTQ3YTAzNDk1OTY0MTU4ZmExMg== sha1:MJiZEE4KOhcK9btY08reaiEPd8Y= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en Importance: high User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:202563 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:94832 Archived-At: henry atting writes: > On X I have no window decoration, emacs starts without mode-line, menu, > toolbar. One of the things I use emacs is as terminal emulator > (multi-term). So far, so good. > At times I open up rxvt-unicode as terminal emulator beside emacs. Both > look rather similar, no decoration, same background- same foreground > color. > > Is there a way to add something informative to the prompt (like the file > manager ranger does) or display somewhere else something like > `inside_emacs' for instance to indicate that this terminal is inside > emacs? TERM is probably different in the two terminal emulators. in M-x shell, TERM=emacs in M-x term, TERM=eterm-color I don't have M-x multi-term in xterm, TERM=xterm-256color I don't have rxvt-unicode. so you could have: export PS1="${TERM} ${PS1}" in your ~/.bashrc etc. -- __Pascal Bourguignon__ http://www.informatimago.com/