Before You Post, Please Note...

-> Please Note: By Posting, you agree to submit the contents of your post to the Public Domain <- SEE: howto post to this blog

Friday, February 2, 2007

puppybasic intro ch. 06 - more with text

green text is being edited and should not be considered  
relevant to the tutorial.
for a while, it will make up
the bulk of this section.

black text has been edited to be more accurate with
regards to puppybasic.

........................................................................
more with the text screen
1 of 7




an intro to puppybasic

chapter 6: more with text







........................................................................

........................................................................
more with text
2 of 7

with PRINT, COLOR, and CLS already covered, here are some more ways to
work with the text-only screen:

LOCATE y
will tell puppybasic to start printing on row y of the screen.

or

LOCATE y, x
well tell puppybasic to print at row y, column x. x is usually 1 to 80.



........................................................................

........................................................................
more with text
3 of 7

though it flies in the face of cartesian graphs, descartes was a bit of
a jerk after all, and it makes enough sense to address text as row,
column. the LOCATE command lets you do this, but you may not be able to
do anything on the bottom row (this tends to be the 25th one) unless
your PRINT command uses a semicolon;

LOCATE 25, 1
PRINT "print with a semicolon on the end to print on the bottom row.";

________________________________________________________________________
_print with a semicolon on the end to print on the bottom row.__________


........................................................................

........................................................................
more with text
4 of 7

also, making the cursor fly back and forth can be sort of annoying, so:

LOCATE y, x, 0 ...makes it go away and (when you want it to show where
someone is going to be typing, for instance)

LOCATE y, x, 1
makes it come back.






........................................................................

........................................................................
more with text
5 of 7

now that you are thinking in terms of coordinates,

CSRLIN
represents the row the cursor is on, and

POS(0)
represents the column. if you print something to the screen, let
a = CSRLIN and b = POS(0), LOCATE to some point on the screen (say the
top lefthand corner,) PRINT something there and then LOCATE a, b, you
will then pick up where you left off. this sort of thing can be useful
for status bars.


........................................................................

........................................................................
more with text
6 of 7

VIEW PRINT

is odd but i find it useful: where the text-only screen usually has 25
rows, you can force smaller ranges. VIEW PRINT 10 to 17 keeps the text
currently displayed on all 25 lines, but when you print within lines 10
to 17 it will only scroll within (and change) lines 10 through 17.

q = SCREEN (y, x)
will set the variable q to the ascii value of whatever character is at
position y, x, so that you can not only print to the screen, but read
from it as well.


........................................................................

........................................................................
more with text
7 of 7

WIDTH columns, rows

can be useful, but what you can enter as acceptable values for columns
and rows depends on what screen mode you're using. in text only mode,

WIDTH , 50
gives you twice as much top-down room to work with (try 43 too), but

WIDTH 40 (horizontal) doesn't work reliably. this is covered later with
the SHELL command.
-= end of chapter 6 =-


........................................................................
an intro to puppybasic (chapter 6)
this content is public domain.
........................................................................


click here to go back to the contents page

20 comments:

Anonymous said...

xanax 2mg what is xanax 2mg for - long does 2mg xanax last

Anonymous said...

xanax online xanax 2 mg recreational use - tiny.cc/xanax-online-sales

Anonymous said...

generic tramadol tramadol withdrawal while pregnant - buy tramadol in usa

Anonymous said...

buy tramadol online no prescription tramadol injection - online pharmacy tramadol cheap

Anonymous said...

carisoprodol 350 mg soma carisoprodol 250 mg - there generic carisoprodol

Anonymous said...

xanax online xanax bars negative side effects - xanax side effects dry eyes

Anonymous said...

carisoprodol 350 mg soma = carisoprodol tablets 350 mg - carisoprodol 350 mg wat

Anonymous said...

cheap tramadol tramadol long term side effects - tramadol veterinary

Anonymous said...

xanax online pills not take xanax - xanax overdose many

Anonymous said...

buy cialis with dapoxetine can you order cialis - generic cialis made

Anonymous said...

buy xanax online xanax for anxiety and stress - xanax pregnancy

Anonymous said...

cialis online order cialis online from usa - generic cialis fda approved

Anonymous said...

buy tramadol online cheap help with tramadol addiction - tramadol veterinary dosage chart

Anonymous said...

buy tramadol online tramadol causes high blood pressure - tramadol dosage euphoria

Anonymous said...

http://landvoicelearning.com/#57594 buy tramadol cod overnight delivery - ultram tramadol 100mg

Anonymous said...

buy tramadol order cheap tramadol-overnight - tramadol 50mg better than vicodin

Anonymous said...

buy tramadol online tramadol y alcohol - order tramadol health solutions network

Anonymous said...

http://reidmoody.com/#65473 side effects getting off ativan - ativan buy online no prescription

Anonymous said...

buy tramadol online buy generic tramadol online - tramadol hcl er 150

Anonymous said...

xanax price michael jackson xanax dosage - xanax 2mg xr