Re: The Down Arrow

new topic     » goto parent     » topic index » view thread      » older message » newer message
DonCole said...
CoJaBo2 said...

You would need to use Unicode functions to get symbols like that to display; its possible there aren't any in..win32lib.ew?, its been a long while since I've used Windows.. The documentation should say, but its not available online.

DonCole said...

I get the same problem with down arrow (ascii 281) and up arrow (ascii 280).

Where are you getting these codes, btw? ASCII (actually, I think Windows uses Windows-1252) is 32-255 (with a few left out in the middle).

I'm getting from this test program that I wrote:

 
include get.e 
integer c,i 
c=0 
 
procedure print_out(integer c) 
 for x=1 to 20 do 
    puts(1, sprintf("x=%2d",x)   &"  ") 
    puts(1, sprintf("c=%2d",c)   &"  ") 
    puts(1, sprintf("c+x=%2d",x+c)   &"=") 
    puts(1, sprintf("%s",x+c)    &"  ") 
    puts(1, sprintf("%2d",x+c+20)    &"=") 
    puts(1, sprintf("%s",x+c+20)     &"  ") 
    puts(1, sprintf("%2d",x+c+40)    &"=") 
    puts(1, sprintf("%s",x+c+40)     &"  ") 
    puts(1, sprintf("%2d",x+c+60)    &"=") 
    puts(1, sprintf("%s",x+c+60)     &"  ") 
    puts(1, sprintf("%2d",x+c+80)    &"=") 
    puts(1, sprintf("%s",x+c+80)     &"  ") 
    puts(1, sprintf("%2d",x+c+100)   &"=") 
    puts(1, sprintf("%s",x+c+100)    &"  ")  
    puts(1, sprintf("%2d",x+c+120)   &"=") 
    puts(1, sprintf("%s",x+c+120)    &"  ") 
    puts(1, sprintf("%2d",x+c+140)   &"=") 
    puts(1, sprintf("%s",x+c+140)    &"\n") 
 end for 
end procedure 
 
while 1  do 
    print_out(c) 
    puts(1,   "hit any key\n") 
i=wait_key() 
    c+=20 
end while 

Don Cole

DOS (including command prompt, which emulates it) is completely different than Windows; DOS defines the control chars (1-31) and extended ASCII (128-255) to be block drawing elements and some other things. Anything above 255 most likely just wraps back around, since DOS and legacy Windows only supports character sets of at most 255 symbols (one byte) at a time. Unicode supports many, many more (including arrows, snowmen, hotels, monochrome blue hearts, etc), but my current understanding is that Eu has very limited support for it..

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu