[Info-vax] escape sequences, cursor positioning

JF Mezei jfmezei.spamnot at vaxination.ca
Sun Jan 11 10:08:18 EST 2009


Richard B. Gilbert wrote:

> I don't believe it's possible and even if it can be done, I doubt if the 
> result could possibly be worth the effort required.
> 


Say the field is 30 characters long. You set character attribute to
underscore, then write 30 spaces, then send an escape sequence to go
back 30 spaces. This is your prompt.  After the prompt completes you
press return, you first send an escape sequence to turn off the
underscore attribute.

This is not perfect though. If you do a delete-character while editing,
the underscored field becomes 29 bytes long.


So this is an approximation of what would be done by FMS for instance.



More information about the Info-vax mailing list