delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/14/11:29:31

Message-Id: <200209141529.g8EFTVH20003@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Sent: 14 Sep 2002 15:29:09 GMT
X-Newsgroups: gmane.os.cygwin
Subject: Mutt editor
From: news AT garydjones DOT mailshell DOT com
User-Agent: Xnews/4.11.09
X-No-Archive: yes
To: cygwin AT cygwin DOT com
X-Gate: Hamster/1.3.23.185 NewsToMail-Gate
Date: Sat, 14 Sep 2002 16:59:21 +0200

As I have mentioned before, I cannot persuade mutt to run in 
rxvt or an xterm (in the former case the window simply goes 
black, and iirc in the latter case it complains that it cannot 
determine the screen size, they may be one and the same problem, 
I don't know). Similarly, mutt and emacs don't want to live 
together on my computer. All in all I wasn't so happy - the 
normal terminal doesn't allow pasting (and jmacs doesn't seem to 
be interested in marking, copying, and pasting text either), 
which I find tiresome when editing emails.

A solution might be known by some of you for some or all of 
these problems, but I just put together a very short script to 
work around them. It is based on an excellent suggestion I saw 
here for starting rxvt from a shortcut (thanks, whoever it 
was!). Here is the script:
--begin--
#!/bin/bash

rxvt -name "joe" +ls -sr -sl 0 -tn rxvt -bg "#e0f0e0" -fg 
"#000040" -cr midnightblue -fn "Lucida Console-14" -geometry 
80x43+0+0  -backspacekey ^H -e jmacs $1
--end--
Simply change your editor setting in .muttrc to whatever you 
call the script.

The only downside I have found is a small delay when finishing 
the editing and returning to mutt.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019