[Magic-dev] Font Gone Haywire

David Fang fang at csl.cornell.edu
Tue Oct 23 00:55:32 EDT 2007


> I'm having a hard time thinking up an explanation why Magic is
> trashing your terminal, but it's almost certain to be in
> TxSetTerminal(), or more specifically, the two functions it calls,
> txSetTermState() and txInitTermRec(), both in textio/txInput.c.
> It could be that an incorrect definition like SYSV may result in
> the attempt to write to a "termio" structure that is system-incompatible,
> so that modifying flags causes unexpected behavior.

Hi,
 	FWIW, I've seen this sort of thing happen to terminals before with 
other console programs (and only twice ever with magic-7.4, never with 
7.1) -- I'm not sure if magic is at fault.  Is this deterministically 
reproducible?  I've had difficulty reproducing it in the past, since (if I 
recall) it happened while trying to interrupt magic [^C] or kill magic. 
(This has even happened with simple text/console applications that don't 
do anything fancy with the host terminal.)

> This *shouldn't* happen in a Linux system, because version 7.1 was
> developed on Linux (among others), and major things like SYSV vs.
> BSD definitions and correct header files should be correct for all
> variants.  But there's always a chance that it could be something
> specific to Ubuntu or even your laptop hardware.


Fang

David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
 	-- (2400 baud? Netscape 3.0?? lynx??? No problem!)



More information about the magic-dev mailing list