Up/Down Arrow Key prompts

Fairlight fairlite at fairlite.com
Mon Mar 10 08:27:17 PDT 2008


Confusious (George) say:
> Are you talking *nix filePro or Windows filePro?
> In Windows filePro there is definitely a way of showing the up, down and
> left and right arrow keys.
> ua="\r "&chr("17")&" \r"; da="\r "&chr("18")&"\r ";
> la="\r "&chr("23")&chr("14")&"\r ";ra="\r "&chr("14")&chr("24")&"\r ".
> An alternate to the right-arrow key is ra="\r "&chr("20")&\r " but there is
> no equivalent for the left-arrow key, so I rather use the
> chr("23"),chr("24") and chr("14") combinations.

17 was a left arrow, not an up arrow.
18 was a dual up/down arrow all at once, not one or the other.
24 to my surprise was an up arrow.  I sit corrected about cp437.
23 was an up/down arrow all at once with a line under it.

You did not provide a pure down arrow.  I'm assuming "da" was down arrow.
It isn't.  Not under WinXP Home.

As for this working on *nix, you'd have to be using an emulator that uses
codepage 437 for this to even remotely work.  Getting that to work in linux
involves kicking the kernel into the right mode by issuing an escape
sequence at some point, as it defaults to iso-latin-8859-1 mode.  The
actual sequences are in the kernel source, but I think they're something
like ^[(U and ^[(B to switch between them.  (The ^[ is actually an Escape
in each of those.)  I haven't had to use that since I dual booted, which
was at -least- 7 years ago, so give me a break as it's from very old memory.
If you're interested, look at console.c in the kernel source.  There are
four triggers, and they're documented.  And that only handles the console.
You'd still need to get an emulator that will honour cp437 for any
ssh/telnet work.

SCO...you're on your own--no clue on that detail here.  :)

mark->


More information about the Filepro-list mailing list