1. scroll() appears to be misbehaving on OSX

The following code:

--demo program 51 
 
include std/graphics.e 
 
integer keystroke, current_position 
 
bk_color(15) 
text_color(0) 
clear_screen() 
 
position(5,1) 
puts(1, repeat('=', 80)) 
 
position(20,1) 
puts(1, repeat('=', 80)) 
 
position(11,25) 
puts(1, "╓────────────────────────────╖") 
 
position(12,25) 
puts(1, "║ Welcome To The SCROLL ZONE ║") 
 
position(13,25) 
puts(1, "╙────────────────────────────╜") 
 
position(22,1) 
puts(1, "Press 8 for up, 2 for down, or q to quit this program") 
 
keystroke = get_key() 
current_position = 11 
 
while keystroke != 'q' do 
     if keystroke = '8' and current_position > 6 then 
          scroll(1,6,19) 
          current_position = current_position - 1 
     end if 
     if keystroke = '2' and current_position < 17 then 
          scroll(-1,6,19) 
          current_position = current_position + 1 
     end if 
 
     keystroke = get_key() 
end while 
 
clear_screen() 

works as expected in DOS, i.e., the text: "Welcome To The SCROLL ZONE" scroll up and down at the original column number - at least under DOSBOX on OSX it does.

This is not so in a native OSX terminal. The text is moved to column 1, and then scrolls up and down, leaving the original characters there. The only way to rid the screen of the original characters is to scroll over them. dukester

new topic     » topic index » view message » categorize

2. Re: scroll() appears to be misbehaving on OSX

92 views and not one bloody reply! Must be a record....

new topic     » goto parent     » topic index » view message » categorize

3. Re: scroll() appears to be misbehaving on OSX

dukester said...

92 views and not one bloody reply! Must be a record....

OSX is a brand new platform for us with 4.0. I don't think there are many OS X developers yet. Don't let that scare you away though, we need the reports. Are you by chance a C developer as well? It may be that you can help in these areas. It would be nice to get the bugs hashed out in OS X as it's becoming a major platform now.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

4. Re: scroll() appears to be misbehaving on OSX

dukester said...

92 views and not one bloody reply! Must be a record....

Shows how popular the Mac is blink

I'm assuming that OSX is regarded as a variant of Unix. What gets displayed with this program ...

---- 
ifdef UNIX then 
puts(1, "Unix\n") 
end ifdef 
ifdef OSX then 
puts(1, "OSX\n") 
end ifdef 
---- 
new topic     » goto parent     » topic index » view message » categorize

5. Re: scroll() appears to be misbehaving on OSX

Does the sample program run okay on Linux systems? Anyone?

new topic     » goto parent     » topic index » view message » categorize

6. Re: scroll() appears to be misbehaving on OSX

DerekParnell said...

Does the sample program run okay on Linux systems? Anyone?

No. The problem reported is also reproducable on Linux.

new topic     » goto parent     » topic index » view message » categorize

7. Re: scroll() appears to be misbehaving on OSX

jimcbrown said...
DerekParnell said...

Does the sample program run okay on Linux systems? Anyone?

No. The problem reported is also reproducable on Linux.

Great! Then one of the Linux devs can have a go at fixing it.

I still haven't worked out how to install the development environment on my kubuntu platform. Maybe some could write it up on the wiki?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu