Menu

Windows Color schemes in vDos?

General
Anonymous
2014-12-27
2015-05-13
  • Anonymous

    Anonymous - 2014-12-27

    Please forgive my ignorance -- I don't understand the use of color as explained in config.txt -- but is it possible to replicate Windows colors schemes in vDosxy?

    For example, I'm trying to get black text on a 237,241,243 background -- which for me produces less eye strain than what I'm now using (green text on black). Is this possible?

     
    • Jos Schaars

      Jos Schaars - 2014-12-27

      With COLORS = you can set how the 16 DOS colors are displayed.
      You can use it to let green display as black and black as 237,241,243:
      COLORS = #edf1f3 #0000aa #000000 #00aaaa #aa0000 #aa00aa #aa5500 #aaaaaa #555555 #5555ff #55ff55 #55ffff #ff5555 #ff55ff #ffff55 #ffffff
      But this way all black is displayed as 237,241,243 (#edf1f3 hexadecimal), background, foreground, text, menus…
      You would first have to select/set a color scheme in XyWrite that most closely satisfies your needs and then eventually tune some individual color in config.txt.
      And of course, Windows colors schemes have no relevance with XyWrite color schemes.

      Jos

       
  • Anonymous

    Anonymous - 2014-12-29

    Thanks.... That color command, and a MD NM=2 command in the xywrite printer file, which would ordinarily produce green characters on a black background, does yield black text on an off-white background.

     
  • Anonymous

    Anonymous - 2015-05-12

    rem 0 - Black 1 - Blue 2 - Green 3 - Aqua 4 - Red 5 - Purple 6 - Yellow 7 - White 8 - Gray 9 - Lt Blue 10 - Lt Green 11 - Lt Aqua 12 - Lt Red 13- Lt Purple 14 - Lt Yellow 15 - Bright White
    COLORS = #000000 #000080 #008000 #008080 #800000 #800080 #808000 #c0c0c0 #808080 #0000ff #00ff00 #00ffff #ff0000 #ff00ff #ffff00 #ffffff

    here is the XPmode dos colors by default on my système. Usefull to have the same colors in vdos.

    Anthony

     
  • Terence Wright

    Terence Wright - 2015-05-13

    Have a look at the INT 10h services "Anonymous".

    At least 150 programs I maintain use standardised routines to write a string of length L to the screen with a given background/foreground 16-bit combination (256 colour schemes available), starting at a particular X/Y column/row integer*2 combination and whether to move the cursor afterwards or not.

    In a similar fashion, other INT 10h services allow setting the cursor position, setting the cursor geometry, reading any area of the screen, editing text areas on-screen, obtaining the b/g colour at the cursor and so on (ans as noted elsewhere here, waiting for, or testing for, keystrokes of any shift and key combinations).

    Colour work is FINE under vDos; I haven't detected any deviation from expectation.
    As an aside, these same-name routines, but coded for windows, give identical results and appearance in a native Windows environment. Very useful technique for planned conversions.

     

    Last edit: Terence Wright 2015-05-13
    • Jos Schaars

      Jos Schaars - 2015-05-13

      Anthony designed his vDos color scheme to get other colors than the standard DOS ones in XyWrite. Using INT 10h routines is no object for him, he’s “just” using a text processor, not into programming. The BIOS only lets you select one out of 16 colors, with COLORS= you can select one out of 16,777,216 for each individually.

      Jos

       
MongoDB Logo MongoDB