--NMuMz9nt05w80d4+
Content-Type: multipart/mixed; boundary="XsQoSWH+UP9D9v3l"
Content-Disposition: inline


--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Or FXRuby, as attached. (15 lines for basic functionality, including
whitespace)

On a related question, how do you get man to not do this type of thing:
N^HNA^HAM^HME^HE

Otherwise a simple 'display STDIN in a scrollable window' won't do much
good for manpages.

* Soren Harward [Fri, 25 Jul 2003 at 10:49 -0600]
<quote>
> I need a simple X program that can take text input from STDIN and show
> it in a scrollable window.  xless fits the bill, but I can't find the
> source for it anywhere (and it's ugly anyway).  gmas apparently does
> this as well, but I can't get it to compile.  Any other suggestions?  I
> may just end up writing one in gtk-python.  It couldn't't be more than
> 20 lines of code....
>=20
> --=20
> Soren Harward
> [EMAIL PROTECTED]
>=20
> ____________________
> BYU Unix Users Group=20
> http://uug.byu.edu/=20
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
</quote>

--=20
 Hans Fugal                 | De gustibus non disputandum est.
 http://hans.fugal.net/     | Debian, vim, mutt, ruby, text, gpg
 http://gdmxml.fugal.net/   | WindowMaker, gaim, UTF-8, RISC, JS Bach
---------------------------------------------------------------------
GnuPG Fingerprint: 6940 87C5 6610 567F 1E95  CB5E FC98 E8CD E0AA D460

--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=foxless

#!/usr/bin/ruby
require 'fox'
include Fox

theApp = FXApp.new
theMainWindow = FXMainWindow.new(theApp, "foxless")

txt = FXText.new(theMainWindow, nil, 0, 
TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
txt.visCols = 80
txt.visRows = 25
txt.text = STDIN.read

theApp.create
theMainWindow.show
theApp.run

--XsQoSWH+UP9D9v3l--

--NMuMz9nt05w80d4+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/IWi0/JjozeCq1GARAlY1AJ9QZUjaT8UdftKFK5dRZ9LrkGFt3QCg2QIj
K74pag0pOamYPhXiPpmd2kQ=
=U4lD
-----END PGP SIGNATURE-----

--NMuMz9nt05w80d4+--

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to