HDTenEightyP/NetNews huggingface dataset:
From: wcwang@moose.cs.indiana.edu (Bill Wang)
Newsgroups: comp.lang.pascal,comp.sys.ibm.pc.programmer
Subject: writeln for graphical modes
Date: 14 Sep 92 17:19:30 GMT
Organization: Indiana University, Bloomington

Does anyone know how to do char string (array of chars) output on
the screen in various graphical mode in a PC such as EGA, VGA, SVGA, etc...
using Microsoft Pascal?

I couldn't find any reference in Microsoft's manuals and couldn't seem
to find any book specific for MS Pascal either?  


Any help or point would be greatly appreciated!



-- 
Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
Internet = wcwang@cs.indiana.edu
From: snodgras@cs.unca.edu (Ryan Snodgrass)
Newsgroups: comp.lang.pascal
Subject: Help with TP 6.0/System calls
Date: 6 Sep 92 19:15:46 GMT
Organization: University of North Carolina at Asheville

Does anyone know how to get ANY of the following information:

	o  Whether the installed mouse is a BUS or SERIAL mouse.

	o  BIOS Manufacturer (Pheonix for example) 

	o  Coprocesser type (i.e. 80387, 80487, etc.)

	o  Processer type up to 80486

	o  Processer speed (i.e. 7.8Mhz, 16Mhz, 20Mhz, 25Mhz, etc.)

	o  Video adapter type up to Super VGA or XGA (including Targa, etc
	   if possible)

	o  What kind of DOS is installed (i.e. MSDOS, PC-DOS, DR-DOS, etc.)

	o  Drive type for both floppies and hard disks (the number associated
	   with it, i.e. 2 is often a 1.2 meg floppy, 4 a 1.44 meg, etc.)

	o  The number of heads on a disk drive

	o  Serial port address (i.e. COM1 = 03F8, COM2 = 02F8, etc.)

	o  Conventional memory information:
		total installed conventional memory
		bytes available to MS-DOS
		largest executable program size

	o  If a sound card has been installed, and if so, what kind.

	o  How to check for a SoundBlaster

	o  Has a hand scanner been installed, what kind

	o  BIOS information other than date


Thanks, I will post a followup article in the next week or so of the answers
I get since I think a lot of programmers might find this info useful.  Thanks
again,

Ryan Snodgrass
snodgrass@uncavx.unca.edu
snodgrass@unca.bitnet
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: Big problem with graphicmode in TP 6.0
Date: 10 Sep 92 22:36:18 GMT
Organization: Ericsson Network Systems, Inc.

In article <1992Sep10.162625.167@csghsg5a.bitnet> 89612048s@csghsg5a.bitnet writes:
>From: 89612048s@csghsg5a.bitnet
>Subject: Big problem with graphicmode in TP 6.0
>Date: 10 Sep 92 16:26:25 GMT

>Problem with graphics in TP 6.0

>I have written a nice graphical enviroment for my programs.
>Unfortunatly when I was going to write my first program with
>my new units it crashs very heavily! After initalising the
>graphicmode with INITGRAPH (gd,gm,'C:\pascal') (where gd=detect,
>and the graphicmodus will be VGA 640x480x16 on a SVGA Oak-Graphic
>board with 512 KByte) and drawing some boxes and writing some text
>I try to get some input by using the readkey command as followed:

>var t,tt:char;

>t:=readkey
>if keypressed then tt:=readkey
>else tt:=#0;

>when I debug the program it works perfect until the first line of
>t:=readkey.

>then a - ^C - appears in the upper left corner of the screen in graphicmode
>and that's it. Nothing works anymore, neither CTRL-BREAK nor CTRL-ALT-DELETE.
>I have to turn off the computer. In the beginning it was possible to abord
>by pressing ctrl-break several times and an errormessage appears complaining
>that the overlaymanager is no installed. Well i never defined any overlay
>(all I used was - uses crt,graph; -). But this was just at the beginning
>now it does not work anymore either.

>My question is, what is going wrong?! Is it my mistake or some bug in TP 6.0.

The bug is that the error message is erroneous.  I have had this problem 
before, and the problem is actually something else.  Turn on all debugging, 
stack, range, and io checking, and make sure you are not overwriting code
anywhere.  I'm not sure exactly what is happening to you, but when I got
that message I was trying to run a procedure by a pointer that was not 
initialized.

One more hint.  When you turn on the compiler switches, do a Build All, and
also make sure you have some memory available for the BGI drivers.  I have
had trouble using bgi with {$M xxxx,0,0}.  A reasonable setting might be
{$M 8192,32768,32768}.  Good luck.
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - Douglas Adams
  - Patrick Taylor                                       (Arthur Dent)
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
Newsgroups: comp.lang.pascal
From: phfrom@nyx.uni-konstanz.de (Hartmut Frommert)
Subject: Re: Executaing another program in Turbo pascal...How?
Organization: Dept. of Physics, University of Constance
Distribution: all
Date: Thu, 10 Sep 1992 16:32:31 GMT

jhurwitz@access.digex.com (j. hurwitz) writes:
..
>Is the Exec procedure supposed to bring up the program you tell it to run?.

>How does the command line receive the string from Turbo that executes the 
>program?.

Look at your reference guide. In TP 6.0 you should enclose the "Exec" call
in "SwapVectors; Exec(...); SwapVectors;" because TP occupies some interrupt
vectors. Also you should include the "$M" compiler directive to define a
maximal heap size, because otherwise TP reserves all RAM for its heap so
that the prog you call can't be loaded. Moreover, if run in connection with
Novell networks, you must use versions > 2.01-2 of Novell network.

All that should be sufficient to run a .EXE or .COM file. If you want to run
a .BAT file, you should pass this as a parameter to COMMAND.COM (or
"GetEnv('ComSpec')" ), i.e.
  Exec(GetEnv('ComSpec'), '/c MyBat.BAT Parm1 Parm2');

Hope this helps.
--

  
 Hartmut Frommert, Physics, Univ of Constance, | + Whale killing is murder. +
 P.O.Box 55 60, D-W-7750 Konstanz, Germany | + Eat whale killers, not whales.
 E-Mail: <phfrom@nyx.uni-konstanz.de>
+    "Windows NoT" expands in German to "Windows Noch Teurer"
+                                                ^even   ^more expensive
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: GIFs in TP
Date: 9 Sep 92 16:13:39 GMT
Organization: Ericsson Network Systems, Inc.

In article <1992Sep8.160425.10434@cs.nott.ac.uk> eazcdr@unicorn.nott.ac.uk (C.Rudd) writes:
>From: eazcdr@unicorn.nott.ac.uk (C.Rudd)
>Subject: Re: GIFs in TP
>Date: 8 Sep 92 16:04:25 GMT

>A GIF file reader in TP?
>Just what I always wanted!

>Chris Rudd

If someone will supply me the info on decompressing the image, I will write
it.  I have the doc on GIF formats, but I'm still not so sure about Lempel-
Ziv compression.  I'm working on it, though...
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - D Adams
  - Patrick Taylor
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    alternately, exuptr@ZGNews.Lonestar.Org
From: holland@matt.ksu.ksu.edu (Rich Holland)
Newsgroups: comp.lang.pascal
Subject: Re: I need a project idea
Date: 13 Sep 1992 18:31:56 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

wct@po.CWRU.Edu (William C. Thompson) writes:

>10-15 hours?  This must be a small project.  Hell, some bugs I've
>had took 10-15 hours to find. 

Me too!  Especially those dealing with pointers!  I've got a DBMS program
written entirely in TP5.5 that I wrote about a year ago, and I had to
debug some things this fall.  For some reason, my Edit-A-Record routines
weren't working right -- they didn't save the data out, but seemed to be
creating separate records in the data file.  I found that I was saving
them to Pos -- the position the record was "found" in the index file --
in the data file, instead of seeking to FilePos -- the position in the
data file that the index file points to.  What a bummer.  Totally trashed
the data file and had to start over.  :-(

-- 
Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
100 Jardine Terr, Apt A7  | BITNET  : holland@ksuvm
Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
From: halpin@vax.oxford.ac.uk
Newsgroups: comp.lang.pascal
Subject: Re: Opinions on case sensitivity in programming languages?
Date: 11 Sep 92 10:54:29 GMT
Organization: Oxford University VAX 6620

tswingle@oucsace.cs.ohiou.edu (Tom Swingle) writes:

> ...  1.  Do you prefer programming in a language which is case-sensitive
> or case- insensitive (or does it even make a difference to you), and
> why?

To my mind, case sensitivity in a programming language or an
operating system is low-level thinking. The point of view is,
effectively, ``we've got this byte here, why waste 26 of its
values?'' This is letting the computer architecture dominate the
user interface in a counter-intuitive way. 

In operating systems (***x), the one hard advantage of case
sensitivity is to allow a greater variety of key values. But this
has weight only if we need to assume a very minimal common
keyboard, a state of affairs that no longer exists, given that
almost every user will have access to at least a VT100 emulator.

For f and F to have separate meanings is useful, if users are
working with dumb terminals, but given even Kermit, I prefer
function keys to do things, and typing keys to type.

Someone, I think it's Bob Beauchaine, has a sig to the effect that
C combines the power of assembly language with the flexibility of
assembly language. Case sensitivity is a prime example.

Brendan

Brendan Halpin                    Email: HALPIN@VAX.OXFORD.AC.UK
Nuffield College                  Phone: +44 865 278642
Oxford OX1 1NF
United Kingdom
Newsgroups: comp.lang.pascal
From: v923106@vms.ucc.okstate.edu
Subject: Memory sizes for programs?
Organization: Oklahoma State University Computer Center
Date: Tue, 15 Sep 1992 05:27:30 GMT

I would like to know how to figure out how much memory a program compiled with
turbo pascal would use. For example, when you buy a software package, it states
somewhere on the box how much memory is needed to run it on your computer. If I
write a program in pascal and I am using many variables, records, and units,
how do I figure out how much memory my program needs in order to run properly.
Is there shareware out there that can figure this out???
From: gysin1@urz.unibas.ch
Newsgroups: comp.lang.pascal
Subject: Re: TVGraph compilation problems
Date: 11 Sep 92 01:19:10 MET
Organization: University of Basel, Switzerland

In article <1685CD9C3.B249236@vmtecqro.qro.itesm.mx>, B249236@vmtecqro.qro.itesm.mx (Elite of the NetWork) writes:
> I recently got TVGraph from wuarchive from the /tvision directory, but
> when I tried to compile it under Turbo Pascal 6.0.  I get a error msg
> from a undefined var or type.   Also the stxy.tpu file doesnt work under
> Turbo Pascal 6.0
>  
>   Anyone knows where I can get a fix for tvgraph or a new version?
>  
>  
>                                        Thanks in advance


Infortunately I can't completely reproduce your problem. You seem to have got a
working version of TvGraph.

Check your code for following points:

	1. Be sure, that you have inserted 'USES TVGRAPH' at the beginning
	   of your main source file.

	2. Does your code manipulate graphics or does it write directly to
	   the screen ?

	3. Have you selected the compiler directive {$X} ?
	   (I'm not sure if TvGRaph uses some procedure types...)

	4. Is TvGRaph properly installed ? (HAve a look at READMEs)

I hope you can get it working...

Philipp Gysin
Internet : Gysin1@urz.unibas.ch

University of Basel, Switzerland

----------------------------------------------------------------------------
"I tried C++ but I didn't inhale...."
----------------------------------------------------------------------------
From: "jeff zeitlin" <jeff.zeitlin@execnet.com>
Newsgroups: comp.lang.pascal
Subject: retrieve cmd line
Date: 8 Sep 92 22:37:14 EST
Reply-To: "jeff zeitlin" <jeff.zeitlin@execnet.com>
Distribution: comp
Organization: Executive Networks Information

JF::>>Hi!
  ::>>
  ::>> >  vmoe>   How could one retrieve the on-line program
  ::>> > parameters,
  ::>> >  vmoe> such as the program name, or the whole command
  ::>> > string
  ::>> >  vmoe> from within the pascal program  ?
  ::>>
  ::>>Do this, it should work, although I've never tried it <G>
  ::>>

  [Omitted for brevity]

  Your solution only works if he is using Turbo Pascal on an IBM-PC
  compatible system.  If he is using Microsoft Pascal on a MS-DOS
  system, he must use a completely different method.  On a *IX system
  he would use yet a third method.  If he is using Standard Pascal,
  there doesn't appear to ba any way to do the job.  Before this
  question can be answered, we will have to know more about the
  environment in which he wants to accomplish this goal.

  J/
  jeff.zeitlin@execnet.com

 * OLX 2.2 * People who live in glass houses shouldn't.
--
Executive Network Information System  (914) 667-4567
International ILink Host
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: Turbo Pascal 7.0
Date: 15 Sep 92 15:16:02 GMT
Organization: Ericsson Network Systems, Inc.

In article <1992Sep15.052059.1511@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:

>It will be interesting to see whether TP 5.5 / 6.0 / 7.0 will
>parallel the MsDos 3.3 / 4.0 / 5.0 phenomenon.  (From a useful
>alternative to a cumbersome and bloated upgrade back to a much more
>sensible alternative). 

Yes, but what I want to know is how to get on the beta list ;-)
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - Douglas Adams
  - Patrick Taylor                                       (Arthur Dent)
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Turbo Pascal 7.0
Organization: Queen's University
Date: Wed, 16 Sep 1992 00:57:43 GMT

In article <1992Sep15.200311.24117@exu.ericsson.se> exuhag@exu.ericsson.se (James Hague) writes:
>By cleanup I mean more effort in bug-fixes and improving the existing
>environment than on adding new things.  I'm afraid that Borland
>is going to fix only some of the known bugs while introducing many
>more.  But there will be all sorts of nifty new things like color
>syntax highlighting and additional IDE features, etc.

I've got that big list of bugs I'd like to see fixed.  All of them have been 
reported to Borland, but I'm sure they disagree with me about whether some 
are bugs, and others will probably lose the triage competition.  Still, I'm 
hopeful that at least the worst ones will be fixed.

>I guess my main complaint is with the TP 6.0 IDE.  It has a lot
>of features, yes, but IMO it doesn't seem very well thought-out.
>It seems more an attempt to provide an entire windowing environment
>than something tuned for developing programs.  Just tacking
>stuff on isn't going to help matters any.  TP is changing from
>a well-designed tool into a way of life.

There are some real irritating things in the IDE, but I find I use it more 
and more.  I'm less hopeful about the irritants being removed, because some 
of them seem to be by design - the awful default for searches, the 
disappearing option dialogs.

Duncan Murdoch
dmurdoch@mast.queensu.ca
Newsgroups: comp.lang.pascal,alt.msdos.programmer
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: 3 questions
Organization: University of Vaasa, Finland
Date: Sun, 13 Sep 1992 16:13:44 GMT

In article <1992Sep13.013355.28536@wheaton.wheaton.edu> gmribeir@david.wheaton.edu (Glauber) writes:
>In fact there is at least one such utility in pcmag. Not
>very long ago, maximum about 2 years ago, i think. I don't
>remember the name, but it could have been "command recall"
>or something similar.

Yes, indeed.  My recall :-) is the same.  The /pc/pcmag index at
Garbo should show a program with that name.

   All the best, Timo

..................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
Newsgroups: comp.lang.pascal
From: tech@crash.cts.com (Don Bontemps)
Subject: Re: I need help with copying "records"
Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
Date: 08 Sep 92 20:11:58 PDT

In article <92252.103512BOYDJ@QUCDN.QueensU.CA> Jeff Boyd <BOYDJ@QUCDN.QueensU.CA> writes:
>
>tech@crash.cts.com (Don Bontemps) wrote:
>>
>>This question is regarding the manipulation of record arrays.  Suppose I
>>declare the following record array:
>>
>  ...
>>
>>Now if I wanted to copy data[1] to data [2], could I just say
>>data[2] := data[1] or would I have to do it this way
>>data[2].name := data[1].name and so on and so forth.  Your help
>>would be greatly appreciated.  Thanks (in advance).
>>
>
>
>When you tried it both ways, what happened?
>
>
>jeff
>

I figured it out already.
From: kilgore@sage.cc.purdue.edu (Michael Kilgore)
Newsgroups: comp.lang.pascal
Subject: RS232 ports and Modems
Date: 13 Sep 92 19:03:17 GMT
Organization: Purdue University Computing Center

Being that this maybe a FAQ, but since I haven't seen a FAQ for this newsgroup,
I am going to ask anyways.  I have written some functions that write, 
initialize, and get the status of RS232 ports or a modem using registers and 
calling the bios interrupt $14.  My problem is: I can't figure out how to read
from the port.  I tried using the same method as I did with the other functions,
Is there someway I can read from these ports or am I out of luck?  Also, is
there an easier way to read and write to these ports?

Any help would be appreciated.

PS:  BTW, I am using Microsoft's QuickPascal which I think is supposed to be
compatible with Turbo Pascal.
Newsgroups: comp.lang.pascal
From: hammer@pcuf.fi (Mikko Uromo)
Subject: Setting the cursor off
Organization: PCUF
Date: Sun, 13 Sep 1992 08:24:08 GMT

Hello! Could someone help me and tell that how can I set the cursor off with
TP 6.0? I had an example of it, but as usual, I accidentally erased it. :(
My example was in Assembler, but I used it with TP.
Newsgroups: comp.lang.pascal
From: gabriel@netcom.com (Gabriel Beccar-Varela)
Subject: Documentation for HELPFILE.PAS (Turbo Vision) 
Date: Tue, 08 Sep 92 05:30:42 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 



I am looking for documentation and/or sample apps for HelpFile.Pas. 
I would greately appreciate any suggestions.
 
Thank you,
 
Gabriel

Xref: sparky comp.lang.pascal:5312 alt.msdos.programmer:2344
From: holland@matt.ksu.ksu.edu (Rich Holland)
Newsgroups: comp.lang.pascal,alt.msdos.programmer
Subject: 3 questions
Date: 10 Sep 1992 20:38:03 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

Question 1:
-----------
  How do I determine if the user is at the command line?  I've been thinking
  about writing a TSR to intercept keypresses at the DOS command line and
  expand TABs to full filenames (like tcsh does).  

Question 2:
-----------
  In general, what's the most efficient (fastest) way to search for a small
  string inside a larger one (or for a group of say 5 bytes in a group
  of say 1000 bytes)?
  
  I'd thought of something like this:

  For i:=1 to Length(String2)-Length(String1) do       
    Begin
    If String1=Copy(String2,i,Length(String1)) then {we found it}
                                                    { so quit for-loop }
    Else { keep looking }
    End;

Question 3:
-----------
  I know how to detect if redirection is in effect (so don't send me the
  FAQ, Timo!  *grin*), but how do I let my programs use this?  I'd like
  to write a "File filter" that could be used like this:

    type filename.txt | myfilter > newfile.txt     

               or

    myfilter filename.txt > newfile.txt

  In other words, I'd like to figure out where my input is coming from, 
  and open a file if necessary, or just take what's passed to me via the
  pipe (if there is one)...does that make sense?


-- 
Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
100 Jardine Terr, Apt A7  | BITNET  : holland@ksuvm
Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
From: eazcdr@unicorn.nott.ac.uk (C.Rudd)
Newsgroups: comp.lang.pascal
Subject: Re: GIFs in TP
Date: 8 Sep 92 16:04:25 GMT
Organization: Cripps Computing Centre, University of Nottingham

A GIF file reader in TP?
Just what I always wanted!

Chris Rudd
From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
Newsgroups: comp.lang.pascal
Subject: Re: Ctrl-Break in TP 6.0 programs
Date: 10 Sep 92 16:45:52 GMT
Organization: Ericsson Network Systems, Inc.

In article <5341@tuegate.tue.nl> erik@blade (Erik Manders) writes:

>Hello,

>When I write a program in Turbo Pascal 6.0, it is always possible to
>interrupt it by pressing Ctrl-Break. I don't want this to be possible,
>so is there anybody who knows what I have to do to prevent this.

*Sigh*
uses crt;
....
begin
...
Checkbreak := false;
 ----------------------------------------------------------------------------
    "This must be Thursday.  I never could get the hang of Thursdays"
                                                       - Douglas Adams
  - Patrick Taylor                                       (Arthur Dent)
    Ericsson Network Systems
    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
    or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
Newsgroups: comp.lang.pascal
From: g92k4260@ru.ac.za (Bryan Kilian)
Subject: Compression
Reply-To: csbk@alpha.ru.ac.za
Organization: Rhodes University, Grahamstown, South Africa
X-Newsreader: Tin 1.1 PL5
Date: Mon, 14 Sep 1992 15:24:39 GMT

I'm looking for a TP5.5 routine that will compress and uncompress text. Is
there anything like that out there? 

Thanks
Bryan

/////////////////////////: csbk@alpha.ru.ac.za ://////////////////////////
// Bryan Kilian        // This universe never did make sense, I suspect //
// Rhodes University   // that it was built on government contract.     //
// South Africa        //                            - R. A. Heinlein   //
//////////////////////////////////////////////////////////////////////////
   Disclaimer: This message is a product of my own warped imagination
Xref: sparky comp.lang.pascal:5374 alt.msdos.programmer:2364