[Info-vax] escape sequences, cursor positioning
acid.friend at yahoo.de
acid.friend at yahoo.de
Sun Jan 11 03:49:54 EST 2009
hi everybody,
it might be interesting for you to read my previous topic:
http://groups.google.com/group/comp.os.vms/browse_thread/thread/37b3e5cca7467772#
in the meantime i managed to get a copy of vt100 user guide and i've
read the programmers part very carefully, because i want to code
something in DCL using ASCII escape sequences.
i've found out that some escape seqences work very well and other
don't work and now i'm trying to find some help here.
$ ty specfont.com
$!------------------------------------------------------------------------------
$! PLAYING WITH ESC
SEQUENCES
$!------------------------------------------------------------------------------
$!
$ esc[0,7] = 27
$ say = "write sys$output"
$ say esc+ "(0"
$ say " ssssssssss"
$ say esc+ "(A"
$ say esc+ "[3A"
$ read sys$command input1/prompt=" "
this works fine ^^
but when i modify the "$ say " ssssssssss" line and add a additional
escape seqence, it won't work.
$ ty specfontv2.com
$!------------------------------------------------------------------------------
$! PLAYING WITH ESC
SEQUENCES
$!------------------------------------------------------------------------------
$!
$ esc[0,7] = 27
$ say = "write sys$output"
$ say esc+ "(0"
$!
$! modified line below, added some spaces in front of the first s
$ say " ssssssssss"
$!
$ say esc+ "(A"
$ say esc+ "[3A"
$!
$! additional escape sequence below, want the cursor so move right
(this won't work)
$ say esc+ "[2C"
$!
$ read sys$command input1/prompt=" "
okay, that's my first problem.
besides i don't want the underscores/special characters to get
overwritten when i start typing.
is there any easy solution for this?
kind regards
More information about the Info-vax
mailing list