Sunday, February 19, 2006

lab 55 - cut & paste

NAME

lab 55 - cut & paste

NOTES

this work includes some enhancements for running inferno hosted on windows. these are small details, but do seem to make a difference.

first is cut & paste between host and inferno. I copied the code from drawterm to do this. the file /dev/snarf contains the windows clipboard. typically one would say bind /dev/snarf /chan/snarf and everything works just great.

second is window resizing. in this case the host window is resized but the inferno windows all stay the same. but this still improves it. it's nice to be able to resize the window. however, for this to work the toolbar needs to be moved to the top instead of the bottom of the screen.

finally, i added /dev/fullscreen. writing anything to the file cases inferno to toggle fullscreen mode.

to use the changes copy devarch.c and win.c to /emu/Nt, and devcons.c to /emu/port.

FILES

caerwyn.com/lab/55

No comments: