Re: escape sequences, cursor positioning



JF Mezei wrote:

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.

Following up on the suggestion to set the terminal (program) to display
control characters rather than interpret them, I find myself
wondering...

1. Set the video attributes for an area of the display to underscore
whatever characters are there. (Begin underscore, send spaces, end
underscore.)

2. Use escape sequences to position the cursor into that area as part of
a /PROMPT string.

Will characters typed there be underscored?

Been a while since I played with that sort of stuff, but I seem to
recall All-In-One doing some of that via FMS.

So, JF - you still use A1 right? If you bring up such a form, then
switch your terminal (program) to display controls rather than interpret
them, what do you see? Do you see just the characters echoed, or are
they surrounded by the begin/end underscore sequences, respectively?

D.J.D.
.



Relevant Pages

  • Re: AD and Server names
    ... While it's true that the _ is a permitted character in Microsoft's DNS, ... including an underscore isn't RFC compliant:- ... "The labels must follow the rules for ARPANET host names. ... Labels must be 63 characters or less." ...
    (microsoft.public.windows.server.active_directory)
  • Re: Usename regex
    ... which have alphanumberic characters and one underscore. ... From what I understand is I can use a regex to do this. ... Think of a string, preferably very long that contains only alphanumeric characters, but end in a # sign. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Looking for good naming convention for class attributes
    ... > class attributes with a leading underscore. ... > underscores in the source code makes the job of following the ... two characters to convey that information when one will do, ... varibles with function scope should be 3-4 characters long, ...
    (comp.lang.cpp)
  • Re: AD and Server names
    ... on DNS and underscore characters may not be valid DNS characters. ... > Do the servers with an Underscore in the name have to be changed? ...
    (microsoft.public.windows.server.active_directory)
  • National characters dont show in docs from Windows
    ... characters such as והצי often display and print as underscore. ...
    (microsoft.public.mac.office.word)