xref: /original-bsd/old/adb/common_scripts/tty (revision baf24c0d)
1,0$<# Format a tty structure.
2,0$<# As a convenience, this script takes an optional count which can be
3,0$<# used to offset count number of tty structs from dot; thus, specifying
4,0$<# the base of an array of ttys, and a unit number +1 as the
5,0$<# count (one-origin, due to how the $< command works), will
6,0$<# format the appropiate tty.
7.>5
8<9-1="Unit: "D
9<5+((<9-1)*0t160)/"rawq: cc"16t"cf"16t"cl"nD2X
10+/"canq: cc"16t"cf"16t"cl"nD2X
11+/"outq: cc"16t"cf"16t"cl"nD2X
12+/"oproc"16t"param"16t"rsel"16t"wsel"n2p2X
13+/"LINEP"16t"addr"16t"dev"8t"flags"nXpx2+X
14+/"state"16t"session"16t"pgrp"16t"line"nXXX\1+
15+/"col"8t"rocount"8t"rocol"8t"hiwat"8t"lowat"8tn5d
16+/"ws_row"8t"ws_col"8t"ws_xpix"8t"ws_ypix"n4u
17+$<<termios
18+/"cancc"16t"rawcc"16t"outcc"16t"gen"n3Ud
19