Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shells in Cygwin Xemacs on Win7

38 views
Skip to first unread message

General Schvantzkoph

unread,
Dec 16, 2011, 8:57:45 AM12/16/11
to
I'm trying to uses shells on a Win7 box, I'm a Linux user and I do all of
my work inside of Xemacs and I always use Emacs shells. I have Cygwin with
Xemacs on the box to make the system usable however shells are a mess, it
looks like more than just the end of line problem. I'm getting stuff like
this,

^]0;~^G

Is there something I can put into the init file to run a Windows shell
cleanly?

Henry S. Thompson

unread,
Dec 16, 2011, 2:51:35 PM12/16/11
to
General Schvantzkoph writes:

> I'm trying to uses shells on a Win7 box, I'm a Linux user and I do all of
> my work inside of Xemacs and I always use Emacs shells. I have Cygwin with
> Xemacs on the box to make the system usable however shells are a mess, it
> looks like more than just the end of line problem. I'm getting stuff like

That's your fancy prompt string. It won't work inside xemacs. You
need to change wherever you are setting up the PS1 environment
variable.

In my case I have
a) explicit-shell-file-name set to "/bin/bash";
b) my normal PS1 initialisation in .bashrc wrapped inside

if [ "$TERM" = 'emacs' ]
then
export PS1='\W> '
else
... # your existing PS1 code goes here, if any
fi

Hope this helps,

ht
--
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 651-1426, e-mail: h...@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged spam]
0 new messages