all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: On prompt in shell mode
Date: Thu, 14 Aug 2008 01:02:27 +0200	[thread overview]
Message-ID: <48A36803.6020908@alice.it> (raw)
In-Reply-To: <jwvhc9o7doi.fsf-monnier+emacs@gnu.org>

Stefan Monnier ha scritto:

> 
> I'm not sure we talk about the same thing.  I'm talking about running
>  your shell in a Linux console, or within `screen', or inside a Wyse 
> terminal (if you can find one these days).  I.e. without involving
> Emacs at all.

As I have written [1], defining

    PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

in /etc/profile or .bashrc works fine in RXVT, MRXVT, URXVT, XTERM,
(KDE)Konsole WITHOUT Emacs.

i.e. the code '\[\e]0;\w\a\]' prints the working directory as title of
RXVT, MRXVT... window; the remains gives the terminal prompt in the form

    blank line (\n)
    user AT host (in green) working directory (yellow)
    $ (white)

As reported here [2], the main problem Emacs meets is with the window
title '\[\e]0;\w\a\]' (and perhaps this is to be expected)

In any case, have you some comment on how to solve the other question I
pointed out in [2], i.e. setting in .emacs

    (setenv "PS1" "prompt>")

works, but

    (setenv "PS1" "address@hidden \w\n$ ")

doesn't: Emacs starts with errors:

    "An error has occurred while loading '[...]/.emacs':
     error: Non-hex digit used for Unicode escape"


Cheers,
Angelo.

---
[1] http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00536.html
[2] http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00556.html




  reply	other threads:[~2008-08-13 23:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12 14:05 On prompt in shell mode Angelo Graziosi
2008-08-12 14:10 ` adg
2008-08-12 14:17   ` Angelo Graziosi
2008-08-12 18:19 ` Chong Yidong
2008-08-13 10:03   ` Angelo Graziosi
2008-08-12 19:46 ` Stefan Monnier
2008-08-12 20:49   ` Angelo Graziosi
2008-08-13 20:42     ` Stefan Monnier
2008-08-13 21:55       ` Angelo Graziosi
2008-08-13 22:37         ` Stefan Monnier
2008-08-13 23:02           ` Angelo Graziosi [this message]
2008-08-13 23:17             ` David Hansen
2008-08-13 23:55             ` Stefan Monnier
2008-08-14  1:24               ` Angelo Graziosi
2008-08-14  8:50                 ` Angelo Graziosi
2008-08-14 10:22                   ` David Hansen
2008-08-14 13:21                   ` Angelo Graziosi
2008-08-13  6:26 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A36803.6020908@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.