📄 readme
字号:
Installation------------VT should compile on SunOS, HP-UX, or a BSD-based system withoutchanges. You can tweak the performance by going through config.h andcommenting or uncommenting #defines for library functions you have.If you are uncertain about ANSI_CTYPES, compile and run test.c (cctest.c;a.out). It's probably also worthwhile to replcae the randomnumber generator, since rand() is, although standard, not very good.If you do use standard Unix rand(), the following VTC functionproduces acceptable results: func rand(n) { return (n < 256) ? (rnd >> 7) % n : rnd % n; }To compile with hardcoded VT-102 terminal sequences instead of usingthe termcap library, replace -DTERMCAP with -DHARDCODE on the CFLAGSline of the makefile, and remove -ltermcap from the LIBS line.After you compile, you should probably strip the executable ('stripvt').On an AIX system, compile with -DAIX. You will need to compile with -D_BSD and link with -lbsd, or use bsdcc. If you don't want to compile with -DHARDCODE, you will need to set up a termcap file. This involves finding someone with an /etc/termcap file on a BSD system, extracting the entry for your terminal type, placing it in your home directory, and setting: setenv TERMCAP ~/termcap setenv TERM vt100These should be changed depending on where you put the termcap fileand what your terminal type is. You can also include several entriesin the termcap file and set TERM to the type of the terminal you arecurrently using, if you use multiple terminals.With BSD 4.3 Reno, compile with -DUSE_OLD_TTY.On a SysV system with BSD socket libraries, compile with -DSYSV and link with the socket libraries if necessary.Files-----(This text is also in ../README.)You do not need to keep any of the files in src except for the vt executable. The executable can be placed wherever is convenient (e.g. ~/bin, /usr/local/bin).For a personal installation, you should leave the distribution filesin ~/vt/dist and ~/vt/extra, as they are now if you untarred thearchive in ~. You can also place them in ~ or ~/vt and VT will findthem.For a system installation, you should put the files currently in thedist directory into /usr/local/lib/vt, and the files currently in theextra directory into /usr/local/lib/vt/extra. If this is notpossible, edit the search path in main.c (in the src directory) toinclude the directory where you plan to place the dist files, and thesearch path in main.vtc (in the dist directory) to include thedirectory where you plan to place the extra files.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -