[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to detect terminal type?
From: |
Peter Brinkmann |
Subject: |
How to detect terminal type? |
Date: |
Fri, 10 Jan 2003 10:21:04 -0600 |
User-agent: |
Mutt/1.4i |
Hi!
How can I detect the current terminal type?
I'm asking because I sometimes need to change the terminal type
in order to export plots to encapsulated PostScript, using a
command like
gset terminal postscript
On my Linux box, I can reset the terminal with a command like
gset terminal x11
The problem is that this doesn't work under Windows. So, what
I'd like to do is the following:
1. Detect and remember the current terminal type.
2. Export stuff to PostScript.
3. Reset the terminal type to what it was before.
Is this possible at all?
Thanks,
Peter
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- How to detect terminal type?,
Peter Brinkmann <=