Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!bbn.com!levin From: levin@bbn.com (Joel B Levin) Newsgroups: comp.sys.mac.programmer Subject: Re: Wanted: Code for simple text interface Message-ID: <43528@bbn.COM> Date: 31 Jul 89 15:40:30 GMT References: <9674@phoenix.Princeton.EDU> Sender: news@bbn.COM Reply-To: levin@BBN.COM (Joel B Levin) Organization: BBN Communications Corporation Lines: 21 In article <9674@phoenix.Princeton.EDU> bskendig@phoenix.Princeton.EDU (Brian Kendig) writes: |A simpler way would be to ignore TextEdit. I can listen for characters and |echo them to the screen when I get them, and when I get a return or enter, I |can parse the line. Scrolling is a tad difficult and unwieldy, but that can |be overcome. The problem here is that when the user types delete, the delete |appears as a *character* on the screen - one of those little white rectangles. So don't just echo the characters, look at them. If you get a delete, don't echo it, erase the previous character. If you get a word-delete character (whatever you choose), don't echo it, erase the previous word, etc. terminal interfaces have been doing this for years! | |So, how do I do this? I want to have an IBM-style interface (hold your cries; |there's a method to my madness) in a window. There's got to be an easy way! I'll leave the flames to others, I sense them coming... /JBL = UUCP: levin@bbn.com (new) or {backbone}!bbn!levin (old) INTERNET: levin@bbn.com POTS: (617) 873-3463 "The night was"