I've placed a fork of drawterm up on https://bitbucket.org/jas/drawterm-cocoa/overview that is specifically targeted towards supporting the recent Mac OS X 10.8 releases that dropped earlier Carbon APIs. A portion of the screen drawing is very similar to what is found in p9p's devdraw, with the exception that window resize- and full-screen options are not available at this time. Build it on a OSX with Xcode 4.5+ using the simple command:
make 'CONF=osx-cocoa'
The result will provide a Mach-O 64-bit executable for use on recent Macs. If someone wants to build it on an OS X 10.7 target then you can take a look at the Make.osx-cocoa file and modify ARCHFLAGS appropriately.
I'll be pushing out changes to the port as I roll in updates from Plan 9 sources and add new features for OS X. Send feedback as you see fit.
first try, after setting isysroot to 1.7, etc. it mostly compiles with
warnings. eventually it errors on "redefinition of typedef 'Cursor'"
compiling screen-cocoa.m. i'll try again tomorrow -- with a clear
head.
On Fri, Oct 12, 2012 at 6:04 PM, Jeff Sickel <j...@corpus-callosum.com> wrote:
> I've placed a fork of drawterm up on https://bitbucket.org/jas/drawterm-cocoa/overview that is specifically targeted towards supporting the recent Mac OS X 10.8 releases that dropped earlier Carbon APIs. A portion of the screen drawing is very similar to what is found in p9p's devdraw, with the exception that window resize- and full-screen options are not available at this time. Build it on a OSX with Xcode 4.5+ using the simple command:
> make 'CONF=osx-cocoa'
> The result will provide a Mach-O 64-bit executable for use on recent Macs. If someone wants to build it on an OS X 10.7 target then you can take a look at the Make.osx-cocoa file and modify ARCHFLAGS appropriately.
> I'll be pushing out changes to the port as I roll in updates from Plan 9 sources and add new features for OS X. Send feedback as you see fit.
> first try, after setting isysroot to 1.7, etc. it mostly compiles with
> warnings. eventually it errors on "redefinition of typedef 'Cursor'"
> compiling screen-cocoa.m. i'll try again tomorrow -- with a clear
> head.
> so it's safe to remove that line from screen-cocoa.m. I've got that
> change w/a load of others I'll push soon.
> -jas
> On Oct 12, 2012, at 11:18 PM, Skip Tavakkolian <skip.tavakkol...@gmail.com<javascript:;>>
> wrote:
> > first try, after setting isysroot to 1.7, etc. it mostly compiles with
> > warnings. eventually it errors on "redefinition of typedef 'Cursor'"
> > compiling screen-cocoa.m. i'll try again tomorrow -- with a clear
> > head.
Another set of changes have been pushed to https://bitbucket.org/jas/drawterm-cocoa that support resize/reshape of the OS X window. There are still a few drawing glitches once a window is resized, but those should be fixed in short order.
The drawterm-cocoa fork has a branch named 'p9' that I've used for these changes. Use that branch until everything is merged back to default. All comments & criticisms are welcome through any communication vector available.
> Another set of changes have been pushed to https://bitbucket.org/jas/drawterm-cocoa that support resize/reshape of the OS X window. There are still a few drawing glitches once a window is resized, but those should be fixed in short order.
> The drawterm-cocoa fork has a branch named 'p9' that I've used for these changes. Use that branch until everything is merged back to default. All comments & criticisms are welcome through any communication vector available.
I use 9vx regularly and will be looking at a Cocoa update to support 10.8 in my spare time. If another levitator order comes through, Inferno on 10.8 will be a prerequisite.
-jas
On Oct 23, 2012, at 11:50 AM, Nemo <n...@lsub.org> wrote: