Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

ANSI escapes for input (Developers)

posted by mbbrutman Homepage, Washington, USA, 27.07.2023, 04:51

Hey, it's OK to make old software and machines do unreasonable things. I'm not arguing with you about the merits of that; it's your project and not my business. I'm just pointing out that it's not in ANSI.SYS or any other device driver I know of for DOS because that's not how DOS software at the time used the keyboard.

Usually if you want to write something that runs on multiple platforms you include some sort of compatibility layer that hides the machine specifics, like the curses library on Unix. Trying to bend the various OSes to your will is a very different approach. For DOS specifically you'll need a device driver that intercepts the BIOS routine and generates the ESC sequences that you are looking for. Which will be fine while you are in your program, but that device driver will interfere with other DOS programs. Which is probably why a device driver that remaps the cursor keys like that doesn't exist.

---
mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP

 

Complete thread:

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