Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

definitions again (Developers)

posted by kerravon, Ligao, Free World North, 22.04.2024, 03:37

> What you have probably in mind is something similar to
>
>   switch (terminal_detected())
> {
> case VT_100:
> cursor_up_string = "\x1b[A";
> cursor_down_string = "\x1b[B";
> cursor_left_string = "\x1b[A";
> break;
>
> case EBCDIC_ANSI_X3.64:
> cursor_up_string = "\x27(J";
> ...
>


Also, this is wrong anyway.

The sequences are the same [A etc - regardless of
EBCDIC or ANSI - you just need to compile on the
appropriate platform - exactly the same as the
characters in "hello world" - they are resolved
to ASCII or EBCDIC by the compiler.

And it has been like that - forever.

The only issue is that there is no \e and ANSI X3.64
uses that character - rightly or wrongly - and I am
using that standard - rightly or wrongly.

BFN. Paul.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 146 users online (1 registered, 145 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum