Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!tph From: tph@cs.utexas.edu (Pow-Hwee Tan) Newsgroups: comp.sys.mac.programmer Subject: TextEdit questions Message-ID: <9642@cs.utexas.edu> Date: 3 Jul 90 02:35:21 GMT Distribution: usa Organization: U. Texas CS Dept., Austin, Texas Lines: 25 I have a few questions about TextEdit: 1. TERec has two hooks for the programmer to put in his/her own text highlight routine. I suppose the same routine will be called to unhighlight text as well. Am I correct? 2. How do I get TextEdit to overwrite the character at the cursor position when I call TEKey, instead of inserting before the character? My current solution is to use TESetSelect to select the character at the cursor (actually the character in front of the cursor) so that when I call TEKey the character is replaced. This produce the undesired effect of highlighting the character, which I circumvent by putting in a highlight routine that does nothing in TERec. This seems clumsy, is there a better way to do it? Actually, I am writing a terminal emulation program; will I be better off not using TextEdit? Are there alternative TextEdit-type packages that will help solve my problem? Many thanks in advance. --p.h. tan, UT Austin CS Dept, tph@cs.utexas.edu