Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA1443 ; Tue, 23 Feb 93 14:42:03 EST Xref: sserve comp.unix.bsd:11295 comp.unix.misc:6464 comp.unix.programmer:8235 comp.unix.questions:31315 comp.unix.wizards:28594 Newsgroups: comp.unix.bsd,comp.unix.misc,comp.unix.programmer,comp.unix.questions,comp.unix.wizards Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!zaphod.mps.ohio-state.edu!rpi!utcsri!newsflash.concordia.ca!cumin.telecom.uqam.ca!CC.UMontreal.CA!soubyran From: soubyran@ERE.UMontreal.CA (Soubyran Richard) Subject: pascal, tput, calling programs from within a program. Message-ID: <1993Feb15.164609.8596@cc.umontreal.ca> Sender: news@cc.umontreal.ca (Administration de Cnews) Organization: Universite de Montreal Date: Mon, 15 Feb 1993 16:46:09 GMT Lines: 44 Hello unixers! I have a simple question to ask... and maybe the answer will not be that simple! Anyhow... here we go... How can I call another program from within a program in pascal? Ex: program foo; begin ---> call tput('cup', 12, 12); end. My other problem: I've been trying to use the curses library from the pascal program but I keep getting core dumps as I run the program. Let us say I try to clear the screen using the curses clear and the "go to" a position on the screen using the 'move(x, y)' from curses. I do a refresh and everything goes well... except when I want to read from the standard input using read or readln procedure. the program doesn't put on the screen my string and when I want to read... it hangs and then I get a core dump! Before calling any curses function, I do call the initscr function and before quitting I do call the endwin function. Please HELP!!! If it's not possible to use successfuly curses and pascal together... how can I retrieve the terminal's name from within the pascal program from the environment list? Thanks in advance, Richard Soubyran Departement de biologie, Universite de Montreal soubyran@alize.ere.umontreal.ca