From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: ["Jeff Sheinberg" ] re: emacs doesn't restore one's non X windows prompt Date: 01 Feb 2003 14:41:24 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <871y2ssdt7.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1044139984 9418 80.91.224.249 (1 Feb 2003 22:53:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 1 Feb 2003 22:53:04 +0000 (UTC) Cc: ncurses-term@packages.debian.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18f6VQ-0002RD-00 for ; Sat, 01 Feb 2003 23:53:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18f6Wh-0000Ak-05 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 01 Feb 2003 17:54:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18f6W4-000852-00 for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2003 17:53:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18f6Vo-0007K3-00 for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2003 17:53:27 -0500 Original-Received: from tx.symonds.net ([64.246.28.87]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18f6Vm-0007Dz-00 for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2003 17:53:22 -0500 Original-Received: from tc210-203-44-185.3-16.pl.ebtnet.net ([210.203.44.185] helo=jidanni.org) by tx.symonds.net with asmtp (Exim 4.04) id 18f6Vj-0000UC-00; Sat, 01 Feb 2003 17:53:21 -0500 Original-Received: from jidanni by jidanni.org with local (Exim 3.36 #1 (Debian)) id 18erLA-0002RV-00 for ; Sat, 01 Feb 2003 14:41:25 +0800 Original-To: bug-gnu-emacs@gnu.org Original-Lines: 40 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4370 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4370 --=-=-= Fellas, he has a fix. If this is a terminfo description bug too, then somebody please report it. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline From: "Jeff Sheinberg" Message-ID: <15930.64869.700577.841065@l1.bsrd.net> Date: Fri, 31 Jan 2003 17:49:09 -0500 To: Dan Jacobson X-Mailer: VM 7.07 under Emacs 21.2.1 X-Return-Path: jeff@bsrd.net Subject: re: emacs doesn't restore one's non X windows prompt MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===-=-=" --===-=-= Content-Description: message body text I have a fix for this problem, Gentlemen, in good old tty mode, outside of X windows, I have in .bashrc if test $DISPLAY$EMACS; then :; else #VGA-softcursor.txt says to get red non-blinking block prompt echo -e '\033[?17;0;64c' fi One must create an edited terminfo entry, so run the attached Makefile from your ~/.terminfo directory, --===-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=Makefile Content-Description: run make -f Makefile from your .terminfo dir, # Makefile - to make a modified terminfo entry for "linux". # # Note - run this Makefile from the ".terminfo" directory, # except for debugging, then run from "terminfo" instead. # # See "/usr/src/linux/Documentation/VGA-softcursor.tx" for details. # # 113 = 0x71 = 0x01 (set hardware cursor invisible) # 0x10 (apply software cursor) # 0x20 (set background color) # 0x40 (set foreground color) # Note - gpm point becomes invisible if on gray software cursor. # .PHONY: clean linux linux: # Get the source for the original "linux" entry. @TERMINFO=/etc/terminfo infocmp -1 $(@) >$(@).orig # Change the appropriate fields. @awk ' \ $$0 ~ "^\\tcivis=.*,$$" { sub(/=.*,$$/, "=\\E[?25l\\E[?1c,") } \ $$0 ~ "^\\tcnorm=.*,$$" { sub(/=.*,$$/, "=\\E[?25h\\E[?113c,") } \ $$0 ~ "^\\tcvvis=.*,$$" { sub(/=.*,$$/, "=\\E[?25h\\E[?113c,") } \ $$0 ~ "^\\trs1=.*,$$" { sub(/=.*,$$/, "=\\Ec\\E]R\\E[?113c,") } \ { print } \ ' <$(@).orig >$(@).new # Compile "linux.new" to "./l/linux". @TERMINFO=. tic ./$(@).new # De-compile new "./l/linux" over "linux.new" for diff listing. @TERMINFO=. infocmp -1 $(@) >$(@).new @diff -U 0 $(@).orig $(@).new ; test "$$?" -le "1" # Done - show terminfo database files. @rm $(@).orig $(@).new @find . -path './*/*' -print | sed -e 's/./\\&/g' | xargs ls -ld clean: rm l/linux rmdir l # Makefile - end of file. --===-=-= Content-Description: message body and .signature I didn't reply on Usenet because I am not yet setup to do so. HTH, -- Jeff Sheinberg --===-=-=-- --=-=-= -- http://jidanni.org/ Taiwan(04)25854780 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --=-=-=--