| 1 |
|
| 2 |
1. Graphics with termcap. |
| 3 |
|
| 4 |
Some terminals, such as most consoles on Unixes that run on IBM |
| 5 |
compatible PC's, can display special line drawing characters. |
| 6 |
If these characters map 1-to-1 to the IBM character set, you can just |
| 7 |
use the '-l' (literal) flag when invoking minicom. If your |
| 8 |
terminal cannot display the IBM characters directly, you should add |
| 9 |
the 'as', 'ae' and 'ac' entries to your termcap. |
| 10 |
|
| 11 |
The Linux console only maps 1-to-1 in a special mode. Therefore you need to |
| 12 |
make a special termcap entry in /etc/termcap that initializes the |
| 13 |
console on startup. For an example see the files in the termcap/ directory. |
| 14 |
This defines a termcap entry called "mc". |
| 15 |
To use this information instead of the normal 'console' information, |
| 16 |
minicom has to be invoked with the '-t mc' option (meaning use TERM=mc |
| 17 |
instead of the normal TERM environment variable). |
| 18 |
|
| 19 |
And, in my /etc/profile I have added the lines: |
| 20 |
|
| 21 |
case "$TERM" in |
| 22 |
con*|linux) |
| 23 |
MINICOM="-l -m -con -tmc" ; export MINICOM |
| 24 |
;; |
| 25 |
esac |
| 26 |
|
| 27 |
So when I log in on the console I can use minicom in full color, |
| 28 |
full ANSI mode. |
| 29 |
|
| 30 |
|
| 31 |
2. About the included termcap files. |
| 32 |
|
| 33 |
I've written some termcap entries for the VT family of terminals |
| 34 |
from scratch. These entries are correct and solve the long- |
| 35 |
standing "my arrow keys don't work!" etc. problems. |
| 36 |
|
| 37 |
This is probably obsolete now the world is changing to terminfo. |
| 38 |
Fortunately the master terminfo file is reasonably accurate. |
| 39 |
|
| 40 |
There are two termcap files in this subdirectory, termcap.short |
| 41 |
and termcap.long. You should only use termcap.long if your |
| 42 |
library version is < 4.6.27 (it probably is). Newer libraries |
| 43 |
have my new termcap code and won't break on the tc= entries |
| 44 |
in termcap.short. |
| 45 |
|
| 46 |
If you don't use exotic termcap entries you might just want to |
| 47 |
copy the new termcap file over /etc/termcap (make a backup copy |
| 48 |
first!). Otherwise you'll have to edit, cut and paste. |
| 49 |
|