> last night I was looking into vt source. I tried to compile under > p9p and in consctl.c it was calling the p9 system call segattach. > > I was wondering if somebody can point me in a p9p port that shows > a very simple and straight forward example of the conversion of the p9 > to p9p segattach.
As others noted, you don't really want segattach. That code could be rewritten to make consctl a separate shared-memory thread instead of allocating this one-time shared data structure. But even if you do that, consctl depends on getting terminal change (rawon, rawoff) events on /dev/consctl, which doesn't exist on Unix. To really port vt you'd have to add all sorts of pty-handling code like in 9term. If you need a cursor-addressed terminal window, you're better off just using xterm. The cursor-addressed programs you are trying to run will probably work better anyway. Russ
