%externalstring(63)%fnspec uinfs(%integer ep) %systemstring(255)%fnspec itos(%integer i) %systemstring(8)%fnspec htos(%integer i,places) %externalroutine where(%string(255)dummy) %string(63)terms terms=uinfs(14) %string(6) tcp %string(8) hexC %byteinteger C,N,T N=charno(terms,1);T=charno(terms,2);C=charno(terms,3); TCP=substring(terms,4,9) hexC=htos(C,2) printstring("You are on Console ".itos(c)." (X'".hexC."') on TCP ".TCP) printstring(" network address N".itos(N)."T".itos(T)) newlines(2) %end %endoffile