- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Am I a text or graphics based window?
Operating System - HP-UX
1823114
Members
3308
Online
109646
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 01:51 AM
тАО07-24-2001 01:51 AM
Am I a text or graphics based window?
Quick one and probably a simple one:
When logging in as a certain user I need to determine if I'm logging in from a standard VT type terminal or graphics capable X terminal. Theres probably many ways of doing this - any one have any nices ones?
Will 'ttytype' suffice?
When logging in as a certain user I need to determine if I'm logging in from a standard VT type terminal or graphics capable X terminal. Theres probably many ways of doing this - any one have any nices ones?
Will 'ttytype' suffice?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 02:40 AM
тАО07-24-2001 02:40 AM
Re: Am I a text or graphics based window?
Hi,
if you issue the command 'env' you get the TERM type
if you issue the command 'env' you get the TERM type
never give up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 02:47 AM
тАО07-24-2001 02:47 AM
Re: Am I a text or graphics based window?
Sorry Ravi, I should have mentioned - I'd like to be able to do it without referencing the TERM variable.... In otherwords, is there any way of querying the terminal itself to find out what it is? Hence my suggestion of ttytype (which I think just calls tset) ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 03:35 AM
тАО07-24-2001 03:35 AM
Re: Am I a text or graphics based window?
If you type
who am i
You can find your pty or tty
then
ps -ef | grep ty
to look for instances of hpterm, xterm or any other graphic env.. which would give it away.
who -R and who am i -R will give you the connecting IP address that a DISPLAY would/should be exported to in graphical env.
If you have a display set you are graphical.
Later,
Bill
who am i
You can find your pty or tty
then
ps -ef | grep ty
to look for instances of hpterm, xterm or any other graphic env.. which would give it away.
who -R and who am i -R will give you the connecting IP address that a DISPLAY would/should be exported to in graphical env.
If you have a display set you are graphical.
Later,
Bill
It works for me (tm)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP