|
|
1.1 ! root 1: .TH TSET 1 ! 2: .CT 1 comm_term ! 3: .SH NAME ! 4: tset \- set terminal modes ! 5: .SH SYNOPSIS ! 6: .B tset ! 7: [ ! 8: .I options ! 9: ] ! 10: [ ! 11: .B -m ! 12: .RB test : type ! 13: ... ! 14: ] ! 15: [ ! 16: .I type ! 17: ] ! 18: .SH DESCRIPTION ! 19: .I Tset ! 20: conditionally ! 21: sets erase and kill characters, tabs, delays, etc. ! 22: for terminals. ! 23: It is typically used in startup profiles; see ! 24: .IR sh (1). ! 25: In default of a specified terminal ! 26: .I type ! 27: (listed in the file ! 28: .FR /etc/termcap ) ! 29: the type is taken from the environment variable ! 30: .LR TERM . ! 31: Option ! 32: .B -m ! 33: determines the type based on source and baud rate: ! 34: .IP ! 35: .B -m ! 36: .RI [\fB> baud ]\fB: type ! 37: .LP ! 38: No sources are distinguished at present. ! 39: The test ! 40: .L > ! 41: may be replaced by ! 42: .LR < , ! 43: .LR = , ! 44: or ! 45: .L @ ! 46: (same as ! 47: .LR = ). ! 48: The test may be preceded by ! 49: .L ! ! 50: for negation. ! 51: A ! 52: .I type ! 53: may be preceded by ! 54: .L ? ! 55: to cause ! 56: .I tset ! 57: to query whether the guess is right. ! 58: Tests are performed left-to-right until one is satisfied. ! 59: A final default ! 60: .I type ! 61: prevails when all tests fail. ! 62: Thus ! 63: .IP ! 64: .L ! 65: tset -m \'>1200:5620\' \'?hp\' ! 66: .LP ! 67: assumes the terminal is a 5620 if the line speed exceeds 1200 baud. ! 68: Otherwise it assumes an hp terminal but asks for confirmation, ! 69: giving you a chance to name another type. ! 70: .PP ! 71: The ! 72: .B -s ! 73: option causes tset to place on the standard output shell commands ! 74: for setting the environment variables ! 75: .L TERM ! 76: and ! 77: .LR TERMCAP . ! 78: Use this feature thus: ! 79: .IP ! 80: .L ! 81: eval \`tset -s \fIoption ...\fR\` ! 82: .PP ! 83: On terminals that can backspace but not overstrike ! 84: and when the erase character is the default erase character ! 85: .RL ( # ! 86: on standard systems), ! 87: the erase character is changed to a Control-H ! 88: (backspace). ! 89: .PP ! 90: Other options are: ! 91: .TP ! 92: .BI -e " c" ! 93: set the erase character to ! 94: .I c, ! 95: or backspace if ! 96: .I c ! 97: is missing ! 98: .TP ! 99: .BI -k " c" ! 100: set the kill character similarly; use control-X if ! 101: .I c ! 102: is missing ! 103: .TP ! 104: .B -I ! 105: suppress outputting terminal initialization strings ! 106: .TP ! 107: .B -Q ! 108: suppress printing ! 109: `Erase set to' and `Kill set to' messages ! 110: .TP ! 111: .B -S ! 112: Outputs ! 113: .L TERM ! 114: and ! 115: .L TERMCAP ! 116: in the environment rather than in shell commands ! 117: .SH FILES ! 118: .TF /etc/termcap ! 119: .TP ! 120: .F /etc/ttytype ! 121: terminal id to type map database ! 122: .TP ! 123: .F /etc/termcap ! 124: terminal capability database ! 125: .SH SEE\ ALSO ! 126: .IR sh (1), ! 127: .IR stty (1), ! 128: .IR environ (5), ! 129: .IR termcap (5)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.