Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site npois.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!npois!adam From: adam@npois.UUCP (Adam V. Reed) Newsgroups: net.micro.att Subject: UNIX PC quickie environment, installment 4 Message-ID: <317@npois.UUCP> Date: Mon, 20-May-85 17:32:30 EDT Article-I.D.: npois.317 Posted: Mon May 20 17:32:30 1985 Date-Received: Tue, 21-May-85 06:59:19 EDT Organization: ATTIS, Neptune, NJ Lines: 31 /* one.c */ /* This program, when pointed to as SHELL in $HOME/Environment, will give you a full-size 24 x 80 screen when UNIX is invoked from the ua. Substitute your shell for ksh if you don't have it. Don't forget to set aliases or scripts to eval `wenv` before executing shape-dependent programs such as vi. */ #include #include #include #include #include #include main() { struct uwdata thiswindow; extern int errno; int pid; (void)ioctl(0,WIOCGETD,&thiswindow); thiswindow.uw_x = 0; thiswindow.uw_y = 12; thiswindow.uw_width = 720; thiswindow.uw_height = 288; thiswindow.uw_uflags |= NBORDER; (void)ioctl(0,WIOCSETD,&thiswindow); execl("/bin/ksh","/bin/ksh",0); exit(errno); }