Path: utzoo!utgpu!watmath!watdragon!bmacintyre From: bmacintyre@watdragon.waterloo.edu (Blair MacIntyre) Newsgroups: comp.sys.amiga Subject: Re: how to port programs which use curses/termcap? Message-ID: <13248@watdragon.waterloo.edu> Date: 12 Apr 89 00:41:30 GMT References: <479@jvc.UUCP> Reply-To: bmacintyre@watdragon.waterloo.edu (Blair MacIntyre) Organization: UofW Lines: 25 In article <479@jvc.UUCP> jonathan@jvc.UUCP (Jonathan Hue) writes: >which uses curses and termcap (termlib?). Before I start, does anyone >have any advice on how to deal with the curses and termcap stuff. One >obvious option is to port a curses and termcap clone to the Amiga, >another is to rip out all the curses stuff and put in something hard >coded for the Amiga. Anyway, I'd appreciate any advice anyone has to offer. I'd say the best bet is to write a curses library consisting of the functions you need. Get a curses manual and write simple functions to do the various stuff. I think it mostly involves keeping a "virtual map" of what you think the screen looks like, and updating what you think needs to be changed. To make it optimal might be fun, but since you are on a dedicated pc, who really cares? ( first pass, anyway! ) My friend did this for a program he was porting to his PS/2 and it wasn't too difficult. Blair -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = Blair MacIntyre, bmacintyre@watsol.{waterloo.edu, UWaterloo.ca} = = "Don't be mean ... remember, no matter where you go, there you are." BBanzai= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=