[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: XF86_FBDev and gpm for a Lombard

On Fri, Aug 13, 1999 at 08:46:17AM -0700, Chris Baker wrote:
> Michael G Schwern <schwern@pobox.com> writes:
> > The first thing I noticed... there's no way to configure X!
> > XF86Config, XF86Setup, xf86config, XConfigurator... looked
> > everywhere, installed every X11 package I could think of (I'm booted
> > in MacOS right now so I can't check exactly what I've got, but I've
> > got the basics and much more) I wound up using the last vestiges of my
> > Linux/PPC installation to configure X and stole /etc/X11/XF86Config
> > from there.  It mostly works, had to fiddle with the font paths.
> > 
> > So, exactly how is one expected to configure X?  I think someone
> > earlier commented that since the Frame Buffer X driver wasn't as touchy
> > as others, it wasn't necessary to have an X configuration program.
> Just a guess: do you have Xautoconfig?

Okay, I'm in Debian-land now, so I can diagnose better.

No Xautoconfig.

I have the xfree86-common, xlib6g, xbase-client, xcontrib, xfonts-*,
xlib6g-dev, xserver-common, xserver-fbdev, xserver-ggi, xterm and
xviewg packages, along with lots of other X11 related stuff and window
managers.  My installation is up to date with ftp.debian.org.  I
figured I'd mention that and get it out of the way.

"dpkg -S Xautoconfig" reports nothing, "dpkg -S config | grep X" turned up
nothing useful.

Soooo, how did everyone else configure X?


> [...]
> >      /(?:(?:(1)[.-]?)?\(?(\d{3})\)?[.-]?)?(\d{3})[.-]?(\d{4})(x\d+)?/i
> A phone number, right?  What's the (?:(?: at the beginning mean?

my($one, $area_code, $prefix, $number, $extention) = 

(?:...) is a non-capturing grouping, so you can use modifiers like ?,
* and + on a group without capturing it to $1 and friends.

To be nice, I'll write it clearly:

	# -, . or nothing is assumed to delimit.
	   (?:(1)[.-]?)?	# 1
	   \(?(\d{3})\)?[.-]?	# Area code
	 )?	# A given phone number might not have an area code.
	 (\d{3})[.-]?		# Prefix
	 (\d{4})		# Number
	 (x\d+)?		# Extension

This is nothin' and its extremely US-centric.  It also doesn't cover
things like "1-800-FLOWERS" As long as we're on the subject, I'll
really scare the pants off ya, this one comes from Eli the Bearded:

  $one, $area, $exchange, $local, $extension,
  $int, $country, $intcity, $intlocal, $intextension
 ) =
 m! \b (1?) \s* (?: [(./-]? \s* (\d{3}) \s* [)./-]? \s* )?
       (\d{3}) (?: \s* [./-] \s* | \s+ )? (\d{4}) \s* (x \s* \d+)? \b
  | \b (0 \s* 11) [\s./+-]* \(? (\d{3}) \)? [\s./+-]*
       (\d{2,}) [ ./+-]* (\d+) \s* (x \s*\d+)? \b

This one -still- doesn't take into account all the international



Michael G Schwern                                           schwern@pobox.com

Reply to: