Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: jari DOT aalto AT poboxes DOT com (Jari Aalto+mail.emacs) To: cygwin AT cygwin DOT com Subject: Emacs bash terminfo problem - rl_prep_terminal:cannot get terminal settings Keywords: terminal,emacs,bash,w2kpicasso,shell,settings,root,warning X-Sender-Info: Emacs resources http://tiny-tools.sourceforge.net/ http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129 PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ Date: Sun, 13 Jan 2002 00:52:42 +0200 Message-ID: Lines: 42 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-*-nt5.0.2195) (i386-*-nt5.0.2195) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii After latest cygwin upgrade (5 weeks or so) I have started getting this weird error from Emacs. Does anyone know what can I do? The terminfo settings seesm to be in proper places: //root AT W2KPICASSO /usr/lib/terminfo $ infocmp emacs # Reconstructed via infocmp from file: /usr/share/terminfo/e/emacs emacs, am, gn, cols#80, bel=^G, cr=^M, cud1=^J, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, Now If I start this in plain vanilla Emacs (20.7 and 21.1): with M-x bash: (defun my-bash () "Runs the Cygwin bash shell" (interactive) (require 'comint) (require 'shell) (if (comint-check-proc "*bash*") (pop-to-buffer "*bash*") (let* ((shell-file-name "bash") (explicit-shell-file-name shell-file-name) (explicit-sh-args '("-login" "-i")) (w32-quote-process-args ?\"));; Use Cygnus quoting rules. (shell) (make-local-variable 'comint-completion-addsuffix) (setq comint-completion-addsuffix '("/" . "")) (rename-buffer (generate-new-buffer-name "*bash*"))))) The shell buffer prints bizarre output every time: readline: warning: rl_prep_terminal: cannot get terminal settings//root AT W2KPICASSO ~/elisp/rc $ readline: warning: rl_prep_terminal: cannot get terminal settings//root AT W2KPICASSO ~/elisp/rc $ echo $TERM emacs readline: warning: rl_prep_terminal: cannot get terminal settings//root AT W2KPICASSO ~/elisp/rc $ readline: warning: rl_prep_terminal: cannot get terminal settings//root AT W2KPICASSO ~/elisp/rc $ Any suggestions? This is irrating and makes shell unusable. Jari -- 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/