unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* ["Jeff Sheinberg" <jeff@bsrd.net>] re: emacs doesn't restore one's non X windows prompt
@ 2003-02-01  6:41 Dan Jacobson
       [not found] ` <20030201232618.GB9357@bloatware.reston01.va.comcast.net>
  2003-02-08 17:48 ` ["Jeff Sheinberg" <jeff@bsrd.net>] " Daniel Jacobowitz
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Jacobson @ 2003-02-01  6:41 UTC (permalink / raw)
  Cc: ncurses-term

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Fellas, he has a fix.
If this is a terminfo description bug too, then somebody please report it.

[-- Attachment #2: Type: message/rfc822, Size: 2523 bytes --]

[-- Attachment #2.1.1: message body text --]
[-- Type: text/plain, Size: 370 bytes --]

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,


[-- Attachment #2.1.2: run make -f Makefile from your .terminfo dir, --]
[-- Type: application/octet-stream, Size: 1404 bytes --]

# 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.

[-- Attachment #2.1.3: message body and .signature --]
[-- Type: text/plain, Size: 88 bytes --]

I didn't reply on Usenet because I am not yet setup to do so.

HTH,
-- 
Jeff Sheinberg


[-- Attachment #3: Type: text/plain, Size: 45 bytes --]



-- 
http://jidanni.org/ Taiwan(04)25854780

[-- Attachment #4: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacs doesn't restore one's non X windows prompt
       [not found] ` <20030201232618.GB9357@bloatware.reston01.va.comcast.net>
@ 2003-02-04  2:17   ` Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2003-02-04  2:17 UTC (permalink / raw)


I got another view on this which i paste below.  Anymore views please
send directly to the list. I noticed the problem but I only use this
part of the system once a year hence...

>>>>> "T" == Thomas Dickey writes:

T> On Sat, Feb 01, 2003 at 02:41:24PM +0800, Dan Jacobson wrote:
>> Fellas, he has a fix.
>> If this is a terminfo description bug too, then somebody please report it.

T> this is a you-cannot-make-everyone-happy issue.
T> I have in linux terminfo:
T> 	civis=\E[?25l\E[?1c,
T> 	cnorm=\E[?25h\E[?0c,
T> 	cvvis=\E[?25h\E[?8c,
T> which annoys about 10% of the people who want to change their cursor
T> attributes.  The fix is to install a consistent one to override - as
T> he suggests.  However, the complaints mostly are along the lines of
T> ncurses-shouldn't-do-that-anyway.  emacs doesn't have to call curs_set,
T> which is not done automatically (unless I'm overlooking something).
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ["Jeff Sheinberg" <jeff@bsrd.net>] re: emacs doesn't restore one's non X windows prompt
  2003-02-01  6:41 ["Jeff Sheinberg" <jeff@bsrd.net>] re: emacs doesn't restore one's non X windows prompt Dan Jacobson
       [not found] ` <20030201232618.GB9357@bloatware.reston01.va.comcast.net>
@ 2003-02-08 17:48 ` Daniel Jacobowitz
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-02-08 17:48 UTC (permalink / raw)
  Cc: ncurses-term

On Sat, Feb 01, 2003 at 02:41:24PM +0800, Dan Jacobson wrote:
> Fellas, he has a fix.
> If this is a terminfo description bug too, then somebody please report it.

> Date: Fri, 31 Jan 2003 17:49:09 -0500
> From: "Jeff Sheinberg" <jeff@bsrd.net>
> Subject: re: emacs doesn't restore one's non X windows prompt
> To: Dan Jacobson <jidanni@dman.ddts.net>
> X-Mailer: VM 7.07 under Emacs 21.2.1
>  X-Return-Path: jeff@bsrd.net
> 
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,
> 

I'd say it isn't a terminfo bug.  If you want cnorm etc. to restore a
modified cursor, then you have to modify them; that's all there is to
it.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-08 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-01  6:41 ["Jeff Sheinberg" <jeff@bsrd.net>] re: emacs doesn't restore one's non X windows prompt Dan Jacobson
     [not found] ` <20030201232618.GB9357@bloatware.reston01.va.comcast.net>
2003-02-04  2:17   ` Dan Jacobson
2003-02-08 17:48 ` ["Jeff Sheinberg" <jeff@bsrd.net>] " Daniel Jacobowitz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).