1. scroll() appears to be misbehaving on OSX
- Posted by dukester Nov 15, 2009
- 1164 views
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
2. Re: scroll() appears to be misbehaving on OSX
- Posted by dukester Nov 20, 2009
- 994 views
92 views and not one bloody reply! Must be a record....
3. Re: scroll() appears to be misbehaving on OSX
- Posted by jeremy (admin) Nov 21, 2009
- 982 views
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
4. Re: scroll() appears to be misbehaving on OSX
- Posted by DerekParnell (admin) Nov 21, 2009
- 983 views
92 views and not one bloody reply! Must be a record....
Shows how popular the Mac is
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 ----
5. Re: scroll() appears to be misbehaving on OSX
- Posted by DerekParnell (admin) Nov 21, 2009
- 976 views
Does the sample program run okay on Linux systems? Anyone?
6. Re: scroll() appears to be misbehaving on OSX
- Posted by jimcbrown (admin) Nov 21, 2009
- 969 views
Does the sample program run okay on Linux systems? Anyone?
No. The problem reported is also reproducable on Linux.
7. Re: scroll() appears to be misbehaving on OSX
- Posted by DerekParnell (admin) Nov 21, 2009
- 959 views
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?