T.R | Title | User | Personal Name | Date | Lines |
---|
1605.1 | I don't think you can | AYOV28::ATHOMSON | C'mon, git aff! /The Kelty Clippie | Thu Aug 18 1988 05:34 | 17 |
|
Yeah ! pain ain't it ? I have tried all sorts of things to no avail,
I've tried CSI - (chr$(155)+"1m"), I've tried PRINTing it directly
i.e. PRINT chr$(155)"1m", I've tried assigning it to a variable,
a$ = chr$(155)+"1m"
PRINT a$
Nothing worked !! (The little square that is printed before the
1m is simply how the character set handles "non-printing" characters
like the reverse question mark on a vt2xx).
I don't think AmigaBasic uses con: to handle the screen, it seems
to do all it's own screen handling (perhaps thats why all the screen
updating is soooo slooow).
Please post it here though, if you do find a way of getting escape
sequences to work.........
Alan T.
|
1605.2 | Open your own CON: window | TLE::RMEYERS | Randy Meyers | Thu Aug 18 1988 17:08 | 35 |
| The Amiga windowing system has three levels:
1. Intuition windows. These are the foundation of the windowing
system and support menus and gadgets.
2. Console.device windows. These windows are built on top of
intuition windows and support menus, gadgets, ANSI terminal
emulation. They are accessed through Exec message passing.
3. CON: windows. These are built upon console.device windows
(so they support ANSI terminal emulation), but AmigaDOS
provides a file-system type of access to them (instead of
message passing). Since these windows are supposed to act
like simple files, there is little provision for using gadgets
and menus with them (even though they are built on a foundation
that handles them!).
AmigaBasic uses Intuition windows (in a particularly brain-damaged way),
so the windows do not support ANSI escape sequences. (I have no idea
how AmigaBasic turns the fastest PC windowing system into the slowest.
Guess Microsoft programmers are just talented.)
Your might try opening a CON: window yourself and doing I/O to it rather
than using the default window. Something like:
open "CON:0/0/640/200" for output as 1
print #1, "Hello$[H";
Since I don't use AmigaBasic, I am guessing at the syntax. I used $
to stand for the escape character; you'll have to do the right thing
(suggested in the previous replies) in order to really get the character.
If possible, you will want to open the window for simultaneous input and
output. Don't know how you do that off hand. Look for applicable
keywords in the BASIC Manual like "update", "inout", "readmymind",
whatever.
|
1605.3 | I know it can re done... | SANFAN::BARRETODE | | Thu Aug 18 1988 18:55 | 15 |
| Thanks for the input. I'm not really crazy about Basic myself,
but until I figure out which is the best Pascal or Modula compiler
for the money, I'm stuck with it.
I suppose it's possible that AmigaBASIC can't do what I want but
the solution may turn out to be something not so obvious (as you
mentioned, opening CON: for output. That turned out to be the solution
to get my LA50 escape sequences to be recognized...had to open the
printer for output as SER: but you have to supply your own carriage
returns).
Thanks for the help.
Terry
|
1605.4 | | MTWAIN::MACDONALD | WA1OMM 7.093/145.05/223.58 AX.25 | Fri Aug 19 1988 11:41 | 2 |
| Speraking of BASIC, how does one alter the shape of the cursor in
a BASIC program?
|
1605.5 | Another Basic Programmer out of the Closet! | CGFSV1::WADLEIGH | Dave in Calgary, Alberta | Fri Aug 19 1988 14:28 | 15 |
| The secret to getting things like bolding, reverse video, italics,
and much more working is to open graphics.library and call the routines
within it. One can also then get at things like a function to clear
to the end of the line from the cursor position (&ClearEOL).
You will need to have or build the graphics.bmap file, open the
library, and define those functions you wish to use. Most of these
functions need to be passed a pointer to the current Raster Port,
and the pointer is obtained ala Pointer& = Window(8). See the
Window command in the basic manual for details.
Sounds complex, but once you've learned to access libraries once,
then you gain the ability to do many other Truly_Amazing things from
Basic.
|