Mailinglist Archive: yast-devel (191 mails)

< Previous Next >
Re: [yast-devel] how to determine GUI versus ncurses mode via YCP
  • From: Arvin Schnell <aschnell@xxxxxxx>
  • Date: Tue, 25 Mar 2008 15:52:14 +0100
  • Message-id: <20080325145214.GA17210@xxxxxxx>
On Tue, Mar 25, 2008 at 03:48:24PM +0100, Johannes Meixner wrote:

Hello,

how can I determine in a YaST module if it runs currently
in GUI mode (Qt or Gtk) or in text-only (ncurses) mode?

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

Use UI::GetDisplayInfo().

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

< Previous Next >
References