📄 readme
字号:
Curses/Terminfo distributionTHIS CODE IS PROPRIETARY TO BELL LABS. DO NOT GIVE IT TO ANYONE ELSE.You have a distribution of curses and terminfo. This is the secondinternal distribution of curses. To find the version, look inscreen/curses.c for a version number.To report bugs, if at all possible, demonstrate the bug in the formof a "show script", that is, a 2 page (often 48 line) file whichwill cause the show program to mess up. If a simple modificationto show will illustrate the bug, this is second choice. Otherwise,please write a small program that illustrates the bug. Huge programsthat "don't work" are unlikely to get much sympathy.To install curses, be guided by the makefiles. You can use themakefile in this directory. Do a "make all install". Do not do "make clean"until the install completes. This will not install any manual pagesor demos - they are up to you to install by hand if you want them.If you are on a 16 bit machine, it will be necessaryto add the -i option to ../screen/makefile's compilation of tic.(This has already been done for the PDP-11).Otherwise, tic will dump core when trying to compile some terminals.If you are on a small 11 without separate I/D, you'll haveto compile only those entries that don't use lots of use= indirection:what's happening is that 3 or 4 levels of use= recursion runs out ofmemory on the stack.Now you can run programs using curses. A sample program included inthe screen directory is show.c, say "make show" and it will compile."show" is a paging program - you hit space to go on to the next page.You can use show to make sure everything works. (Be sure you have TERMset in your environment. TERMCAP is no longer necessary.) A fancierdemo can be found in the demo directory.If you add or change terminfo descriptions in the terminfo directory,you can run compile on the single source file, instead of on terminfo.src.Since the compiler is so slow, it's worthwhile to only run it onone source file.If you add capabilitiesyou should edit screen/caps. Be sure to add the capabiltiesat the END of the section (bools, nums, or strings) as this willpreserve compatibility with older binaries. Then run "make term.h","make clean", and recompile the library.For debugging, the makefile will create several other versions of curses.In addition to the .c (source) and .o (object) files, there are .p'sfor profiling, .d's for debugging, and .t's for tracing. These willcreate dlibcurses.a, plibcurses.a, and tlibcurses.a. The d versiondefines DEBUG and uses the -g flag for sdb. DEBUG causes the file "trace"to be created in the current directory when you run a program with curses.This can be installed as -lcurses if you wish. The t version definesDEBUG for tracing, but doesn't use -g, so it's faster to compile, butwon't help much if core dumps.A recent addition is screen/termcap.c (made from screen/termcap.formand screen/caps) which emulates the older termcap library. This isintended only as a conversion aid, but it is complete enough to enablevi 3.7 (the last termcap version) to run using terminfo.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -