Set the TERM environment variable to the terminal. VT100 and vt220 here indicate the simulation product type.
The terminal is a very important peripheral. People who have used the terminal equipment know that if the device type is incorrect, there will be chaotic characters. You can also use the simulation terminal software such as netterm to test it, linux terminal information is stored in/usr/share/terminfo. Many subdirectories such as
Your computer terminals and terminal emulators support color and cursor control through a system of escape sequences. One such standard is commonly referred to as ANSI colour. Several terminal specifications areBased on the ANSI color standard, including vt100.
The following is a partial listing of the VT100 control set.
Represents the ASCII "escape" character, 0x1b. Bracketed tags represent modifiable deci
VT control codeVT100 is a terminal type definition, and VT100 control code is used to expand the display code on the terminal. For any coordinate on the terminalDifferent color display characters.All the control operators are \ 033 headers (that is, the esc ascii code) and are output using the output character statement. Echo can be used in the command line
Or use printf in the C program to output control characters of
After securecrt6.0.2 is installed, the VT100 font is used by default, but garbled characters are displayed after you log on to the server. Search online and find that Chinese Garbled text is only related to the font and characer encoding settings. The reason for Garbled text is that the VT100 font itself is incorrect. The VT100 of securecrt4.1 can display Chinese
variables "TERM" and "TERMINFO" have been set correctly. If not set correctly, you must set it to the correct value. $ Echo $ TERM $ echo $ TERMINFO The TERMINFO path should be set to The terminfo path, such as/usr/share/terminfo or/lib/terminfo. Run the following command to view the storage location of terminfo: $ whereis terminfoterminfo: /etc/terminfo/lib/terminfo/usr/share/man/man5/terminfo.5.gz check whether terminal information files are saved in The terminfo Directory: usually divided in
following command to view the storage location of terminfo: $ whereis terminfoterminfo: /etc/terminfo/lib/terminfo/usr/share/man/man5/terminfo.5.gz check whether terminal information files are saved in the terminfo Directory: usually divided into, b, c, d... z. These letter directories contain the term information starting with the letter. For example, vt100 is placed in the "v" directory. The required term must contain the term information in the co
be that our settings are not the same.
The differences are as follows:
1, emulation
Terminal selects Linux and "ANSI color"
2, appearance
Font selects VT100 12pt
"Use Unicode line drawing characters" is not selected"
The default selected in character does not know whether it is related to this.
In addition, in Linux, The Lang environment variable is set to zh_cn.gb2312, which is: en_us
So I thought about these factors and changed the
We have discussed some of the topics related to the AIX telnet command in the previous article. This time, we will give a detailed explanation of some specific command operations and their meanings. I hope this article will help you understand the usage of these commands.
Environment Variable
The following environment variables can be used with the AIX telnet command:
EMULATE is the same as the-e tag to overwrite the terminal type negotiation. if the EMULATE environment variable is defined as
= "comconsole vidconsole" // supports both the serial port and the display output comconsole_speed = "115200" // The serial port output baud rate boot_multicons = "YES" // this parameter is unknown what is the purpose, see the manual to modify the configuration in/etc/ttys: www.2cto.com ttyu0 "/usr/libexec/getty std.115200" vt100 on sercure ttyu1 "/usr/libexec/getty std.115200" vt100 on sercure ttyu2" /usr
item, and Save it As the default setting. After "Exit from Minicom" is selected, run the following command to restart Minicom:
# Minicom
Host B Configuration
Host B needs to modify the following files.
1. Modify the/etc/inittab File
This is the configuration file of the init program, used to set the default status and terminal connection. Add the following line to the file to initialize the serial port terminal:
Tty: 2345: respawn:/sbin/agetty ttyS0 9600
accepts DCE creden as sufficient creden to access the remote account. For more information, see the kvalid_user function.
Example
In the following example, if you enter the tn command instead of the AIX telnet command, the command prompt is displayed as tn>.
To log on to the remote host host1 and perform terminal negotiation, enter:
Telnet host1 to log on to host1 as the terminal vt100 without terminal type negotiation), select one of the following m
]+ Running cp -i -r testLargeFile largeFile2 [[emailprotected] build]# disown -h %1[[emailprotected] build]# ps -ef |grep largeFile2root 5790 5577 1 10:04 pts/3 00:00:00 cp -i -r testLargeFile largeFile2root 5824 5577 0 10:05 pts/3 00:00:00 grep largeFile2[[emailprotected] build]#Screen scenario:
We already know how to protect the process from the HUP signal. But if a large number of such commands need to be run in a stable background, how can we avoid such operations on each comma
method is screen. Simply put, screen provides an ANSI/VT100 Terminal simulator to run multiple full-screen pseudo terminals under a real terminal. Screen has many parameters and has powerful functions. Here we will only introduce its common functions and briefly analyze why screen can avoid the impact of HUP signals. Let's take a look at the help information of screen:
SCREEN(1) SCRE
build]# disown -h %1[root@pvcent107 build]# ps -ef |grep largeFile2root 5790 5577 1 10:04 pts/3 00:00:00 cp -i -r testLargeFile largeFile2root 5824 5577 0 10:05 pts/3 00:00:00 grep largeFile2[root@pvcent107 build]#
Back to Top
Screen
Scenario:
We already know how to protect the process from the HUP signal. But if a large number of such commands need to be run in a stable background,
background when submitting the command, you can use ctrl-Z and "BG" to put it in the background, and then use "disown ")
[root@pvcent107 build]# cp -r testLargeFile largeFile2[1]+ Stopped cp -i -r testLargeFile largeFile2[root@pvcent107 build]# bg %1[1]+ cp -i -r testLargeFile largeFile2 [root@pvcent107 build]# jobs[1]+ Running cp -i -r testLargeFile largeFile2 [root@pvcent107 build]# disown -h %1[root@pvcent107 build]# ps -ef |grep lar
, screen provides the ansi/vt100 terminal emulator, which enables it to run multiple full screens of pseudo-terminals under a real terminal. Screen has a lot of parameters and is very powerful, so we'll just describe its common functions and briefly analyze why using screen can avoid the effects of HUP signals. Let's take a look at screen's help information:Screen (1) screens (1) NAME Scr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.