?? unixpc.shar
字號:
#! /bin/sh# This is a shell archive, meaning:# 1. Remove everything above the #! /bin/sh line.# 2. Save the resulting text in a file.# 3. Execute the file with /bin/sh (not csh) to create:# Makefile# Pcomm.modem# Readme.7300# Setup.sh# config.h# This archive created: Fri Jul 17 13:45:30 1992export PATH; PATH=/bin:/usr/bin:$PATHecho shar: "extracting 'Makefile'" '(6623 characters)'if test -f 'Makefile'then echo shar: "will not over-write existing file 'Makefile'"elsesed 's/^X//' << \SHAR_EOF > 'Makefile'X# PCOMM v2.0X# for AT&T Unix PC 7300/3b1XX#for 80286 versions of SCO XenixX#CFLAGS = -Od -DM_TERMINFO -Mle2 -LARGEX#LDFLAGS = -SEG 1000 -F 5000 -Mle2X#CURSES = -ltinfo -lxXX#for 80386 versions of SCO XenixX#CFLAGS = -O -DM_TERMINFOX#LDFLAGS = -sX#CURSES = -ltinfo -lxXX#for the AT&T Unix PC 7300/3b1XLD = ldXSHLIB = /lib/crt0s.o /lib/shlib_c.ifileXOTHER = /lib/setvbuf.o /lib/doprnt.o -luipcXX#for Sun OS (using the System V compiler)X#CC = /usr/5bin/ccX#LD = /usr/5bin/ccXX#LD = ccX#SHLIB =X#OTHER =XCFLAGS = -OXLDFLAGS = -sXSHAR = shar -aXXBIN_DIR = /home/egray/binXMAN_DIR = /usr/man1XMAN_EXT = 1XPCOMM_LIB = /local/lib/pcommXX#for old curses (i.e. Berkeley systems)X#CURSES = -lcurses -ltermcapXCURSES = -lcursesXX#for systems without getcwd(3) or getopt(3)X#GETCWD.O = getcwd.oX#GETCWD.C = getcwd.cX#GETOPT.O = getopt.oX#GETOPT.C = getopt.cXX#for System V or Berkeley TTY interfaceX#TTY.O = tty_ucb.oX#TTY.C = tty_ucb.cXTTY.O = tty_att.oXTTY.C = tty_att.cXX#for System V poll() or Berkeley select()XIPC.O = ipc_ucb.oXIPC.C = ipc_ucb.cX#IPC.O = ipc_att.oX#IPC.C = ipc_att.cXXPCOMM = $(GETCWD.O) $(GETOPT.O) $(TTY.O) $(IPC.O) admin.o chg_dir.o cmd.o \X curses.o d_delete.o d_lib.o d_manual.o d_menu.o d_print.o \X d_prompt.o d_revise.o data_log.o di_delay.o di_win.o dial.o \X e_lib.o expand.o help.o info.o init.o input.o list_dir.o ls_menu.o \X m_lib.o macro.o main.o n_shell.o p_lib.o passthru.o pexit.o \X port.o redial.o s_axfer.o s_extrnl.o s_gen.o s_menu.o s_modem.o \X s_prompt.o s_term.o s_tty.o screen.o script.o st_line.o \X strings.o terminal.o vcs.o x_ascii.o x_batch.o x_extrnl.o \X x_menu.o x_rcv.o x_send.o x_win.o xmodem.oXXall: pcomm waitfor matches pcomm_cmdXXpcomm: $(PCOMM)X $(LD) $(LDFLAGS) $(PCOMM) $(OTHER) -o pcomm $(CURSES) $(SHLIB)XXwaitfor: waitfor.oX $(LD) $(LDFLAGS) waitfor.o -o waitfor $(SHLIB)XXmatches: matches.oX $(LD) $(LDFLAGS) matches.o -o matches $(SHLIB)XXpcomm_cmd: pcomm_cmd.oX $(LD) $(LDFLAGS) pcomm_cmd.o -o pcomm_cmd $(SHLIB)XXpcomm_cmd.o:X $(CC) $(CFLAGS) -DIPC=\"$(IPC.C)\" -c pcomm_cmd.cXXinstall:X cp pcomm waitfor matches pcomm_cmd $(BIN_DIR)X# obviously this requires super-user privelidges...X# chmod 4755 $(BIN_DIR)/pcommX# chown uucp $(BIN_DIR)/pcommXXinstall_man:X cp Pcomm.1 $(MAN_DIR)/pcomm.$(MAN_EXT)X cp Pcomm_cmd.1 $(MAN_DIR)/pcomm_cmd.$(MAN_EXT)X cp Waitfor.1 $(MAN_DIR)/waitfor.$(MAN_EXT)X cp Matches.1 $(MAN_DIR)/matches.$(MAN_EXT)XXinstall_support:X cp Pcomm.dial_dir $(PCOMM_LIB)/pcomm.dial_dirX cp Pcomm.modem $(PCOMM_LIB)/pcomm.modemX cp Pcomm.param $(PCOMM_LIB)/pcomm.paramX cp Pcomm.extrnl $(PCOMM_LIB)/pcomm.extrnlXXclean:X rm pcomm waitfor matches pcomm_cmdXXlint:X lint -p -Dlint $(GETCWD.C) $(GETOPT.C) $(TTY.C) $(IPC.C) admin.c \X chg_dir.c cmd.c curses.c d_delete.c d_lib.c d_manual.c d_menu.c \X d_print.c d_prompt.c d_revise.c data_log.c di_delay.c di_win.c \X dial.c e_lib.c expand.c help.c info.c init.c input.c list_dir.c \X ls_menu.c m_lib.c macro.c main.c n_shell.c p_lib.c passthru.c \X pexit.c port.c redial.c s_axfer.c s_extrnl.c s_gen.c s_menu.c \X s_modem.c s_prompt.c s_term.c s_tty.c screen.c script.c \X st_line.c strings.c terminal.c vcs.c x_ascii.c x_batch.c \X x_extrnl.c x_menu.c x_rcv.c x_send.c x_win.c xmodem.c $(CURSES)X lint -p -Dlint -DIPC=\"$(IPC.C)\" pcomm_cmd.cX lint -p -Dlint waitfor.cX lint -p -Dlint matches.cXXshar:X $(SHAR) Doc.me > pcomm_sh.1X $(SHAR) Configure.sh Convert.sh Makefile Matches.1 Pcomm.1 \X Pcomm.dial_dir Pcomm.extrnl Pcomm.modem Pcomm.param Pcomm_cmd.1 \X Q_and_A Readme Release.notes Sample > pcomm_sh.2X $(SHAR) Unixpc.shar Waitfor.1 admin.c chg_dir.c cmd.c cmd.h \X config.h curses.c d_delete.c d_lib.c d_manual.c > pcomm_sh.3X $(SHAR) d_menu.c d_print.c d_prompt.c d_revise.c data_log.c \X di_delay.c di_win.c dial.c dial_dir.h e_lib.c expand.c extrnl.h \X getcwd.c getopt.c help.c > pcomm_sh.4X $(SHAR) info.c init.c input.c ipc.h ipc_att.c ipc_ucb.c \X list_dir.c ls_menu.c m_lib.c macro.c main.c matches.c misc.h \X modem.h n_shell.c > pcomm_sh.5X $(SHAR) p_lib.c param.h passthru.c patchlevel.h pcomm_cmd.c \X pexit.c port.c redial.c s_axfer.c s_extrnl.c s_gen.c > pcomm_sh.6X $(SHAR) s_menu.c s_modem.c s_prompt.c s_term.c s_tty.c screen.c \X script.c st_line.c status.h strings.c terminal.c tty_att.c \X tty_ucb.c > pcomm_sh.7X $(SHAR) vcs.c vcs.h waitfor.c x_ascii.c x_batch.c x_extrnl.c \X x_menu.c x_rcv.c > pcomm_sh.8X $(SHAR) x_send.c x_win.c xmodem.c xmodem.h > pcomm_sh.9X# $(SHAR) Doc.out Matches.out Pcomm.out Pcomm_cmd.out Waitfor.out \X# > pcomm_sh.10XXadmin.o: config.h dial_dir.h param.hXchg_dir.o: config.h misc.hXcmd.o: cmd.h config.h dial_dir.h extrnl.h modem.h param.h status.h xmodem.hXcurses.o: config.h misc.h status.hXd_delete.o: dial_dir.h misc.h param.hXd_lib.o: dial_dir.h param.hXd_manual.o: config.h dial_dir.h misc.hXd_menu.o: config.h dial_dir.h misc.h param.hXd_print.o: config.h dial_dir.h misc.hXd_prompt.o: dial_dir.h misc.hXd_revise.o: dial_dir.h misc.h param.hXdata_log.o: misc.h param.h status.hXdi_delay.o: misc.h param.hXdi_win.o: dial_dir.h misc.h modem.h param.h status.hXdial.o: config.h dial_dir.h misc.h modem.h param.hXe_lib.o: extrnl.hXexpand.o: config.hXgetopt.o: config.hXhelp.o: config.h misc.hXinfo.o: patchlevel.hXinit.o: config.h misc.h status.hXinput.o: config.h misc.h param.h status.h vcs.hXipc_att.o: ipc.hXipc_ucb.o: ipc.hXlist_dir.o: misc.hXls_menu.o: dial_dir.h misc.h param.hXm_lib.o: modem.hXmacro.o: misc.h param.hXmain.o: config.h dial_dir.h extrnl.h misc.h modem.h param.h status.hXn_shell.o: config.hXp_lib.o: param.hXpassthru.o: config.h misc.hXpexit.o: dial_dir.h misc.h param.h status.hXport.o: config.h dial_dir.h modem.h status.hXredial.o: config.h dial_dir.h misc.hXs_axfer.o: misc.h param.hXs_extrnl.o: extrnl.h misc.hXs_gen.o: misc.h param.hXs_menu.o: misc.hXs_modem.o: misc.h modem.hXs_prompt.o: misc.hXs_term.o: dial_dir.h misc.h param.hXs_tty.o: misc.h modem.hXscreen.o: param.h status.hXscript.o: config.h dial_dir.h misc.h modem.h status.h Xst_line.o: config.h dial_dir.h misc.h modem.h param.h status.hXstrings.o: config.hXterminal.o: config.h dial_dir.h ipc.h misc.h modem.h param.h status.h xmodem.hXtty_att.o: dial_dir.h modem.h param.hXtty_ucb.o: dial_dir.h modem.h param.hXvcs.o: config.h status.h vcs.hXx_ascii.o: config.h misc.h param.hXx_batch.o: config.h misc.h xmodem.hXx_extrnl.o: config.hXx_menu.o: extrnl.h misc.h xmodem.hXx_rcv.o: config.h dial_dir.h misc.h xmodem.hXx_send.o: config.h dial_dir.h misc.h xmodem.hXx_win.o: dial_dir.h misc.h status.h xmodem.hXxmodem.o: config.h misc.h param.h xmodem.hXXpcomm_cmd.o: config.h cmd.h $(IPC.C)Xmatches.o: config.hXwaitfor.o: config.hSHAR_EOFif test 6623 -ne "`wc -c < 'Makefile'`"then echo shar: "error transmitting 'Makefile'" '(should have been 6623 characters)'fifiecho shar: "extracting 'Pcomm.modem'" '(153 characters)'if test -f 'Pcomm.modem'then echo shar: "will not over-write existing file 'Pcomm.modem'"elsesed 's/^X//' << \SHAR_EOF > 'Pcomm.modem'XTTY_1=ph1;OBM;0XTTY_2=tty000;DIRECT;0XMODEM_1a=OBM;;%;@;XMODEM_1b=N;CONNECT;CONNECT;;;;;XMODEM_1c=;;;XMODEM_2a=DIRECT;;;;XMODEM_2b=N;;;;;;;XMODEM_2c=;;;SHAR_EOFif test 153 -ne "`wc -c < 'Pcomm.modem'`"then echo shar: "error transmitting 'Pcomm.modem'" '(should have been 153 characters)'fifiecho shar: "extracting 'Readme.7300'" '(5766 characters)'if test -f 'Readme.7300'then echo shar: "will not over-write existing file 'Readme.7300'"elsesed 's/^X//' << \SHAR_EOF > 'Readme.7300'X Pcomm v2.0X Additional Notes for users ofX AT&T Unix PC 7300/3b1XX 1) This version of Pcomm *REQUIRES* the pseudo-tty and socketX emulation library called "uipc" found on osu-cis.XX 2) You must run the Setup.sh shell script (as root) beforeX attempting to compile Pcomm. The shell script will create a X new link directive file, extract a few missing objects fromX the C library, and create a new sys/time.h header.XX 3) The shared libraries on your system contain Terminal AccessX Method (TAM) routines in lieu of curses(3) routines. However,X many of the routines have the same names! This means thatX curses library is not compatible with the shared library. So,X to circumvent the problem, an alternate shared library "linkX directive file" is needed. The Setup.sh script creates thisX file.XX 4) Before Pcomm can be compiled, the curses library routinesX must be installed on your system. The diskette labeledX "Curses/Terminfo Programmer's Package" is a part of the "UnixX Development Set". Likewise, before Pcomm can be used, theX terminfo database must be installed. The diskettes labeledX "Curses/Terminfo End User Package" and "Terminfo Database" areX a part of the "Unix Foundation Set"XX 5) Did you know that your system can use DEC vt100 style lineX drawing character? Curses automatically uses the "alternate"X character set (if found) to draw the boxes and lines rather thanX using the "-" and "|" characters. To allow your system to useX this feature, there are two things you must do:XX 1) Load the line drawing font in slot 1 prior to runningX a program requiring them. This can be done by typing:XX setf /usr/lib/wfont/BLD.ft 1XX ...or permanently install this font in slot 1 by addingX the following two lines to the end of the /etc/rc file:XX sfont /usr/lib/wfont/BLD.ft 1X setf /usr/lib/wfont/BLD.ft 1XX 2) Tell curses(3) about the alternate character set byX editing the terminfo database.XX To get a copy of the terminfo entry to play with,X you type:
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -