(setenv TERM vt100; spss )A better way to more fully use the X-terminal's capability is to add a resources named spss to your .Xresource file:
spss*title: SPSS Window spss*LoginShell: false spss*TermName: vt100 spss.VT100.ScrollBar: false spss.VT100.geometry: 80x48 spss.VT100.translations: #override\Then, add these lines in your .alias file (Or the part of your .cshrc file that defines interactive aliases)Num_Lock: keymap(num)\n\ Help: string(0x1b) string("1")\n\ F1: string(0x1b) string("1")\n\ F2: string(0x1b) string("2")\n\ F3: string(0x1b) string("3")\n\ F4: string(0x1b) string("4")\n\ F5: string(0x1b) string("5")\n\ F6: string(0x1b) string("6")\n\ F7: string(0x1b) string("7")\n\ F8: string(0x1b) string("8")\n\ F9: string(0x1b) string("9")\n\ F10: string(0x1b) string("0")\n\ Delete: string(0x04)\n\ KP_Decimal: string(0x04)\n\ Prior: string(0x0f)\n\ Next: string(0x0c)\n\ Home: string(0x1b) string("<")\n\ End: string(0x1b) string(">")\n\ Insert: string(0x07)\n\ L6: select-set(CLIPBOARD)\n\ L8: insert-selection(CLIPBOARD,PRIMARY)
if $?DISPLAY then alias spss 'xterm -name spss -e \spss \!* &' endif alias spssbat '\spss -m < \!$.sps >! \!$.lst'Next, create the file called spssNCD.ad with X-resource targeted for the NCD terminals:
spss.VT100.translations: #override\Finally, add the following line to your .xsession file:Num_Lock: keymap(num)\n\ F1: string(0x1b) string("1")\n\ F2: string(0x1b) string("2")\n\ F3: string(0x1b) string("3")\n\ F4: string(0x1b) string("4")\n\ F5: string(0x1b) string("5")\n\ F6: string(0x1b) string("6")\n\ F7: string(0x1b) string("7")\n\ F8: string(0x1b) string("8")\n\ F9: string(0x1b) string("9")\n\ F10: string(0x1b) string("0")\n\ F11: string(0x1b) string("-")\n\ F12: string(0x1b) string("=")\n\ F27: string(0x1b) string("<")\n\ F33: string(0x1b) string(">")\n\ F29: string(0x0f)\n\ F35: string(0x0c)\n\ Insert: string(0x07)\n\ Delete: string(0x04)\n\ KP_Decimal: string(0x04)\n\ F16: select-set(CLIPBOARD)\n\ F18: insert-selection(CLIPBOARD,PRIMARY)
xrdb -merge spssNCD.adWith these changes you can just type spss and get a correctly working spss session is a separate windowed labeled "SPSS window". Also the The function keys and the keys labeled "Help", "Home", "End", "PgUp", "PgDn", "Insert" and "Del" will work as documented. To run a spss in batch mode use the alias
spssbat fileThis will process the file named file.sps and put the result in a file named file.lst.