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