> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Brutzman, Bill > Sent: Tuesday, May 01, 2007 9:41 AM > To: 'u2-users@listserver.u2ug.org' > Subject: RE: [U2] Who Am I ? wIntegrate > > The following helps a lot... How can it be cranked into UniBasic? > > --Bill > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Ron Sharcott > Sent: Monday, April 30, 2007 5:56 PM > To: 'u2-users@listserver.u2ug.org' > Subject: RE: [U2] Who Am I ? wIntegrate > > > I think this is what you're looking for. > [snip] > > ISINT=`tty | grep -c /dev/pts` > if [ "${ISINT}j" = "1j" ] > then > echo "Terminal session" > else > echo "From wIntegrate > fi
@TTY in BASIC will return the same value as "tty" at the OS level, at least in UV. So something like "IF INDEX(@TTY,'/dev/pts',1) THEN" would be the BASIC equivalent. -John ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/