#!/bin/csh -f ####################################################################### # # # ###### ##### # # # ## ##### ##### # # # # # # # # # # # # # # # # # ####### # # # # # # ####### ###### # # # # ###### ##### # # # # # # # # # # # # # # # # # # # # # # # ##### # ##### # # {^:= A poor man's PC emulator =:^} # ####################################################################### # This shell script allows telnet access to a PC (running telnetd) # Edit the name of your PC: change "pc" to your PC's name # Save this file as: msdos # Make it executable: chmod +x msdos # Run it via: msdos [app] ####################################################################### if ($#argv > 0) then setenv _ICONNAME `basename $argv[1]` else setenv _ICONNAME "HardPC" endif ####################################################################### # # You'll want to add the name of your PC-telnet server here ---+ # vv--------------------------------------------+ setenv _PC_HOST "pc" # # These options # setenv _WSH "/usr/bin/X11/xterm" setenv _FONT "-fn vga" setenv _GEOM "-geometry 80x25+0-0" setenv _COLOR "-bg black -fg white -ms red -cr white" setenv _SCROLL "-j -s -sb +sf -si -sl 256" setenv _TITLE "-T MS-DOS -n $_ICONNAME" setenv _OPTIONS "+aw +ls +rw +s -sf +vb" setenv _APP "-e telnet -l $USER $_PC_HOST" # # Fire off an Xterm window with a telnet connection to the PC... # $_WSH $_FONT $_GEOM $_COLOR $_SCROLL $_TITLE $_OPTIONS $_APP &