Mailinglist Archive: yast-devel (191 mails)

< Previous Next >
Re: [yast-devel] how to determine GUI versus ncurses mode via YCP
  • From: Olaf Dabrunz <od@xxxxxxx>
  • Date: Tue, 25 Mar 2008 16:28:05 +0100
  • Message-id: <20080325152805.GA24502@xxxxxxx>
On 25-Mar-08, Martin Vidner wrote:
On Tue, Mar 25, 2008 at 10:56:37AM -0400, Patrick Shanahan wrote:
* Johannes Meixner <jsmeix@xxxxxxx> [03-25-08 10:50]:

If it runs in text-only mode, how can I determine its current
screen size (i.e. how many lines and characters per line)?

bash has env vars, $LINES and $COLUMNS, that will give screen size.

The variables are there, but they are not exported:

$ echo $LINES,$COLUMNS; env | grep LINES; env | grep COLUMNS

Using "stty size" sounds better to me. Maybe sh@ knows a wrapper for
this in YaST.


Olaf Dabrunz (od/odabrunz), SUSE Linux Products GmbH, N├╝rnberg

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups