# MSL .magic # a combination of stuff from the standard .magic and from jp's .magic # Several additions. Major change from standard .magic described in the # tutorial: different "arrow" letters. # echo "" # path that lets the tutorials run as written path ". /usr/msl/magic/lib/magic/tutorial" # via drawing shortcuts macro 1 "box w 4; box h 4; pai m1; pai ndc" macro 2 "box w 4; box h 4; pai m1; pai pdc" macro 3 "box w 4; box h 4; pai m1; pai nsc" macro 4 "box w 4; box h 4; pai m1; pai psc" macro 5 "box w 4; box h 4; pai m1; pai pc" macro 6 "box w 4; box h 4; pai m1; pai m2c" macro 8 "clock 180" macro 9 "clock 90" macro 0 "box w 4; box h 4" macro + "box w 0; box h 0" macro _ "upsidedown" # selection macro s "select" macro S "select more" macro a "select area" macro A "select more area" macro f "select cell" macro F "select cell; edit; select clear" macro C "select clear" macro m "sel area *-m2,m3,m3c" macro M "sel area *-m3" # "arrows" # unshifted move box only; shifted stretch selected paint macro q "box left 1" macro w "box down 1" macro e "box up 1" macro r "box right 1" macro Q "stretch left 1" macro W "stretch down 1" macro E "stretch up 1" macro R "stretch right 1" # Window movement macro , "center" macro B "findbox" macro v "view" # zoom to box, zoom out, zoom in macro z "findbox zoom" macro Z "zoom 2" macro '' "zoom 0.5" # textual feedback macro ? "help" macro b "box" macro y "drc why" # editing paint macro d "delete" macro '' "erase $" macro c "copy" macro k "erase $" macro l "erase labels" macro t "move" macro T "stretch" macro u "undo" macro U "redo" # misc, in approximately alphabetical order macro " " "tool" macro g "grid" macro G "grid 2" macro ' ' "redraw" macro o "openwindow" macro O "closewindow" macro '' "expand toggle" macro x "expand" macro X "unexpand" macro '' "iroute route -dBox" macro '' "iroute route -dSelection" # MSL stuff macro p "ext sty hpcmos14; extract all; feedback save feed; feedback clear" macro P "ext sty para(hpcmos14); extract all; feedback save feed; feedback clear; ext sty hpcmos14" # plot setup for color versatec # in spoolCommand, first %s is file type, second is file name #plot parameters spoolCommand "echo use 'lpr -P%s -c -s -JMagic %s' to print plot" plot parameters spoolCommand "echo %s-format plot file left in %s" plot parameters directory "/tmp" plot parameters color true plot parameters showcellnames false plot parameters width 2048