Jump to content
IGNORED

Correct way to detect 80-column output is being used?


Recommended Posts

What's the correct way to detect 80-column output is in use?  The goal is to correctly word-wrap output.

The simplest mechanism I can think of is to check if there is a mismatch between the vectors at $346 and $e406 and assume that it's because of an XEP80' like device.

 

Related, I read somewhere about a 64-column mode, but I can't find any specific details on this, if it's hardware related or something else.

 

Link to comment
Share on other sites

27 minutes ago, drac030 said:

Check the value of RMARGN, PEEK(83). 40 columns, RMARGN = 39. 64 columns, RMARGN = 63. 80 columns, RMARGN = 79.

 

Oh, of course.  That works.  I didn't even think to look there, for some reason I assumed the XEP80 driver didn't use this.

 

What hardware supports 64-columns?

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...