From owner-freebsd-libh Sun Oct 7 13:25:42 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by hub.freebsd.org (Postfix) with ESMTP id 77A7837B401 for ; Sun, 7 Oct 2001 13:25:34 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts11-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011007202532.KXAO17332.tomts11-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sun, 7 Oct 2001 16:25:32 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 45FD719DD for ; Sun, 7 Oct 2001 16:25:28 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 7076B20BE2; Sun, 7 Oct 2001 16:26:00 -0400 (EDT) Delivered-To: anarcat@shall.anarcat.dyndns.org Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 01C181B05 for ; Sun, 7 Oct 2001 16:24:57 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 35B7220BE1; Sun, 7 Oct 2001 16:25:28 -0400 (EDT) Date: Sun, 7 Oct 2001 16:25:28 -0400 From: The Anarcat To: The Anarcat Subject: basic label editor stub Message-ID: <20011007162528.A28881@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. In my ongoing work on what I call the "label editor", here is a patch to release/diskedit/fdisk.tcl that creates a simple "Edit Partitions" button and a stub to call a unimplemented "disklabel" procedure. I also include a stub disklabel.tcl file that must be added to the repo in order for this change to not break anything. I will keep on working on disklabel.tcl now. A. --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Description: patch to fdisk.tcl Content-Disposition: attachment; filename="patch-2001.10.07" Index: fdisk.tcl =================================================================== RCS file: /home/libh/cvs/libh/release/diskedit/fdisk.tcl,v retrieving revision 1.6 diff -u -r1.6 fdisk.tcl --- fdisk.tcl 2001/06/10 16:10:03 1.6 +++ fdisk.tcl 2001/10/07 20:21:58 @@ -3,6 +3,33 @@ source sliceops.tcl source fdiskops.tcl +proc edit_part_callback {hui button userdata} { + + global activedisk + set listbox [$hui byName "sliceslistbox"] + set slice [$listbox select] + set slicename [$listbox text $slice] + + set chunk [[$activedisk chunks] part] + for {set index 0}\ + {![H::is_null $chunk] && [expr $index < $slice]}\ + {incr index} { + set chunk [$chunk next] + } + + # from libdisk source, type returns 3 for FreeBSD partitions + # this (3) should be a variable + if {[$chunk type] != 3} { + # can't edit that + # FIXME: put a warning here + puts stderr "unimplemented: can't edit slice, not FreeBSD" + } else { + puts stderr "found good slice, launching disklabel editor" + source disklabel.tcl + disklabel [$chunk part] + } +} + proc update_slices {} { global slices global activedisk @@ -122,6 +149,7 @@ $vcont3 button "quit_button" "&Quit" {button_click_result QUIT} $vcont3 button "undo_button" "&Undo All Changes" {undo_all ""} $vcont3 button "write_button" "Write Changes" {write_changes ""} + $vcont3 button "edit_button" "Edit &Partitions" {edit_part_callback ""} update_slices --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Description: new disklabel.tcl file Content-Disposition: attachment; filename="disklabel.tcl" proc disklabel {part} { puts stderr "unimplemented" global main_window global menubar global hui global slices global dialog global activedisk return # this is proc fdisk implementation, we'll use this as an example set activedisk [Disk $diskname] set disk $activedisk set dialog [$hui dialog $main_window [format "%sfdiskdialog" $diskname] \ $diskname "1 0" "75 18" "vertical"] set diskgeometrylabel [$dialog label "diskgeometrylabel" \ [format "Disk Geometry: %s" \ [disk_geometry_text [Disk $diskname]]]] $diskgeometrylabel resize "-1 1" set slices [$dialog listBox "sliceslistbox" {} -1 \ "Offset\tSize(ST)\tEnd\tName\tPType\tDesc\tSubtype\tFlags"] set hcont1 [$dialog container "hcont" "0 0" "horizontal"] $hcont1 resize "-1 8" set vcont1 [$hcont1 container "vcont1" "0 0" "vertical"] $vcont1 button "entire_button" "Use &Entire Disk" {entire_disk ""} $vcont1 button "create_button" "&Create Slice" {create_slice ""} $vcont1 button "delete_button" "&Delete Slice" {delete_slice ""} $vcont1 button "bootable_button" "Toggle &Bootable" {toggle_bootable ""} set vcont2 [$hcont1 container "vcont1" "0 0" "vertical"] $vcont2 button "changetype_button" "Change Type" {change_type ""} $vcont2 button "togglesize_button" "Toggle Size Units" {toggle_size ""} $vcont2 button "help_button" "Help" {fdisk_help ""} set vcont3 [$hcont1 container "vcont2" "0 0" "vertical"] $vcont3 button "quit_button" "&Quit" {button_click_result QUIT} $vcont3 button "undo_button" "&Undo All Changes" {undo_all ""} $vcont3 button "write_button" "Write Changes" {write_changes ""} $vcont3 button "edit_button" "Edit Partitions" {edit_part_callback ""} update_slices $dialog exec } --aM3YZ0Iwxop3KEKx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sun Oct 7 13:27:28 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by hub.freebsd.org (Postfix) with ESMTP id DDF2E37B403 for ; Sun, 7 Oct 2001 13:27:25 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts11-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011007202725.KXMM17332.tomts11-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sun, 7 Oct 2001 16:27:25 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id BBE771AD5 for ; Sun, 7 Oct 2001 16:27:20 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 672B220BE1; Sun, 7 Oct 2001 16:27:53 -0400 (EDT) Date: Sun, 7 Oct 2001 16:27:52 -0400 From: The Anarcat To: Libh Subject: Re: basic label editor stub Message-ID: <20011007162752.B28881@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh References: <20011007162528.A28881@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Sr1nOIr3CvdE5hEN" Content-Disposition: inline In-Reply-To: <20011007162528.A28881@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Sr1nOIr3CvdE5hEN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sorry for the bounce, this was a mistake. :) A. --Sr1nOIr3CvdE5hEN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvAuscACgkQttcWHAnWiGdc4QCfbKHQB0bntEdM9SI8xueFeHOZ XksAn1SxpZKRo2MWQXBAXG9bN+tpiHGa =+nrL -----END PGP SIGNATURE----- --Sr1nOIr3CvdE5hEN-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sun Oct 7 14:44:54 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id ED6B037B401 for ; Sun, 7 Oct 2001 14:44:50 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011007214445.PHWL10438.tomts12-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sun, 7 Oct 2001 17:44:45 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 95F411B40 for ; Sun, 7 Oct 2001 17:44:40 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 93DE420BE1; Sun, 7 Oct 2001 17:45:12 -0400 (EDT) Date: Sun, 7 Oct 2001 17:45:12 -0400 From: The Anarcat To: Libh Subject: Re: basic label editor stub Message-ID: <20011007174511.A53336@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh References: <20011007162528.A28881@shall.anarcat.dyndns.org> <20011007162752.B28881@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20011007162752.B28881@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry again, but this patch is really not good. Just forget the whole thing for now, the label editor doesn't belong where I put it, really. ;) I'll put it in the diskwizard instead. A. On Sun Oct 07, 2001 at 04:27:52PM -0400, The Anarcat wrote: > Sorry for the bounce, this was a mistake. :) >=20 > A. --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvAzOUACgkQttcWHAnWiGfLtwCeLMm0WOAtYZpZoyShUf47k+1E 5KwAnijOKUBj1X2UWEJub0Myg3OeaDGg =KLmz -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Mon Oct 8 11:22:43 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id DA4F637B405 for ; Mon, 8 Oct 2001 11:22:26 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011008182225.PCDX4321.tomts10-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Mon, 8 Oct 2001 14:22:25 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 265961B2E for ; Mon, 8 Oct 2001 14:22:21 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id EEE3720B36; Mon, 8 Oct 2001 14:23:01 -0400 (EDT) Date: Mon, 8 Oct 2001 14:23:01 -0400 From: The Anarcat To: Libh Subject: basic label editor stub, take II Message-ID: <20011008142300.B53336@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --LwW0XdcUbUexiWVK Content-Type: multipart/mixed; boundary="TRYliJ5NKNqkz5bu" Content-Disposition: inline --TRYliJ5NKNqkz5bu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi again... I fitted a label editor stub in diskwizard. (attached patch) I have made a basic "iterator" that walks a DiskChunk hierarchy, breath-first, pre-order. I have also made a simple "print_chunk" proc to test that algorithm. It works fine. I will use it to create the partition list and the editing interface. I have included these algorithms in the new disklabel.tcl file. Now, my concern is the following... Eventually, this tool will (and should) be used to manipulate things such as /etc/fstab and partitions. The thing is that a lot of partitions types are *not* supported by libhdisk. We have the type proc to have a unique integer designating the partition "type": MethodDescription("type", "type", LanguageInterface::Object::MethodDescription::fDynamic, "0 - whole, 1 - unknown, 2 - fat, 3 - freebsd, 4 - extended, 5 - part, 6= - unused", MethodDescription::vtInt, MethodDescription::vtVoid), But partition types can be much more than that! For example, it is quite possible to have a NTFS or ext2fs partitions in there. Currently, this is not very important since support for these partitions is unstable at best. But we can probably hope for best support.=20 And anyways, it would be nice to have something other than "unknown" as partition type when we know what it is, because we know (Disk.cc:420, sliceTypeNames[]). Actually, the types from sliceTypeNames are available in the DiskChunk, as subtype(). So we would probably just need to implement subtype_text() or something. And as a matter of fact, Disk::slice_type_name already implements that: case 1: for ( SliceTypeName* t =3D sliceTypeNames; t->name; ++t ) if ( subtype =3D=3D t->type ) return(t->name); return("unknown"); case 2: return("fat"); case 3: switch ( subtype ) { case 165: for ( SliceTypeName* t =3D sliceTypeNames; t->name; ++t ) if ( subtype =3D=3D t->type ) return(t->name); default: return("unknown"); } But this is not accessible from DiskChunk... Anyways, this interface is getting rather heavy. Isn't there a way to export tables such as sliceTypeNames[] from C/C++ to TCL? Keeping on the work on the label editor... A. --TRYliJ5NKNqkz5bu Content-Type: text/plain; charset=us-ascii Content-Description: patch to add partition editor button Content-Disposition: attachment; filename=patch-20011008 Content-Transfer-Encoding: quoted-printable Index: diskwizard.tcl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/diskedit/diskwizard.tcl,v retrieving revision 1.5 diff -u -r1.5 diskwizard.tcl --- diskwizard.tcl 2001/10/04 18:21:35 1.5 +++ diskwizard.tcl 2001/10/08 18:02:18 @@ -1,5 +1,12 @@ global disks =20 +proc part_callback {hui button userdata} { + + source disklabel.tcl + disklabel + +} + proc disk_geometry_text {disk} { # XXX add size of disk in MB format "%d cyls/%d heads/%d sectors =3D %d sectors" [$disk bios_cyl] [= $disk bios_hd] [$disk bios_sect] [expr [$disk bios_cyl] * [$disk bios_hd] *= [$disk bios_sect]] @@ -52,9 +59,13 @@ =20 set quit_button [$cont button "quit_button" "&Quit" {quit_callback ""}] set fdisk_button [$cont button "fdisk_button" "&FDisk" {fdisk_callback= ""}] + set label_button [$cont button "label_button" "&Partition" {part_callb= ack ""}] + $quit_button resize "10 2" $fdisk_button resize "10 2" + $label_button resize "10 2" $quit_button move "0 0" + $label_button move "19 0" $fdisk_button move "38 0" =20 set menubar [$hui menuBar] --TRYliJ5NKNqkz5bu Content-Type: application/x-tcl Content-Description: new disklabel file Content-Disposition: attachment; filename="disklabel.tcl" Content-Transfer-Encoding: quoted-printable # walk a chunk architecture, exectuting proc on each chunk=0Aproc iterate_c= hunk {chunk procname} {=0A if {[info commands $procname] !=3D $procname}= {=0A puts stderr "unknown procedure $procname!!!"=0A }=0A =0A= if {![H::is_null $chunk]} {=0A $procname $chunk=0A iterat= e_chunk [$chunk next] $procname=0A iterate_chunk [$chunk part] $proc= name=0A }=0A}=0A=0Aproc print_chunk {chunk} {=0A =0A puts [format = "%s\t%s\t%s\t%s" \=0A [$chunk name] [$chunk type_text] \=0A = [$chunk offset] [$chunk end]]=0A=0A}=0A=0A# FIXME: no default fo= r diskname please!=0A# also, diskname should be something like ad0s2=0Aproc= disklabel {} {=0A puts stderr "unimplemented"=0A global main_window= =0A global menubar=0A global hui=0A global slices=0A global dia= log=0A global activedisk=0A=0A foreach diskname [Disk::Disk_Names] {= =0A if {![string match "*cd*" $diskname] &&=0A ![string m= atch "*md*" $diskname]=0A } {=0A if { [catch {set d [Disk= $diskname]} fid] } {=0A # XXX: we should put this in a wind= ow=0A puts stderr "warning: $fid"=0A } else {=0A = set activedisk [Disk $diskname]=0A iterate_ch= unk [$activedisk chunks] "print_chunk"=0A }=0A }=0A }= =0A return=0A} --TRYliJ5NKNqkz5bu-- --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvB7wMACgkQttcWHAnWiGfaqwCfaOrzKDPjwGu5mZ9Mn5+Fi15I o7UAn3E/fUePUeaQOQgnnQODv6rWFS3g =UjEW -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Mon Oct 8 13:38:35 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 4A63837B406 for ; Mon, 8 Oct 2001 13:38:33 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f98Kc0H52942; Mon, 8 Oct 2001 13:38:01 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: freebsd-libh@freebsd.org Subject: Re: basic label editor stub, take II In-Reply-To: <20011008142300.B53336@shall.anarcat.dyndns.org> References: <20011008142300.B53336@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011008133800B.jkh@freebsd.org> Date: Mon, 08 Oct 2001 13:38:00 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 16 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Anyways, this interface is getting rather heavy. Isn't there a way to > export tables such as sliceTypeNames[] from C/C++ to TCL? Yep, several ways: 1. Instantiate a sliceTypeNames array variable using TCL's C API and populate it from the C version. On assumes that it's static, so you only need to do it once. 2. Register a sliceTypeNames procedure instead (also from C) which takes an index as an argument and returns the relevent data. This allows the sliceTypeNames variable to have more dynamic contents, and it's comparatively easy to use [sliceTypeNames 1] from TCL in lieu of sliceTypeNames(1). - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Mon Oct 8 15:57:17 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 127D737B40A; Mon, 8 Oct 2001 15:57:03 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011008225701.JBKI27994.tomts14-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Mon, 8 Oct 2001 18:57:01 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 7B6881AD0; Mon, 8 Oct 2001 18:56:56 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 66AE420B36; Mon, 8 Oct 2001 18:57:38 -0400 (EDT) Date: Mon, 8 Oct 2001 18:57:38 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: basic label editor stub, take II Message-ID: <20011008185737.G83944@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011008142300.B53336@shall.anarcat.dyndns.org> <20011008133800B.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gdTfX7fkYsEEjebm" Content-Disposition: inline In-Reply-To: <20011008133800B.jkh@freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --gdTfX7fkYsEEjebm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Oct 08, 2001 at 01:38:00PM -0700, Jordan Hubbard wrote: > > Anyways, this interface is getting rather heavy. Isn't there a way to > > export tables such as sliceTypeNames[] from C/C++ to TCL? >=20 > 2. Register a sliceTypeNames procedure instead (also from C) which > takes an index as an argument and returns the relevent data. This > allows the sliceTypeNames variable to have more dynamic contents, > and it's comparatively easy to use [sliceTypeNames 1] from TCL > in lieu of sliceTypeNames(1). this seems more appropriate to me. The proc could be seen as a "dynamic converter" between the int and the char*. So instead of doing: set d [Disk "ad0"] d type_text you would do: type_text [d type] (right?) [same with the "subtype" field] This would cut down on the number of *_text* proc needed, and consequently cleanup the interface. This would also make type_text global (?) and it would therefore be available outside the object (no?). Please remember that I'm new to the mighty H and that I do not clearly understand the relations between the C and TCL api... Ring if I'm talking nonsense. :) A. --gdTfX7fkYsEEjebm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvCL2AACgkQttcWHAnWiGdnbgCfawDjZkOlH++oZ8I3AXvymaUa 9h0An26QpbAAiSoPl1Xg4gYWeWlCLZyH =TkXx -----END PGP SIGNATURE----- --gdTfX7fkYsEEjebm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Mon Oct 8 16: 2:35 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts16-srv.bellnexxia.net (tomts16.bellnexxia.net [209.226.175.4]) by hub.freebsd.org (Postfix) with ESMTP id 6264737B405; Mon, 8 Oct 2001 16:02:32 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts16-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011008230231.IQGF8090.tomts16-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Mon, 8 Oct 2001 19:02:31 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id D15321B04; Mon, 8 Oct 2001 19:02:26 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id DBE2520B36; Mon, 8 Oct 2001 19:03:08 -0400 (EDT) Date: Mon, 8 Oct 2001 19:03:08 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: basic label editor stub, take II Message-ID: <20011008190308.H83944@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011008142300.B53336@shall.anarcat.dyndns.org> <20011008133800B.jkh@freebsd.org> <20011008185737.G83944@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gm5TwAJMO0F2iVRz" Content-Disposition: inline In-Reply-To: <20011008185737.G83944@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --gm5TwAJMO0F2iVRz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Oct 08, 2001 at 06:57:38PM -0400, The Anarcat wrote: > On Mon Oct 08, 2001 at 01:38:00PM -0700, Jordan Hubbard wrote: > > > Anyways, this interface is getting rather heavy. Isn't there a way to > > > export tables such as sliceTypeNames[] from C/C++ to TCL? > >=20 > > 2. Register a sliceTypeNames procedure instead (also from C) which > > takes an index as an argument and returns the relevent data. This > > allows the sliceTypeNames variable to have more dynamic contents, > > and it's comparatively easy to use [sliceTypeNames 1] from TCL > > in lieu of sliceTypeNames(1). Additional note, it's much more space-efficient. To store the sliceTypesNames array and index it directly, one would need at least 184 indexes, most of which would be empty. :) A. --gm5TwAJMO0F2iVRz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvCMKsACgkQttcWHAnWiGc+yACfQG4/IDU8oJhQrWkw5oA1d5qp M8IAniwsKqWOYzxJ6WOhfeSPWj7tSCaI =OIx0 -----END PGP SIGNATURE----- --gm5TwAJMO0F2iVRz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Mon Oct 8 21:39:28 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 66DF337B40A for ; Mon, 8 Oct 2001 21:39:24 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009043923.TSET2701.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 00:39:23 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id ABB1619DD for ; Tue, 9 Oct 2001 00:39:18 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 57DB220C07; Tue, 9 Oct 2001 00:40:02 -0400 (EDT) Date: Tue, 9 Oct 2001 00:40:01 -0400 From: The Anarcat To: Libh Subject: adding Disk::freespace to lib[h]disk Message-ID: <20011009004001.A25152@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I'm now placed in front of a design decision, i think. :) Either I hack Disk to make a freespace() routine there or make it part of diskedit. Of course I think it should belong to Disk, but it's not so obvious. First, all the calculations can be done in TCL, from what I understand. Second, this should be available in libdisk. :) Indeed, the algorithm is shamefully simple (again stolen form sysinstall): static int space_free(struct chunk *c) { struct chunk *c1; int sz =3D c->size; for (c1 =3D c->part; c1; c1 =3D c1->next) { if (c1->type !=3D unused) sz -=3D c1->size; } if (sz < 0) msgFatal("Partitions are larger than actual chunk??"); return sz; } Integrating this into libdisk should be easy (?). Another thought about "freespace": freespace is not a magical pool of bytes. It's made of *chunks* of unused partitions. And to make things worse, there are 2 different "layers" of freespace: the slice (dos vs fbsd) and partition (inside fbsd parts) layers. I will therefore make 2 different "labels" or kind of displays about this.=20 Ideally, I'll be able to make a nice colored bar of the sections of the disk used [uh yes... drool, drool... :)] For now, I'll just stick to freespace() and a simple text-like GUI display. :) A. --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvCf58ACgkQttcWHAnWiGePgACfQZMme353bTohFZWcwYOH8QcV lLEAmwawsuIwuH8lEqxkytwFm6id5/NR =qNoZ -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 0:39:59 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id EC6CD37B41C for ; Tue, 9 Oct 2001 00:39:47 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f997ctH54737; Tue, 9 Oct 2001 00:38:57 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: freebsd-libh@freebsd.org Subject: Re: basic label editor stub, take II In-Reply-To: <20011008185737.G83944@shall.anarcat.dyndns.org> References: <20011008142300.B53336@shall.anarcat.dyndns.org> <20011008133800B.jkh@freebsd.org> <20011008185737.G83944@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011009003855G.jkh@freebsd.org> Date: Tue, 09 Oct 2001 00:38:55 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 25 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > this seems more appropriate to me. The proc could be seen as a "dynamic > converter" between the int and the char*. So instead of doing: > > set d [Disk "ad0"] > d type_text > > you would do: > > type_text [d type] > > (right?) Sure! :) There are obviously various ways you could implement it, but it's all pretty much "6 of this, a half-dozen of that." > Please remember that I'm new to the mighty H and that I do not clearly > understand the relations between the C and TCL api... Ring if I'm > talking nonsense. :) Well, you should definitely take the time to read up on TCL's C API if you don't want to miss out on all of the options you have available for splicing the two languages together, but you seem to be getting things just fine so far! - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 11:31:28 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts17-srv.bellnexxia.net (tomts17.bellnexxia.net [209.226.175.71]) by hub.freebsd.org (Postfix) with ESMTP id 583E037B40C for ; Tue, 9 Oct 2001 11:31:25 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts17-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009183123.YTMB19597.tomts17-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 14:31:23 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id C0CD019F7 for ; Tue, 9 Oct 2001 14:31:18 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id DFB9B20C07; Tue, 9 Oct 2001 14:32:06 -0400 (EDT) Date: Tue, 9 Oct 2001 14:32:06 -0400 From: The Anarcat To: Libh Subject: How to create a GUI console in tclh Message-ID: <20011009143206.A27943@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AqsLC8rIMeq19msA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all. Would it be possible to bring up a console to interface libh (=E0 la tclh) over a running set of already running tclh? What I would like to do is to have some kind of toggle/menu/keybinding to bring up a graphical console window where it would be possible to give direct tclh commands or examine the current status of the program. Very useful for debugging/developping, this could also be used as some kind of "emergency shell" equivalent! :) And anyways, we *should* have some kind of window to hold stdout and stderr from secondary commands... I guess the problem I have is more with the reimplementation of a tcl console within Hui widgets. Any ideas? a. --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDQqUACgkQttcWHAnWiGeQCACeIAff6m4UvOE9r34jAAdJLFJZ kf0AoIrRCgMGm8AHbhOjHyBOLCjblL7j =LCIf -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 13: 4:22 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by hub.freebsd.org (Postfix) with ESMTP id 4C22037B412 for ; Tue, 9 Oct 2001 13:04:10 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts19-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009200355.FTCQ3504.tomts19-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Tue, 9 Oct 2001 16:03:55 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 708AE19F5; Tue, 9 Oct 2001 16:03:50 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id EE6B020B50; Tue, 9 Oct 2001 16:03:55 -0400 (EDT) Date: Tue, 9 Oct 2001 16:03:55 -0400 From: The Anarcat To: Alexander Langer Cc: freebsd-libh@FreeBSD.ORG Subject: Re: write_changes implementation Message-ID: <20011009160354.A601@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , freebsd-libh@FreeBSD.ORG References: <20010923232359.C17003@shall.anarcat.dyndns.org> <20010924150012.C962@zerogravity.kawo2.rwth-aachen.d> <20010924120107.A46295@shall.anarcat.dyndns.org> <20010924183508.A4175@zerogravity.kawo2.rwth-aachen.d> <20010924134740.A46796@shall.anarcat.dyndns.org> <20010924231618.A2098@zerogravity.kawo2.rwth-aachen.d> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20010924231618.A2098@zerogravity.kawo2.rwth-aachen.d> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Sep 24, 2001 at 11:16:18PM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > > > I think libh is designed to make full use of libdisk, so if libdisk > > > > works (which I assume it does), the patches work, and we don't real= ly > > > > need to test the "write" in itself".. > > > ARGH :-)=20 > > What do you mean? I thought libdisk was tested and packaged. It's not > > working properly? >=20 > libdisk works, but I don't know if libh's wrapper library works :) > (I'm quite sure it does, though) It does. I've just tested the write_changes button with an old 340Mb drive. > > disklabel's internals (apart from time to time editions with disklabel > > -e), so I rely again on libdisk. Is that proper? Should I make further > > tests on libdisk? I would need an extra disk (duh). Not so handy.. I > > guess I could dig out an old 300Mb drive somewhere. ;) >=20 > That's how I do it (I have an old 500 MB drive :) Yeah, dugged that 340M out of a 486. :) It's lovely the noise these things make, at least now I know my system is trashing. > You probably won't rely on libdisk, but on libhdisk. > See lib/disk/Disk.cd.cc for the API :-) I believe it's working. > (You can also use the old disk.tcl for examples) Coming back to libdisk, I hereby whine again about how crappy this thing is designed. :) Can someone explain to me why the heck an chunk labeled as "unknown" by libdisk (type =3D=3D 1) gets re-identified according to its subtype? (/usr/src/lib/libdisk/disk.c:613) And as a side note, there was already a drawing like the one I submitted here about DiskChunk strucutures (much less attracting, IMO :) in libdisk.h. So I guess it's "documented". A. --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDWCkACgkQttcWHAnWiGc2CwCeK9/6S7le3nAaZNGutJDxkuVh xzgAni5751m1B2iFRLbqui/tIGBIgXQL =eswT -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 14:32:57 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 07F1337B40A for ; Tue, 9 Oct 2001 14:32:53 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f99LWlj26563; Tue, 9 Oct 2001 23:32:47 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f99LWko26555; Tue, 9 Oct 2001 23:32:46 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id XAA05613; Tue, 9 Oct 2001 23:32:44 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 2E12314A76; Tue, 9 Oct 2001 23:32:43 +0200 (CEST) Date: Tue, 9 Oct 2001 23:32:43 +0200 From: Alexander Langer To: The Anarcat , freebsd-libh@FreeBSD.ORG Subject: Re: write_changes implementation Message-ID: <20011009233243.A641@zerogravity.kawo2.rwth-aachen.de> References: <20010923232359.C17003@shall.anarcat.dyndns.org> <20010924150012.C962@zerogravity.kawo2.rwth-aachen.d> <20010924120107.A46295@shall.anarcat.dyndns.org> <20010924183508.A4175@zerogravity.kawo2.rwth-aachen.d> <20010924134740.A46796@shall.anarcat.dyndns.org> <20010924231618.A2098@zerogravity.kawo2.rwth-aachen.d> <20011009160354.A601@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011009160354.A601@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Tue, Oct 09, 2001 at 04:03:55PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > It does. I've just tested the write_changes button with an old 340Mb > drive. GREAT! Woohoo! :) > Coming back to libdisk, I hereby whine again about how crappy this thing > is designed. :) Can someone explain to me why the heck an chunk labeled > as "unknown" by libdisk (type == 1) gets re-identified according to its > subtype? (/usr/src/lib/libdisk/disk.c:613) Don't know. Ask PHK :) > And as a side note, there was already a drawing like the one I > submitted here about DiskChunk strucutures (much less attracting, IMO > :) in libdisk.h. So I guess it's "documented". Hmm, maybe the developers-handbook is a better place :) Let me see if I feel like adding it later. :) Alex --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8Ns+bRIIUSeqRcRAQGY1wf/W1bFv3rM93RjYrW15LpgRahKm2zIp3ij rHfcdhjODIQlToSOUjOfGFE1urPSrefbwORi9kqU0V7bf4ME0lFEBlkn4dNfqtoL /F6x2cdd2lw8G5QBXZ7TOeJOatMd+TkkIBNfwe1chc4FNxmFTVI86bIFvvGGSBO5 3vmDdcba3Py8Lp8/0rWsk6syl0jtTPkAV7ngZK6cUHTLbJCaai4782kx3mc5bnDg 7Oa8mMt7MvH67ey+rvahwfZ+jzvSx4Gdot+iBsd/swTocoxobWYs5yDL3YjrRv0s l9eVXJI9QnQ81BvidMfbCutmG5jvB4NWTcnpdxTjWpsFoZbJ6lw4MA== =EX9r -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 16:20:14 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts15-srv.bellnexxia.net (tomts15.bellnexxia.net [209.226.175.3]) by hub.freebsd.org (Postfix) with ESMTP id 65BCE37B406 for ; Tue, 9 Oct 2001 16:20:05 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts15-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009232003.VFKX19401.tomts15-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 19:20:03 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 3780A1AB7 for ; Tue, 9 Oct 2001 19:19:57 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 2530620B50; Tue, 9 Oct 2001 19:20:08 -0400 (EDT) Date: Tue, 9 Oct 2001 19:20:07 -0400 From: The Anarcat To: Libh Subject: disklabel can now display sub parts Message-ID: <20011009192007.C601@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3Gf/FFewwPeBMqCJ" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3Gf/FFewwPeBMqCJ Content-Type: multipart/mixed; boundary="4jXrM3lyYWu4nBt5" Content-Disposition: inline --4jXrM3lyYWu4nBt5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here is some more progress on the disklabel module. I *want* to have your advice/opinion about the layout of the GUI and such. One thing: Qt here uses variable-width font, so the columns are not aligned. It would be interesting to have some "table" widget instead of "tabbed" listboxes. Here a few of the current issues: 1- Tables We have a recurring problem (both with fdisk.tcl and disklabel.tcl) of displaying a list of fields with columns. Qt really doesn't render this properly, it's ugly.=20 If there is no table widget available, I'll probably try to setup the label editor as a list of buttons/fields/labels in various containers. Then the problem will be of having this area "panable". So no buttons yet, no gizmos, just figuring out how to dig into libdisk. :) 2- General Layout and logical relation with fdisk You need to apply the previously posted patches to diskwizard to "launch" the label editor. I'm thinking very hard about how to lay this out properly. My main concern is that there is a lot of duplication from diskwizard.tcl to disklabel.tcl (the editor). Both display the disks and I could technically put a "fdisk" button in the disklabel window. Note that the "available disks" listbox is doomed to go. That or the disk units from the "available partitions" listbox. I think the disk lines are important there because they delimit which partitions are on which disk, and inform about the space left. Now, the thing is that if disklabel "replaces" diskwizard, users might be confused if they arrive to disklabel first and that there is nothing there (in the case of a new install). Logically, the fdisk operation goes before the disklabel operation... A workaround might be to popup the fdisk dialog before, but then on which disk??? I think, however, that we could expect that a user seeing something like: ############### Label Editor ##################################### #x Available partitions x## #x ad0 : all free x## #x ad1 : all free x## #x x## ################################################################## #x Quit Fdisk x## ################################################################## =2E.. would be wise enough to select the disk and press the freakin button.= :) 3- backwards disks Little quirk I haven't figured out, the disks get out backwards (ad1 then ad0)... root@shall [/usr/share/doc/handbook]# sysctl kern.disks kern.disks: cd0 ad1 ad0 md0 root@shall [/usr/share/doc/handbook]#=20 Eh! :) Apart from that, I think it's pretty neat, and I'm confident. A. --4jXrM3lyYWu4nBt5 Content-Type: application/x-tcl Content-Description: new disklabel Content-Disposition: attachment; filename="disklabel.tcl" Content-Transfer-Encoding: quoted-printable #=0A# bugs from sysinstall not to repeat:=0A# - do not "overmount" without = confirm, epecially /=0A# - must quit sysinstall to make 2 writes in disklab= el=0A=0A# translated from sysinstall=0Aproc free_space {chunk} {=0A =0A = set size [$chunk size]=0A for {set c1 [$chunk part]}\=0A {![H::is_nul= l $c1]}\=0A {set c1 [$c1 next]} {=0A # XXX: it seems we can't us= e 1 here since (?) unused=0A # freebsd space is not "unused"=0A = if {[$c1 type_text] !=3D "unused"} {=0A incr size= -[$c1 size]=0A }=0A }=0A if {$size < 0} {=0A p= uts stderr "Partitions are larger than actual chunk??"=0A }=0A return= $size=0A}=0A=0Aproc free_space_str {chunk} {=0A set free [free_space $c= hunk]=0A if {$free =3D=3D [$chunk size]} {=0A set free "all free"= =0A } elseif {$free =3D=3D 0} {=0A set free "complete" =0A } e= lse {=0A set free [format "%d/%d free" $free [$chunk size]]=0A }= =0A return $free=0A}=0A=0A# walk a chunk architecture, exectuting proc o= n each chunk=0A# this does not belong here, but more to lib/disk/=0Aproc it= erate_chunk {chunk procname {level 0}} {=0A if {[info commands $procname= ] !=3D $procname} {=0A puts stderr "unknown procedure $procname!!!"= =0A }=0A =0A if {![H::is_null $chunk]} {=0A $procname $chun= k $level=0A iterate_chunk [$chunk next] $procname $level=0A i= terate_chunk [$chunk part] $procname [expr $level + 1]=0A }=0A}=0A=0Apro= c print_chunk {chunk level} {=0A =0A puts [format "%d %10s %10s %10s = %10s" \=0A $level [$chunk name] [$chunk type_text] \=0A = [$chunk offset] [$chunk end]]=0A=0A}=0A=0Aproc add_chunk {chunk {level 0= }} {=0A=0A global parts=0A add_chunk_r $parts $chunk $level=0A=0A}=0A= =0Aproc add_chunk_r {listbox chunk level} {=0A =0A switch [$chunk typ= e] {=0A # whole=0A 0 {$listbox add [$listbox numberOfItems] [= whole_format $chunk]}=0A # unknown=0A 1 {$listbox add [$listb= ox numberOfItems] [part_format $chunk]}=0A # fat=0A 2 {$listb= ox add [$listbox numberOfItems] [dos_format $chunk]}=0A # fbsd=0A = 3 {$listbox add [$listbox numberOfItems] [fbsd_format $chunk]}=0A = # extended=0A 4 {$listbox add [$listbox numberOfItems] [dos_forma= t $chunk]}=0A # part=0A 5 {$listbox add [$listbox numberOfIte= ms] [part_format $chunk]}=0A # unused=0A 6 {=0A i= f {$level < 2} {=0A $listbox add [$listbox numberOfItems] [= unused_format $chunk]=0A }=0A }=0A default {} = =0A }=0A}=0A=0Aproc unused_format {chunk} {=0A return [format "= %-10s: %-18d %-18d unused" \=0A [$chunk name] [$chunk of= fset] [$chunk end]]=0A}=0A=0Aproc fbsd_format {chunk} {=0A return [forma= t "%-10s: %-18d %-18d fbsd (%s)" \=0A [$chunk name] [$chunk = offset] [$chunk end] [free_space_str $chunk]]=0A}=0A=0Aproc whole_format {c= hunk} {=0A return [format "%-10s: %s" \=0A [$chunk name] = [free_space_str $chunk]]=0A}=0A=0Aproc dos_format {chunk} {=0A switch [$= chunk subtype] {=0A 1 {set type "fat12"}=0A 4 -=0A 6 {= set type "fat16"}=0A 11 -=0A 12 -=0A 14 {set type "fat= 32"}=0A 5 -=0A 15 {set type "extended"}=0A default {se= t type "fat"}=0A }=0A return [format "%-10s: %-18d %-18d %s %s" \=0A = [$chunk name] [$chunk offset] [$chunk end] \=0A = $type [$chunk type_text]]=0A}=0A=0Aproc part_format {chunk} {=0A if {= [$chunk subtype] =3D=3D 7} {=0A set type "FFS"=0A } elseif {[$chu= nk subtype] =3D=3D 1} {=0A set type "Swap"=0A } else {=0A = set type [$chunk subtype]=0A }=0A return [format "%-10s: %-18d %-18d = %s %s" \=0A [$chunk name] [$chunk offset] [$chunk end] \=0A = $type [$chunk type_text]]=0A}=0A=0Aproc update_all {slices} = {=0A =0A global progress=0A global parts=0A =0A $parts remov= eAll=0A $slices removeAll=0A =0A foreach disk_name [Disk::Disk_Nam= es] {=0A if {![string match "*cd*" $disk_name] &&=0A ![st= ring match "*md*" $disk_name]=0A } {=0A if { [catch {set = disk [Disk $disk_name]} fid] } {=0A # XXX: we should put thi= s in a window=0A puts stderr "warning: $fid"=0A }= else {=0A set whole [$disk chunks]=0A $slice= s add 0 [format "%5s %30s (%d free)" \=0A $di= sk_name [disk_geometry_text $disk] [free_space [$whole part]]]=0A# = $progress progressIndicator [format "%s_prog" $disk_name] 0 [$whole = size] 0=0A# iterate_chunk $whole "print_chunk" 0=0A = iterate_chunk $whole "add_chunk" 0=0A }=0A }=0A = }=0A $slices select 0=0A $parts select 0=0A}=0A=0Aproc disklabel {} = {=0A puts stderr "unimplemented"=0A global main_window=0A global m= enubar=0A global hui=0A global slices=0A global parts=0A global= dialog=0A global activedisk=0A global progress=0A=0A set dialog [= $hui dialog $main_window "labeldialog"\=0A "Label Editor= " "1 0" "75 18" "vertical"]=0A =0A# set progress [$hcont1 container "= vcont2" "0 0" "vertical"]=0A=0A set slices [$dialog listBox "sliceslistb= ox" {} -1 \=0A "Available disks"]=0A set parts [$dialog listBox "pa= rtslistbox" {} -1 \=0A "Available partitions"]=0A =0A = =0A # now this edits:=0A # - a DiskChunk:=0A # + =0A # - a= mountpoint=0A # - if we newfs this part=0A # - newfs flags=0A # -= type (by setting subtype or type)=0A # - =0A update_all $slices=0A= =0A $dialog exec=0A} --4jXrM3lyYWu4nBt5 Content-Type: text/plain; charset=us-ascii Content-Description: old patch Content-Disposition: attachment; filename=patch-20011008 Content-Transfer-Encoding: quoted-printable Index: diskwizard.tcl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/diskedit/diskwizard.tcl,v retrieving revision 1.5 diff -u -r1.5 diskwizard.tcl --- diskwizard.tcl 2001/10/04 18:21:35 1.5 +++ diskwizard.tcl 2001/10/08 18:02:18 @@ -1,5 +1,12 @@ global disks =20 +proc part_callback {hui button userdata} { + + source disklabel.tcl + disklabel + +} + proc disk_geometry_text {disk} { # XXX add size of disk in MB format "%d cyls/%d heads/%d sectors =3D %d sectors" [$disk bios_cyl] [= $disk bios_hd] [$disk bios_sect] [expr [$disk bios_cyl] * [$disk bios_hd] *= [$disk bios_sect]] @@ -52,9 +59,13 @@ =20 set quit_button [$cont button "quit_button" "&Quit" {quit_callback ""}] set fdisk_button [$cont button "fdisk_button" "&FDisk" {fdisk_callback= ""}] + set label_button [$cont button "label_button" "&Partition" {part_callb= ack ""}] + $quit_button resize "10 2" $fdisk_button resize "10 2" + $label_button resize "10 2" $quit_button move "0 0" + $label_button move "19 0" $fdisk_button move "38 0" =20 set menubar [$hui menuBar] --4jXrM3lyYWu4nBt5-- --3Gf/FFewwPeBMqCJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDhiYACgkQttcWHAnWiGdOFACZAakWGfDSlrpMmsgm+DRv3WKd stUAn2nUD0upSJwr4TpzU1/8wqiQHQrp =JSmC -----END PGP SIGNATURE----- --3Gf/FFewwPeBMqCJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 16:38:40 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 8C9B037B406 for ; Tue, 9 Oct 2001 16:38:29 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f99NbXH57482; Tue, 9 Oct 2001 16:37:35 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: freebsd-libh@freebsd.org Subject: Re: How to create a GUI console in tclh In-Reply-To: <20011009143206.A27943@shall.anarcat.dyndns.org> References: <20011009143206.A27943@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20011009163733T.jkh@freebsd.org> Date: Tue, 09 Oct 2001 16:37:33 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 48 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This should be fairly easy to do - just take a look at what tclsh does to implement its command parser. You basically just want to read in a text string, call TCL's evaluator on it, and insert the results back into the console window. I'm sure libh has some sort of scrolling text widget already, right? I'm ashamed to say I haven't looked lately, but this should be a very straight-forward "junior libh hacker" sort of project. You may also want to redirect stdout somewhere so that things like "puts" behave correctly, given some definition of "correct." - Jordan From: The Anarcat Subject: How to create a GUI console in tclh Date: Tue, 9 Oct 2001 14:32:06 -0400 > Hi all. > = > Would it be possible to bring up a console to interface libh (=E0 la t= clh) > over a running set of already running tclh? > = > What I would like to do is to have some kind of toggle/menu/keybinding= > to bring up a graphical console window where it would be possible to > give direct tclh commands or examine the current status of the > program. > = > Very useful for debugging/developping, this could also be used as some= > kind of "emergency shell" equivalent! :) And anyways, we *should* have= > some kind of window to hold stdout and stderr from secondary commands.= .. > = > I guess the problem I have is more with the reimplementation of a tcl > console within Hui widgets. > = > Any ideas? > = > a. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 16:43:32 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by hub.freebsd.org (Postfix) with ESMTP id 2476237B405; Tue, 9 Oct 2001 16:43:28 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts9-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009234320.NWSS29786.tomts9-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Tue, 9 Oct 2001 19:43:20 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B0F8819F5; Tue, 9 Oct 2001 19:43:12 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 0369120B50; Tue, 9 Oct 2001 19:43:22 -0400 (EDT) Date: Tue, 9 Oct 2001 19:43:22 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: How to create a GUI console in tclh Message-ID: <20011009194322.E601@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qp4W5+cUSnZs0RIF" Content-Disposition: inline In-Reply-To: <20011009163733T.jkh@freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qp4W5+cUSnZs0RIF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue Oct 09, 2001 at 04:37:33PM -0700, Jordan Hubbard wrote: > This should be fairly easy to do - just take a look at what tclsh does > to implement its command parser. You basically just want to read in a > text string, call TCL's evaluator on it,=20 I'm absolutely non-worried about that. I already implemented some basic Tk tcl shell as a primary Tk exercise. :) > and insert the results back into the console window.=20 That is the whole problem. How can I redirect a stream to a window??? > I'm sure libh has some sort of scrolling > text widget already, right? I'm ashamed to say I haven't looked > lately, but this should be a very straight-forward "junior libh > hacker" sort of project.=20 Yah... Well, my only concern is with streams redirection... > You may also want to redirect stdout > somewhere so that things like "puts" behave correctly, given some > definition of "correct." I guess the only way would be to "read" the output line by line and then write it to the window... Thanks! A. --qp4W5+cUSnZs0RIF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDi5kACgkQttcWHAnWiGfYJgCfSIFbcKIEL/W9rVvqOe4y5JqJ l4YAniQdZXaAYNnP9to9LeMVgXcRphhM =Ir6q -----END PGP SIGNATURE----- --qp4W5+cUSnZs0RIF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 16:51:32 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id A6DA337B407 for ; Tue, 9 Oct 2001 16:51:25 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f99NomH57528; Tue, 9 Oct 2001 16:50:52 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: freebsd-libh@freebsd.org Subject: Re: How to create a GUI console in tclh In-Reply-To: <20011009194322.E601@shall.anarcat.dyndns.org> References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> <20011009194322.E601@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011009165048X.jkh@freebsd.org> Date: Tue, 09 Oct 2001 16:50:48 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 37 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The Tcl "channel" abstraction should provide everything you need - in particular, you can stack channels on top of one another in order to implement this kind of redirection or you can close a channel, like stdout, and reassign it to something like a pipe. - Jordan > On Tue Oct 09, 2001 at 04:37:33PM -0700, Jordan Hubbard wrote: > > This should be fairly easy to do - just take a look at what tclsh does > > to implement its command parser. You basically just want to read in a > > text string, call TCL's evaluator on it, > > I'm absolutely non-worried about that. I already implemented some basic > Tk tcl shell as a primary Tk exercise. :) > > > and insert the results back into the console window. > > That is the whole problem. How can I redirect a stream to a window??? > > > > I'm sure libh has some sort of scrolling > > text widget already, right? I'm ashamed to say I haven't looked > > lately, but this should be a very straight-forward "junior libh > > hacker" sort of project. > > Yah... Well, my only concern is with streams redirection... > > > You may also want to redirect stdout > > somewhere so that things like "puts" behave correctly, given some > > definition of "correct." > > I guess the only way would be to "read" the output line by line and then > write it to the window... > > Thanks! > > A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 18:28:38 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 7046B37B407 for ; Tue, 9 Oct 2001 18:28:34 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010012833.NUJJ10438.tomts12-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 21:28:33 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id E776419FC for ; Tue, 9 Oct 2001 21:28:28 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6538920C07; Tue, 9 Oct 2001 21:28:38 -0400 (EDT) Date: Tue, 9 Oct 2001 21:28:37 -0400 From: The Anarcat To: Libh Subject: bug in Hui::run? Message-ID: <20011009212837.B603@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Well well... I think I found some kind of a "bug", if I might say... I am working on a tclh console. I have made a little textEdit field where I paste code and a button labeled "eval". :)=20 I eval'd "source console.tcl" in the console. Another console popped up, but the other is freezed! And a nice little message pops on stderr: QApplication: There should be max one application object :) libh shouldn't allow ppl to create a second QApplication, we can't expect them to "run" together. So, to reproduce: 1- run "tclh console.tcl" 2- in the upleft field, type "source console.tcl" 3- hit the eval button another console pops up and the original freezes. I guess it's also a matter of "policy" wrt the lib. We could probably just simply make a check in HuiQt::run(), I guess... In tvision, it seems to be doing nothing, however, I think it's popping another instance without complaining. I do not know how to navigate through tv windows (eg how do I focus to the eval button when I finished typing in the field?) so I cannot really test this. BTW, I'm trying to get the "command field" and the eval button to be of fixed size vertically, how can I do that? Another thing: how can I trigger an event when the user types "enter" in an inputLine? thanks, A. --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDpEMACgkQttcWHAnWiGeB+gCdFLged3aVWFJ1rTTRirDkUADK WgQAnApKUrGi/TdF398nzn0w/bVKCjpN =5ltC -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 18:42:26 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 0D98137B403 for ; Tue, 9 Oct 2001 18:42:23 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010014222.OBSV10438.tomts12-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 21:42:22 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 1CBEE19F7 for ; Tue, 9 Oct 2001 21:42:18 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id E6E7A20C07; Tue, 9 Oct 2001 21:42:27 -0400 (EDT) Date: Tue, 9 Oct 2001 21:42:27 -0400 From: The Anarcat To: Libh Subject: Re: bug in Hui::run? Message-ID: <20011009214227.C603@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh References: <20011009212837.B603@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: <20011009212837.B603@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Of course I had to forget the attachment. Note that I have found another strange phenomenon I do not comprehend: This works: anarcat@shall[~/libh/release/diskedit]% tclh =20 % eval set b 2 2 % eval puts $b 2 %=20 But doing this is my console program doesn't. Why? It's the same statement: anarcat@shall[~/libh/release/diskedit]% grep eval console.tcl=20 cons_append [eval [$command text]] anarcat@shall[~/libh/release/diskedit]%=20 Thx a. --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDp4IACgkQttcWHAnWiGec0ACdHFqWwxhDD2lY1NgUqtHUEuuD 4uMAnjOIsWwCrmnkoJEWUBWSz881mOsO =7gaD -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 18:45:20 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by hub.freebsd.org (Postfix) with ESMTP id ED9E837B401 for ; Tue, 9 Oct 2001 18:45:15 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts5-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010014514.NSRS27768.tomts5-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 21:45:14 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 5924B19F7 for ; Tue, 9 Oct 2001 21:45:10 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6F5F120C07; Tue, 9 Oct 2001 21:45:20 -0400 (EDT) Date: Tue, 9 Oct 2001 21:45:20 -0400 From: The Anarcat To: Libh Subject: Re: bug in Hui::run? Message-ID: <20011009214519.D603@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh References: <20011009212837.B603@shall.anarcat.dyndns.org> <20011009214227.C603@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wTWi5aaYRw9ix9vO" Content-Disposition: inline In-Reply-To: <20011009214227.C603@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --wTWi5aaYRw9ix9vO Content-Type: multipart/mixed; boundary="hoZxPH4CaxYzWscb" Content-Disposition: inline --hoZxPH4CaxYzWscb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable AAAAAAAAARGHJ! ok, that's it for tonight.=20 here's the file. A. --hoZxPH4CaxYzWscb Content-Type: application/x-tcl Content-Disposition: attachment; filename="console.tcl" Content-Transfer-Encoding: quoted-printable proc read_cmd {hui button data} {=0A=0A global command=0A cons_append= [eval [$command text]]=0A}=0A=0Aproc cons_append {string} {=0A global c= ons_out=0A =0A $cons_out text [format "%s%s\n" [$cons_out text] $string= ]=0A=0A}=0A=0A# Create the main-window and its elements=0Aproc cons_make_ma= in_win {hui} {=0A global command=0A global cons_w=0A global cons_o= ut=0A =0A # Create a main_window with title, x/y offset and x/y size= =0A set cons_w [$hui window cons_w "Console" "0 0" "25 5" "vertical"] = =0A =0A set cmd_cont [$cons_w container "container"]=0A # Define t= he widget we want to add=0A set command [$cmd_cont inputLine "Console Co= mmand" "" -1]=0A $command resize {10 10}=0A $cmd_cont button "gobutto= n" "&Eval" {read_cmd ""} "default"=0A =0A set cons_out [$cons_w textE= dit "Console Output" "" FALSE]=0A =0A # Finally, show the window=0A = $cons_w show=0A}=0A=0A# Init UI=0Aset hui [Hui::open "auto"]=0A=0A# Creat= e the main-window=0Acons_make_main_win $hui=0A=0A# Run hui=0A$hui run=0A=0A= # proc init_console {hui} {=0A# global console=0A# global console_o= ut=0A =0A# # Create a main_window with title, x/y offset and x/y siz= e=0A# set console_window [$hui window console_window "Hello World in li= bh" "0 0" "25 5" "vertical"] =0A =0A# # Define the widget we want to= add=0A# set console_out [$console_window textEdit "console_out" "" TRU= E]=0A =0A# # Finally, show the window=0A# $console_out show=0A= =0A# # set console [$hui window "console_window" "Console" "14 0" "50 2= 0"]=0A# # $console show=0A=0A# # $console erase=0A# # $console = arrange "vertical"=0A=0A# # set command [$console textEdit "command_fie= ld" "" 1 "TCLH Command" "0 0" "5 10"]=0A# # $command resize "-1 1"=0A= =0A# # set cont [$console container "container" "0 0" "free"]=0A# # = $cont resize "-1 2"=0A# # set console_out [$console textEdit "console_= output" "" 0 "Console Output" "0 0" "5 10"]=0A# # $console resize "-1 5= "=0A=0A# }=0A=0A# init_console $hui=0A=0A# $hui run --hoZxPH4CaxYzWscb-- --wTWi5aaYRw9ix9vO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDqC8ACgkQttcWHAnWiGdIMwCfeSYyDDPMBsDgmh/J38Qy7SrN d5QAn3P4GfTYp47TIQHRA30UfovlITEi =Ai1G -----END PGP SIGNATURE----- --wTWi5aaYRw9ix9vO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 19:25: 6 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 6C04537B409 for ; Tue, 9 Oct 2001 19:24:59 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f9A2N9H57943; Tue, 9 Oct 2001 19:23:14 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: freebsd-libh@freebsd.org Subject: Re: bug in Hui::run? In-Reply-To: <20011009214227.C603@shall.anarcat.dyndns.org> References: <20011009212837.B603@shall.anarcat.dyndns.org> <20011009214227.C603@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011009192309K.jkh@freebsd.org> Date: Tue, 09 Oct 2001 19:23:09 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 26 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Erm, shouldn't that be [eval $command text] ? > Of course I had to forget the attachment. > > Note that I have found another strange phenomenon I do not comprehend: > > This works: > > anarcat@shall[~/libh/release/diskedit]% tclh > % eval set b 2 > 2 > % eval puts $b > 2 > % > > But doing this is my console program doesn't. Why? It's the same > statement: > > anarcat@shall[~/libh/release/diskedit]% grep eval console.tcl > cons_append [eval [$command text]] > anarcat@shall[~/libh/release/diskedit]% > > Thx > > a. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 19:31:45 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id F0B3737B401; Tue, 9 Oct 2001 19:31:41 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010023141.KVTU2701.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Tue, 9 Oct 2001 22:31:41 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 261D419FA; Tue, 9 Oct 2001 22:31:36 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 8D05A20C07; Tue, 9 Oct 2001 22:31:44 -0400 (EDT) Date: Tue, 9 Oct 2001 22:31:44 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: bug in Hui::run? Message-ID: <20011009223143.A1253@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011009212837.B603@shall.anarcat.dyndns.org> <20011009214227.C603@shall.anarcat.dyndns.org> <20011009192309K.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <20011009192309K.jkh@freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I don't think so. "$command text" is a command that returns the content of the $command inputLine. :) A. On Tue Oct 09, 2001 at 07:23:09PM -0700, Jordan Hubbard wrote: > Erm, shouldn't that be [eval $command text] ? --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDsw8ACgkQttcWHAnWiGc5hgCff9qdKgkutYO3MPPYQ5Fh8TZC t1wAn1LPDgHkQqhA7a9ETWO6L5FipRQe =i5xu -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Tue Oct 9 23:47:59 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts16-srv.bellnexxia.net (tomts16.bellnexxia.net [209.226.175.4]) by hub.freebsd.org (Postfix) with ESMTP id D65A637B405 for ; Tue, 9 Oct 2001 23:47:54 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts16-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010064753.IZXL8090.tomts16-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Wed, 10 Oct 2001 02:47:53 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id CADCB1A07 for ; Wed, 10 Oct 2001 02:47:49 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 83C2420C07; Wed, 10 Oct 2001 02:48:00 -0400 (EDT) Date: Wed, 10 Oct 2001 02:47:59 -0400 From: The Anarcat To: Libh Subject: should label editor look current mnt fs? Message-ID: <20011010024759.B1253@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CUfgB8w4ZwR/yMy5" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --CUfgB8w4ZwR/yMy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi I've run into problems when using our current sysinstall to update mountpoints or create new partitions or disks destinated to other machines. What I did is that I created the disk, labeled it and *assigned mount points*. Funny thing, mounting another partition over /. Anyways, I wondered why sysinstall let me do such a stupid thing. I think the label editor should not let this happen. :) And in doing, it should tell the user where its disks are mounted, if they are. So instead of having: #x ad0s2e : 7884688 8089487 FFS x## you would have: #x ad0s2e : 7884688 8089487 FFS /tmp x## I would like that. :) I think this would involve connecting getmntinfo(3) to the libh API.=20 Does this belong to libhdisk? for those who care, here is sample tv output of labeledit: #x Available partitio x########## #x ad1s1f : 424647 666599 N ffs x########## #x ad0 : 63/60030432 free x########## #x - : 0 62 - unused x########## #x ad0s1 : 63 7167887 - fat32 x########## #x ad0s2 : 7167888 60030431 - fbsd (complete) x########## #x ad0s2a : 7167888 7372687 N ffs x########## #x ad0s2b : 7372688 7884687 - swap swap x########## Yes, the word "partitions" is truncated, I ignore why. A. --CUfgB8w4ZwR/yMy5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvD7x4ACgkQttcWHAnWiGdiqgCfTtYzfgUGJ9AJeByoFH5VYk33 /OgAn0ELT5VmO0nkXrspeK8WCDwMWc9g =kouM -----END PGP SIGNATURE----- --CUfgB8w4ZwR/yMy5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 2:31:10 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 9838437B406 for ; Wed, 10 Oct 2001 02:31:05 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9A9V1j05280; Wed, 10 Oct 2001 11:31:01 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9A9V0o05276; Wed, 10 Oct 2001 11:31:00 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA32106; Wed, 10 Oct 2001 11:30:59 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id A693F14AAF; Wed, 10 Oct 2001 11:31:02 +0200 (CEST) Date: Wed, 10 Oct 2001 11:31:02 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: adding Disk::freespace to lib[h]disk Message-ID: <20011010113102.C1967@zerogravity.kawo2.rwth-aachen.de> References: <20011009004001.A25152@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011009004001.A25152@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Tue, Oct 09, 2001 at 12:40:01AM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > Integrating this into libdisk should be easy (?). Yeah, if you can add it to libdisk, I really think we can commit it and also change sysinstall to use it. > I will therefore make 2 different "labels" or kind of displays about > this.=20 Seems ok. > Ideally, I'll be able to make a nice colored bar of the sections of the > disk used [uh yes... drool, drool... :)] Cool :) Take a look at the ProgressBar GUI element, it should be what you need. Remember that we have no graphics in TVision, but ProgressBar works on both, Qt + TVision. > For now, I'll just stick to freespace() and a simple text-like GUI > display. :) Alex --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8QVVbRIIUSeqRcRAQHdUwf9GqoPEaaqLANrCCZDFeSDe5qFRKIZ4bHd BNfEPU93+UBUCpEmGv+Y8v5j1jgaDocIkDDgy6S9mMQ1gGWnBFuzC5uAFRuDjzFZ Ah/MRKX0QNHeLJrE8DMoaV2qt+e1wjtdHkISHOtbxIeWOR1GQ5Lsrwq+2V9hltLb 1rp4EfAA7bcMRoKE+keQ5m9nBkGEzsIabtNZkC5uc7/gykAl3qAX6TFGDJ08vMUv Ip4spbvqqXRo2iBRD2act2Nd+hFScwemTQAzOxICQHfvOfbGs20MKy8eBVIxecHY SzXubV2UppzmevuGZdFW744gJCosAxASqvWe1cNj2rH9X5Z0yo6Wmg== =ThdU -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 2:33:36 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 794CB37B408; Wed, 10 Oct 2001 02:33:32 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9A9XSj05910; Wed, 10 Oct 2001 11:33:28 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9A9XRo05903; Wed, 10 Oct 2001 11:33:27 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA32217; Wed, 10 Oct 2001 11:33:26 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id EB1B514AAF; Wed, 10 Oct 2001 11:33:29 +0200 (CEST) Date: Wed, 10 Oct 2001 11:33:29 +0200 From: Alexander Langer To: Jordan Hubbard Cc: anarcat@anarcat.dyndns.org, freebsd-libh@FreeBSD.ORG Subject: Re: How to create a GUI console in tclh Message-ID: <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de> References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011009163733T.jkh@freebsd.org>; from jkh@FreeBSD.ORG on Tue, Oct 09, 2001 at 04:37:33PM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Jordan Hubbard (jkh@FreeBSD.ORG): > to implement its command parser. You basically just want to read in a > text string, call TCL's evaluator on it, and insert the results back > into the console window. Can this be done with TCL's "eval"? Hmm, otoh, I don't know exactly what you want to do :) > I'm sure libh has some sort of scrolling > text widget already, right? Yeah, indeed. We have a multiple-line-textwidget. Maybe you cannot scroll it from within TCL yet, but this should be easy to add. I can do that if there is need. Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 2:41:17 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id DA61037B403 for ; Wed, 10 Oct 2001 02:41:12 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9A9f7j07540; Wed, 10 Oct 2001 11:41:07 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9A9f6o07536; Wed, 10 Oct 2001 11:41:06 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA32498; Wed, 10 Oct 2001 11:41:04 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 5115414AAF; Wed, 10 Oct 2001 11:41:08 +0200 (CEST) Date: Wed, 10 Oct 2001 11:41:08 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: disklabel can now display sub parts Message-ID: <20011010114108.E1967@zerogravity.kawo2.rwth-aachen.de> References: <20011009192007.C601@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011009192007.C601@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Tue, Oct 09, 2001 at 07:20:07PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > such. One thing: Qt here uses variable-width font, so the columns are > not aligned. It would be interesting to have some "table" widget > instead of "tabbed" listboxes. That's on my todo. Basically, I want to rewrite Qt's "tabbed" part to use Qt table widgets to display correctly (== aligned). So Listboxes could be used w/o tables and w/ tables. If you need it, use \t alignment for now, and I'll implement it ASAP. > If there is no table widget available, I'll probably try to setup the > label editor as a list of buttons/fields/labels in various containers. > Then the problem will be of having this area "panable". Ouch, no. I already know _how_ to add support for this to Qt's listbox widget, but it's an annoying task since you have to recalculate for every add/remove of lines... . I should do it, nevertheless. Maybe this evening :) > Note that the "available disks" listbox is doomed to go. That or the > disk units from the "available partitions" listbox. I think the disk > lines are important there because they delimit which partitions are on > which disk, and inform about the space left. Feel free to remove every duplicated code, and do more stuff. To be honest, I didn't really design the diskeditor before starting working on it, so if you find design issues now, you should fix them :)) > Now, the thing is that if disklabel "replaces" diskwizard, users might > be confused if they arrive to disklabel first and that there is nothing > there (in the case of a new install). Logically, the fdisk operation If it's still easy and straightforward to create those stuff, I'm ok with those changes. > goes before the disklabel operation... A workaround might be to popup > the fdisk dialog before, but then on which disk??? That's why I did those initial screen :) > I think, however, that we could expect that a user seeing something > like: Look good. > Little quirk I haven't figured out, the disks get out backwards (ad1 > then ad0)... Yeah. Sort them manually in libh, we can't rely on kern.disks here. I really don't know what happens to pcmcia disks anyways - are they added to the end of the list? etc... Content-Description: new disklabel I haven't tested this yet, but looks awesome. Will do tonight :) Great stuff! Alex --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8QXsrRIIUSeqRcRAQH+Swf/aLhR/A8v5rbw+IX/LVQvzehxIwEkBy/2 aXVIUJG3s9J+5uavrwsjg3ZIrqmRPCMoHMeciSBiZ1BZag/2/24VfUsoGFiy8/+F OoYU5OPr+ntZBStNqtn96LIU+kTP/zDIheLbesHtizO//XNqDj7vWR6k0oZZqS5r O2m67+yaVlvojb/SxFF7qLQqDEcEHKS67snJINWWRxs4Cga9V/M8JroCtJzVx2jZ Y1UhdD8MvqF3WkqMdLsK6/IAUWSHREv96irw8u8WiHn91/kXHs9e8A+4AOMFkwvX jcO8xhA3ja6WgL/V3+u94cAe0GiWXeOc9Rlgz7vWGrmyDsrDNkh9PA== =Yefu -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 9:15:29 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 630D337B40A; Wed, 10 Oct 2001 09:15:25 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010161524.SQAA27994.tomts14-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 12:15:24 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 292731AC8; Wed, 10 Oct 2001 12:15:19 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 9EA4520B50; Wed, 10 Oct 2001 12:15:30 -0400 (EDT) Date: Wed, 10 Oct 2001 12:15:30 -0400 From: The Anarcat To: Alexander Langer Cc: Jordan Hubbard , freebsd-libh@FreeBSD.ORG Subject: Re: How to create a GUI console in tclh Message-ID: <20011010121529.A531@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Jordan Hubbard , freebsd-libh@FreeBSD.ORG References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed Oct 10, 2001 at 11:33:29AM +0200, Alexander Langer wrote: > Thus spake Jordan Hubbard (jkh@FreeBSD.ORG): >=20 > > to implement its command parser. You basically just want to read in a > > text string, call TCL's evaluator on it, and insert the results back > > into the console window. >=20 > Can this be done with TCL's "eval"? Yes. Did it. :) > Hmm, otoh, I don't know exactly what you want to do :) A console that looks the same as if you just type "tclh" but within a libh widget. > > I'm sure libh has some sort of scrolling > > text widget already, right? >=20 > Yeah, indeed. We have a multiple-line-textwidget. > Maybe you cannot scroll it from within TCL yet, but this should > be easy to add. I can do that if there is need. Actually, what I would need would be a handy "append" proc. Because right now I must use something like: $textedit text [format "%s%s\n" [$textedit text] $newtext] instead of $textedit append $newtext Oh, and I would need a hook from the lineEdit widget that is called whenever a "enter" is typed, if possible. :) A. --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEdCAACgkQttcWHAnWiGcF4gCfS7kf1W9hSYFrviJZYKahn/z2 +EEAn1ZI5HitzULMPG5j68oQms9C8pMK =xucB -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 9:39:56 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 6A1AC37B406 for ; Wed, 10 Oct 2001 09:39:51 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010163950.TBCW27994.tomts14-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 12:39:50 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 4CBFF1AC8; Wed, 10 Oct 2001 12:39:45 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 1CFD820B50; Wed, 10 Oct 2001 12:39:57 -0400 (EDT) Date: Wed, 10 Oct 2001 12:39:56 -0400 From: The Anarcat To: Alexander Langer Cc: Libh Subject: Re: disklabel can now display sub parts Message-ID: <20011010123956.B531@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh References: <20011009192007.C601@shall.anarcat.dyndns.org> <20011010114108.E1967@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: <20011010114108.E1967@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed Oct 10, 2001 at 11:41:08AM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > such. One thing: Qt here uses variable-width font, so the columns are > > not aligned. It would be interesting to have some "table" widget > > instead of "tabbed" listboxes. >=20 > That's on my todo. Basically, I want to rewrite Qt's "tabbed" part > to use Qt table widgets to display correctly (=3D=3D aligned). > So Listboxes could be used w/o tables and w/ tables. ok.. so hack listbox.. hmm... shouldn't we use a "table widget" as such? as in QListView? > If you need it, use \t alignment for now, and I'll implement it > ASAP. =20 no hurry. But yes, it would make the editor look nicer. :) > > If there is no table widget available, I'll probably try to setup the > > label editor as a list of buttons/fields/labels in various containers. > > Then the problem will be of having this area "panable". >=20 > Ouch, no. I already know _how_ to add support for this to Qt's > listbox widget, but it's an annoying task since you have to > recalculate for every add/remove of lines... . >=20 > I should do it, nevertheless. Maybe this evening :) No hurry, again. The GUI is the candy, I'm looking at implementing functionality, right now. After I'll make it look cute. :) > > Note that the "available disks" listbox is doomed to go. That or the > > disk units from the "available partitions" listbox. I think the disk > > lines are important there because they delimit which partitions are on > > which disk, and inform about the space left. >=20 > Feel free to remove every duplicated code, and do more stuff. > To be honest, I didn't really design the diskeditor before > starting working on it, so if you find design issues now, > you should fix them :)) > > Now, the thing is that if disklabel "replaces" diskwizard, users might > > be confused if they arrive to disklabel first and that there is nothing > > there (in the case of a new install). Logically, the fdisk operation >=20 > If it's still easy and straightforward to create those stuff, > I'm ok with those changes. ack. > > goes before the disklabel operation... A workaround might be to popup > > the fdisk dialog before, but then on which disk??? >=20 > That's why I did those initial screen :) Yes, but the label editor looks *a lot* like this initial screen, when no disks are fdisk'd. > > Little quirk I haven't figured out, the disks get out backwards (ad1 > > then ad0)... >=20 > Yeah. Sort them manually in libh, we can't rely on kern.disks here. k. > I really don't know what happens to pcmcia disks anyways - are > they added to the end of the list? etc... let's hope so... no pcmcia to test here.. :) a. --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEedsACgkQttcWHAnWiGfAIwCfdA8+KRcIVm0Fecc+yJhOZYBB PwMAniZKAfVmZFtla3VXYBYmKNasFNvm =yV8d -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 9:43:41 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by hub.freebsd.org (Postfix) with ESMTP id 38DDD37B406; Wed, 10 Oct 2001 09:43:37 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts19-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010164336.WOPZ3504.tomts19-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 12:43:36 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 769B718E1; Wed, 10 Oct 2001 12:43:31 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 63D1D20B50; Wed, 10 Oct 2001 12:43:42 -0400 (EDT) Date: Wed, 10 Oct 2001 12:43:42 -0400 From: The Anarcat To: Alexander Langer Cc: Libh , phk@freebsd.org Subject: Re: adding Disk::freespace to lib[h]disk Message-ID: <20011010124341.C531@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh , phk@freebsd.org References: <20011009004001.A25152@shall.anarcat.dyndns.org> <20011010113102.C1967@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S1BNGpv0yoYahz37" Content-Disposition: inline In-Reply-To: <20011010113102.C1967@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --S1BNGpv0yoYahz37 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [cc'd to phk since he's the libdisk wizard] On Wed Oct 10, 2001 at 11:31:02AM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > Integrating this into libdisk should be easy (?). >=20 > Yeah, if you can add it to libdisk, I really think we can > commit it and also change sysinstall to use it. Done. opened pr: bin/31201. > > Ideally, I'll be able to make a nice colored bar of the sections of the > > disk used [uh yes... drool, drool... :)] >=20 > Cool :) > Take a look at the ProgressBar GUI element, it should be what you need. I did. The problem I had when testing it were: 1- my original problem of making a given widget of fixed height 2- alignment with the listbox (not appliable if we switch to a panable area and scrap the listbox) > Remember that we have no graphics in TVision, but ProgressBar > works on both, Qt + TVision. yea. a. --S1BNGpv0yoYahz37 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEer0ACgkQttcWHAnWiGciJQCdGSHUyzooaFh+JfQakHAPI5VO mxUAn3cBZRFOBYgmdwx8AqS8AHV6sJKP =pg4N -----END PGP SIGNATURE----- --S1BNGpv0yoYahz37-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 11: 1:46 2001 Delivered-To: freebsd-libh@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id D7B9437B401 for ; Wed, 10 Oct 2001 11:01:42 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id f9AI1MV22963; Wed, 10 Oct 2001 20:01:23 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: The Anarcat Cc: Alexander Langer , Libh Subject: Re: adding Disk::freespace to lib[h]disk In-Reply-To: Your message of "Wed, 10 Oct 2001 12:43:42 EDT." <20011010124341.C531@shall.anarcat.dyndns.org> Date: Wed, 10 Oct 2001 20:01:22 +0200 Message-ID: <22961.1002736882@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Just for the record: I'm not actively interested in libdisk... Poul-Henning In message <20011010124341.C531@shall.anarcat.dyndns.org>, The Anarcat writes: > >--S1BNGpv0yoYahz37 >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >[cc'd to phk since he's the libdisk wizard] > >On Wed Oct 10, 2001 at 11:31:02AM +0200, Alexander Langer wrote: >> Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >>=20 >> > Integrating this into libdisk should be easy (?). >>=20 >> Yeah, if you can add it to libdisk, I really think we can >> commit it and also change sysinstall to use it. > >Done. opened pr: bin/31201. > >> > Ideally, I'll be able to make a nice colored bar of the sections of the >> > disk used [uh yes... drool, drool... :)] >>=20 >> Cool :) >> Take a look at the ProgressBar GUI element, it should be what you need. > >I did. The problem I had when testing it were: > >1- my original problem of making a given widget of fixed height >2- alignment with the listbox (not appliable if we switch to a panable >area and scrap the listbox) > >> Remember that we have no graphics in TVision, but ProgressBar >> works on both, Qt + TVision. >yea. > >a. > >--S1BNGpv0yoYahz37 >Content-Type: application/pgp-signature >Content-Disposition: inline > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.0.6 (FreeBSD) >Comment: For info see http://www.gnupg.org > >iEYEARECAAYFAjvEer0ACgkQttcWHAnWiGciJQCdGSHUyzooaFh+JfQakHAPI5VO >mxUAn3cBZRFOBYgmdwx8AqS8AHV6sJKP >=pg4N >-----END PGP SIGNATURE----- > >--S1BNGpv0yoYahz37-- > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 12:21:23 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts8-srv.bellnexxia.net (tomts8.bellnexxia.net [209.226.175.52]) by hub.freebsd.org (Postfix) with ESMTP id D7C6337B403 for ; Wed, 10 Oct 2001 12:21:18 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts8-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010192118.ZTIJ13446.tomts8-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 15:21:18 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 0E6001A00; Wed, 10 Oct 2001 15:21:14 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id D1DCD20B50; Wed, 10 Oct 2001 15:21:25 -0400 (EDT) Date: Wed, 10 Oct 2001 15:21:25 -0400 From: The Anarcat To: Alexander Langer , Libh Subject: Re: adding Disk::freespace to lib[h]disk Message-ID: <20011010152124.A1233@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh References: <20011010124341.C531@shall.anarcat.dyndns.org> <22961.1002736882@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <22961.1002736882@critter.freebsd.dk> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed Oct 10, 2001 at 08:01:22PM +0200, Poul-Henning Kamp wrote: >=20 > Just for the record: I'm not actively interested in libdisk... Noted. phk removed from cc: :) Ok, then I guess libdisk is left to itself now? I think libdisk should be rewritten, maybe keeping a compatibility layer with the current libdisk. This is because I think there are some fundamental designs flaws in libdisk. For example, it mixes "undo management" with low-level disk writing routines. libdisk should be low-level, that is, not an "image" of the current that gets written only when write() is called, but a set of clearly defined operations that operate directly on the disk. An additional "upper level" layer might be implemented to provide the kind of facilities libdisk provides (undo(), write()). The problem with current implementation is that the disk contains implementation-specific data (ie, subtype codes) that are undocumented and sometimes conflict with library specific data (ie type codes: [0-6]). So what do you people think? Am I making any sense? A. --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEn7MACgkQttcWHAnWiGckjACfQu2URAu3eLo5O1QbEQ4qo1kS 25MAmgPNzLJCETcLsU4PUycAl25+nBh7 =tHCO -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 12:26:42 2001 Delivered-To: freebsd-libh@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 41C7337B409 for ; Wed, 10 Oct 2001 12:26:37 -0700 (PDT) Received: (qmail 21746 invoked from network); 10 Oct 2001 19:26:36 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Oct 2001 19:26:36 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011010152124.A1233@shall.anarcat.dyndns.org> Date: Wed, 10 Oct 2001 12:26:02 -0700 (PDT) From: John Baldwin To: The Anarcat Subject: Re: adding Disk::freespace to lib[h]disk Cc: Libh , Alexander Langer , gjvc@gjvc.com Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Oct-01 The Anarcat wrote: > On Wed Oct 10, 2001 at 08:01:22PM +0200, Poul-Henning Kamp wrote: >> >> Just for the record: I'm not actively interested in libdisk... > > Noted. phk removed from cc: :) > > Ok, then I guess libdisk is left to itself now? > > I think libdisk should be rewritten, maybe keeping a compatibility layer > with the current libdisk. > > This is because I think there are some fundamental designs flaws in > libdisk. For example, it mixes "undo management" with low-level disk > writing routines. libdisk should be low-level, that is, not an "image" > of the current that gets written only when write() is called, but a set > of clearly defined operations that operate directly on the disk. > > An additional "upper level" layer might be implemented to provide the > kind of facilities libdisk provides (undo(), write()). > > The problem with current implementation is that the disk contains > implementation-specific data (ie, subtype codes) that are undocumented > and sometimes conflict with library specific data (ie type codes: > [0-6]). > > So what do you people think? Am I making any sense? Check out George Cox's libwhisk, it is a libdisk replacement that has already been written. I've cc'd him and he can point you to his library. > A. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 12:53: 2 2001 Delivered-To: freebsd-libh@freebsd.org Received: from usw4.freebsd.org (usw4.freebsd.org [209.180.6.228]) by hub.freebsd.org (Postfix) with ESMTP id 4882E37B403 for ; Wed, 10 Oct 2001 12:53:00 -0700 (PDT) Received: (from alex@localhost) by usw4.freebsd.org (8.11.6/8.11.6) id f9AJqxl34931 for libh@FreeBSD.org; Wed, 10 Oct 2001 14:52:59 -0500 (CDT) (envelope-from alex) Message-Id: <200110101952.f9AJqxl34931@usw4.freebsd.org> From: Alexander Langer Date: Wed, 10 Oct 2001 14:52:59 -0500 (CDT) To: libh@FreeBSD.org Subject: cvs commit: libh/release/scripts installdistrib.tcl Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alex 2001/10/10 14:52:59 CDT Added files: release/scripts installdistrib.tcl Log: Add file to install distribs. At least theoretically. Not yet implemented. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 12:57: 0 2001 Delivered-To: freebsd-libh@freebsd.org Received: from usw4.freebsd.org (usw4.freebsd.org [209.180.6.228]) by hub.freebsd.org (Postfix) with ESMTP id 0414037B401 for ; Wed, 10 Oct 2001 12:56:59 -0700 (PDT) Received: (from alex@localhost) by usw4.freebsd.org (8.11.6/8.11.6) id f9AJuw334989 for libh@FreeBSD.org; Wed, 10 Oct 2001 14:56:58 -0500 (CDT) (envelope-from alex) Message-Id: <200110101956.f9AJuw334989@usw4.freebsd.org> From: Alexander Langer Date: Wed, 10 Oct 2001 14:56:58 -0500 (CDT) To: libh@FreeBSD.org Subject: cvs commit: libh/release/floppies Makefile.inc Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alex 2001/10/10 14:56:58 CDT Modified files: release/floppies Makefile.inc Log: Switch to use md, not vn. Submitted by: I wish I knew, I lost the mail. Sorry. Revision Changes Path 1.2 +22 -20 libh/release/floppies/Makefile.inc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 12:59:42 2001 Delivered-To: freebsd-libh@freebsd.org Received: from winston.freebsd.org (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 6A17E37B406 for ; Wed, 10 Oct 2001 12:59:31 -0700 (PDT) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.freebsd.org (8.11.6/8.11.6) with ESMTP id f9AJv7H62898; Wed, 10 Oct 2001 12:57:09 -0700 (PDT) (envelope-from jkh@freebsd.org) To: anarcat@anarcat.dyndns.org Cc: alex@big.endian.de, freebsd-libh@freebsd.org Subject: Re: adding Disk::freespace to lib[h]disk In-Reply-To: <20011010152124.A1233@shall.anarcat.dyndns.org> References: <20011010124341.C531@shall.anarcat.dyndns.org> <22961.1002736882@critter.freebsd.dk> <20011010152124.A1233@shall.anarcat.dyndns.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011010125707J.jkh@freebsd.org> Date: Wed, 10 Oct 2001 12:57:07 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 40 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You're making perfect sense. We've long known that libdisk(3) needed to be taken out in back of the barn and shot through the head, but there's just been nobody around to do it so we're still stuck with that evil piece of.... code. The person who re-implements libdisk correctly will get a whole box of chocolate chip cookies in the mail from me. :) - Jordan From: The Anarcat Subject: Re: adding Disk::freespace to lib[h]disk Date: Wed, 10 Oct 2001 15:21:25 -0400 > On Wed Oct 10, 2001 at 08:01:22PM +0200, Poul-Henning Kamp wrote: > > > > Just for the record: I'm not actively interested in libdisk... > > Noted. phk removed from cc: :) > > Ok, then I guess libdisk is left to itself now? > > I think libdisk should be rewritten, maybe keeping a compatibility layer > with the current libdisk. > > This is because I think there are some fundamental designs flaws in > libdisk. For example, it mixes "undo management" with low-level disk > writing routines. libdisk should be low-level, that is, not an "image" > of the current that gets written only when write() is called, but a set > of clearly defined operations that operate directly on the disk. > > An additional "upper level" layer might be implemented to provide the > kind of facilities libdisk provides (undo(), write()). > > The problem with current implementation is that the disk contains > implementation-specific data (ie, subtype codes) that are undocumented > and sometimes conflict with library specific data (ie type codes: > [0-6]). > > So what do you people think? Am I making any sense? > > A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 13: 7:43 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by hub.freebsd.org (Postfix) with ESMTP id 55A9D37B405; Wed, 10 Oct 2001 13:07:38 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts6-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010200732.CTRA4990.tomts6-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 16:07:32 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id C52EA19FB; Wed, 10 Oct 2001 16:07:27 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id BB4BD20B50; Wed, 10 Oct 2001 16:07:38 -0400 (EDT) Date: Wed, 10 Oct 2001 16:07:38 -0400 From: The Anarcat To: Jordan Hubbard Cc: alex@big.endian.de, freebsd-libh@freebsd.org Subject: Re: adding Disk::freespace to lib[h]disk Message-ID: <20011010160737.C1233@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , alex@big.endian.de, freebsd-libh@freebsd.org References: <20011010124341.C531@shall.anarcat.dyndns.org> <22961.1002736882@critter.freebsd.dk> <20011010152124.A1233@shall.anarcat.dyndns.org> <20011010125707J.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ncSAzJYg3Aa9+CRW" Content-Disposition: inline In-Reply-To: <20011010125707J.jkh@freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Chocolate chip cookies, eh? What brand? :) Seriously, I don't think I could seriously take this challenge, as libdisk is too messy to start from and I do not have enough knowledge of these internals. I guess I could try to re-implement functions such as Int_Open_Disk() in a separate (the low-level) library. It shouldn't be too difficult, assuming the current *implementation* is correct (it's the API that screwed in libdisk case, right?). I'll look at the libwhisk John mentionned, though. A. On Wed Oct 10, 2001 at 12:57:07PM -0700, Jordan Hubbard wrote: > You're making perfect sense. We've long known that libdisk(3) needed > to be taken out in back of the barn and shot through the head, but there's > just been nobody around to do it so we're still stuck with that evil piece > of.... code. The person who re-implements libdisk correctly will get > a whole box of chocolate chip cookies in the mail from me. :) >=20 > - Jordan --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEqogACgkQttcWHAnWiGfzgACfXTMG2M2II0NmV6N5OImkhukb 4JUAmwW3q1NQKEoJt+TkqvZQawIYVlTh =oYn2 -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 13:19: 0 2001 Delivered-To: freebsd-libh@freebsd.org Received: from usw4.freebsd.org (usw4.freebsd.org [209.180.6.228]) by hub.freebsd.org (Postfix) with ESMTP id 756DF37B401 for ; Wed, 10 Oct 2001 13:18:58 -0700 (PDT) Received: (from alex@localhost) by usw4.freebsd.org (8.11.6/8.11.6) id f9AKIwT35351 for libh@FreeBSD.org; Wed, 10 Oct 2001 15:18:58 -0500 (CDT) (envelope-from alex) Message-Id: <200110102018.f9AKIwT35351@usw4.freebsd.org> From: Alexander Langer Date: Wed, 10 Oct 2001 15:18:57 -0500 (CDT) To: libh@FreeBSD.org Subject: cvs commit: libh/lib/common Config.hh Configuration.hh Container.hh H.hh HSystem.hh LanguageInterface.hh Log.hh Pointer.hh ProgressIndicator.hh String.hh Type.hh libh/lib/database DatabaseEngine.hh DatabaseEngineDb185.hh ... Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alex 2001/10/10 15:18:57 CDT Removed files: lib/common Config.hh Configuration.hh Container.hh H.hh HSystem.hh LanguageInterface.hh Log.hh Pointer.hh ProgressIndicator.hh String.hh Type.hh lib/database DatabaseEngine.hh DatabaseEngineDb185.hh lib/disk Disk.hh lib/file Archive.hh ChangeDirTemporarily.hh DirectoriesAccess.hh Fetch.hh File.hh FileInfo.hh RealFile.hh ziplib.hh lib/hui Hui.hh HuiQt.hh HuiQtNew.hh HuiTVision.hh HuiTVisionNew.hh ProgressIndicatorHui.hh lib/sysinstall Callback.hh Database.hh Exec.hh Feature.hh FeaturesProvided.hh History.hh Package.hh PackageCreator.hh PackageDescription.hh PackageFile.hh PackageStream.hh PackageStreamFile.hh PackageStreamReference.hh PackageStreamStructure.hh PackageStreamSubpackage.hh PatchSuffixes.hh Syslog.hh lib/tcl TclLanguageInterface.hh Log: Remove superfluous header files. They are now in a seperate include dir. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 13:22: 3 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 0E89837B405 for ; Wed, 10 Oct 2001 13:21:58 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010202157.HTSI10438.tomts12-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 16:21:57 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id E0F2019FC; Wed, 10 Oct 2001 16:21:52 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id F30A320B50; Wed, 10 Oct 2001 16:22:03 -0400 (EDT) Date: Wed, 10 Oct 2001 16:22:03 -0400 From: The Anarcat To: Alexander Langer Cc: libh@FreeBSD.org Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011010162202.D1233@shall.anarcat.dyndns.org> References: <200110101956.f9AJuw334989@usw4.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Hf61M2y+wYpnELGG" Content-Disposition: inline In-Reply-To: <200110101956.f9AJuw334989@usw4.freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Hf61M2y+wYpnELGG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This breaks floppy creation on -stable. :) We should rather use a configurable MDCONFIG macro. Also note that there is still a vnconfig call in there, so the transition is not complete: vnconfig -s labels -c ${MFS_VNODE} ${MFS_NAME} I think we could simply s/vnconfig/${MDCONFIG}/ here too. Here is a patch to fix the md/vn thing (OSVERSION stolen from bsd.port.mk). This does not fix the remaining vnconfig as I cannot test this here (no -current!). Index: Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/floppies/Makefile.inc,v retrieving revision 1.2 diff -u -r1.2 Makefile.inc --- Makefile.inc 2001/10/10 19:56:58 1.2 +++ Makefile.inc 2001/10/10 20:17:59 @@ -14,6 +14,21 @@ KERN_MP =3D kmnt BOOT_MP =3D bmnt =20 +# Get __FreeBSD_version +.if !defined(OSVERSION) +.if exists(/sbin/sysctl) +OSVERSION!=3D /sbin/sysctl -n kern.osreldate +.else +OSVERSION!=3D /usr/sbin/sysctl -n kern.osreldate +.endif +.endif + +.if ${OSVERSION} < 500000 +MDCONFIG ?=3D vnconfig +.else +MDCONFIG ?=3D mdconfig +.endif + # Information about mfs parameters # Size of mfs in kilobytes MFS_SIZE =3D 4500 @@ -48,31 +63,31 @@ =20 vnconfig-mfs: @cd ${.CURDIR} && ${MAKE} vnunconfig-mfs 2>/dev/null >&2 - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} vnconfig-mfsfl: @cd ${.CURDIR} && ${MAKE} vnunconfig-mfsfl 2>/dev/null >&2 - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} vnconfig-kern: @cd ${.CURDIR} && ${MAKE} vnunconfig-kern 2>/dev/null >&2 - mdconfig -a -t vnode -u ${KERN_VNODE} ${KERN_NAME} + ${MDCONFIG} -a -t vnode -u ${KERN_VNODE} ${KERN_NAME} =20 vnconfig-boot: @cd ${.CURDIR} && ${MAKE} vnunconfig-boot 2>/dev/null >&2 vnconfig -s labels -c ${MFS_VNODE} ${MFS_NAME} - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} =20 vnunconfig-mfs: @cd ${.CURDIR} && ${MAKE} umount-mfs 2>/dev/null >&2 - @-mdconfig -d -u ${MFS_VNODE} 2>/dev/null + @-${MDCONFIG} -d -u ${MFS_VNODE} 2>/dev/null vnunconfig-mfsfl: @cd ${.CURDIR} && ${MAKE} umount-mfsfl 2>/dev/null >&2 - @-mdconfig -d -u ${MFSFL_VNODE} 2>/dev/null + @-${MDCONFIG} -d -u ${MFSFL_VNODE} 2>/dev/null vnunconfig-kern: @cd ${.CURDIR} && ${MAKE} umount-kern 2>/dev/null >&2 - @-mdconfig -d -u ${KERN_VNODE} 2>/dev/null + @-${MDCONFIG} -d -u ${KERN_VNODE} 2>/dev/null vnunconfig-boot: @cd ${.CURDIR} && ${MAKE} umount-boot 2>/dev/null >&2 - @-mdconfig -d -u ${BOOT_VNODE} 2>/dev/null + @-${MDCONFIG} -d -u ${BOOT_VNODE} 2>/dev/null =20 mount-mfs: ${MFS_MP} @cd ${.CURDIR} && ${MAKE} vnconfig-mfs On Wed Oct 10, 2001 at 02:56:58PM -0500, Alexander Langer wrote: > alex 2001/10/10 14:56:58 CDT >=20 > Modified files: > release/floppies Makefile.inc=20 > Log: > Switch to use md, not vn. --Hf61M2y+wYpnELGG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEreoACgkQttcWHAnWiGfG/QCfS7s1EP4XHuCAfgRX0rvPVf3e Y9sAniRzowq6583JFml00qDHLRS+IUkZ =hxVq -----END PGP SIGNATURE----- --Hf61M2y+wYpnELGG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 13:48:41 2001 Delivered-To: freebsd-libh@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 8F16A37B409 for ; Wed, 10 Oct 2001 13:48:32 -0700 (PDT) Received: (qmail 38411 invoked from network); 10 Oct 2001 20:48:31 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Oct 2001 20:48:31 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011010160737.C1233@shall.anarcat.dyndns.org> Date: Wed, 10 Oct 2001 13:47:57 -0700 (PDT) From: John Baldwin To: The Anarcat Subject: Re: adding Disk::freespace to lib[h]disk Cc: freebsd-libh@freebsd.org, alex@big.endian.de, Jordan Hubbard Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Oct-01 The Anarcat wrote: > Chocolate chip cookies, eh? > > What brand? :) > > Seriously, I don't think I could seriously take this challenge, as > libdisk is too messy to start from and I do not have enough knowledge of > these internals. I guess I could try to re-implement functions such as > Int_Open_Disk() in a separate (the low-level) library. It shouldn't be > too difficult, assuming the current *implementation* is correct (it's > the API that screwed in libdisk case, right?). > > I'll look at the libwhisk John mentionned, though. The API does need major work. Please do look at libwhisk rather than reinvent it. If you do choose to write your own, I would do it in C++. :) With a base class for a piece of a disk that disklabel partitions and MBR slices are built from (along with some kind of abstraction for a piece container that contains the list of containers, thus, a MBR slice would have in it a disklabel container that contained disklabel partitions), etc. Most of the work would be in the container classes. Hmm, actually, since the containers each have a fixed number of containee's, I would just use an abstraction for the containers that allows for nesting, and throw out the notion of a object for each piece, etc. > A. > > On Wed Oct 10, 2001 at 12:57:07PM -0700, Jordan Hubbard wrote: >> You're making perfect sense. We've long known that libdisk(3) needed >> to be taken out in back of the barn and shot through the head, but there's >> just been nobody around to do it so we're still stuck with that evil piece >> of.... code. The person who re-implements libdisk correctly will get >> a whole box of chocolate chip cookies in the mail from me. :) >> >> - Jordan -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 15: 9:46 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 18BEF37B408 for ; Wed, 10 Oct 2001 15:09:43 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9AM9cj16305; Thu, 11 Oct 2001 00:09:38 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9AM9bo16301; Thu, 11 Oct 2001 00:09:37 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id AAA00866; Thu, 11 Oct 2001 00:09:34 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id EB74E14A76; Thu, 11 Oct 2001 00:09:40 +0200 (CEST) Date: Thu, 11 Oct 2001 00:09:40 +0200 From: Alexander Langer To: The Anarcat Cc: Alexander Langer , libh@FreeBSD.ORG Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> References: <200110101956.f9AJuw334989@usw4.freebsd.org> <20011010162202.D1233@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011010162202.D1233@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Oct 10, 2001 at 04:22:03PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > This breaks floppy creation on -stable. :) Damn! Now I know why I never committed it :) Did you test it? Alex --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8THI7RIIUSeqRcRAQFrHwf+P1TEvYUmvmwIN7Dq3Z4Q3MxuAPRkvrsx pSQxfG9i70TzGYnfkP1zxcTQWoesGbIzdRW7lSMd8HLd93YbmUSTsz4IISenK/lz Mw1GPqqVI6xFEXQqhPS1ryHDwzTZrAqaSOmUhg/Sxxq1D4vks5C3zwm4y0jQiyZ5 LMWwIhx23C0z4iav2L8XbaPG+e7hIntvsjfrLHAe0gco/4TsSxXmX8fFLAEX3ea+ FfOULwyCWsMLm4XIZkMyy1rPkwRaOJUK+EjKk45OI+H3CFhii1/zrjNeqAgaAFOl afKombGEZmQPEiw9VwXLCbsnHMK2Ce42Nc8tV7x6FRqwtMDCaD2Iow== =UNl8 -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 15:22:27 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by hub.freebsd.org (Postfix) with ESMTP id F30C537B40B for ; Wed, 10 Oct 2001 15:22:20 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts9-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010222220.MDAT29786.tomts9-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 18:22:20 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B006F19FC; Wed, 10 Oct 2001 18:22:15 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 0E6DC20B50; Wed, 10 Oct 2001 18:22:26 -0400 (EDT) Date: Wed, 10 Oct 2001 18:22:26 -0400 From: The Anarcat To: Alexander Langer Cc: Alexander Langer , libh@FreeBSD.ORG Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011010182226.A6267@shall.anarcat.dyndns.org> References: <200110101956.f9AJuw334989@usw4.freebsd.org> <20011010162202.D1233@shall.anarcat.dyndns.org> <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu Oct 11, 2001 at 12:09:40AM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > This breaks floppy creation on -stable. :) >=20 > Damn! > Now I know why I never committed it :) >=20 > Did you test it? Nope, not really. And actually: root@shall [/home/anarcat/libh/release/floppies]# make vnconfig -a -t vnode -u 0 mfsroot vnconfig: illegal option -- t usage: vnconfig [-cdeguv] [-s option] [-r option] [-S value] special_file [regular_file] [feature] vnconfig -a [-cdeguv] [-s option] [-r option] [-f config_file] *** Error code 1 Stop in /u/anarcat/src/ports/libh/work/libh-0.2/release/floppies. root@shall [/home/anarcat/libh/release/floppies]#=20 so let me take another peek at this on -stable and I'll get back to you with a nice shiny patch. :) A. --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvEyiEACgkQttcWHAnWiGdG8QCfduUgnarvUGmbuBIUnTtzBd9N gg4AnR2mKgu3vO6hcq50c42waQf8FS/W =rWia -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Wed Oct 10 18:56:26 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts13-srv.bellnexxia.net (tomts13.bellnexxia.net [209.226.175.34]) by hub.freebsd.org (Postfix) with ESMTP id 20D5237B40A for ; Wed, 10 Oct 2001 18:56:17 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts13-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011011015611.TWGW12483.tomts13-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 21:56:11 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id C2B9319FD; Wed, 10 Oct 2001 21:56:05 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id CA7AE20B50; Wed, 10 Oct 2001 21:56:18 -0400 (EDT) Date: Wed, 10 Oct 2001 21:56:18 -0400 From: The Anarcat To: Alexander Langer Cc: Alexander Langer , libh@FreeBSD.ORG Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011010215617.B6642@shall.anarcat.dyndns.org> References: <200110101956.f9AJuw334989@usw4.freebsd.org> <20011010162202.D1233@shall.anarcat.dyndns.org> <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> <20011010182226.A6267@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QRj9sO5tAVLaXnSD" Content-Disposition: inline In-Reply-To: <20011010182226.A6267@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --QRj9sO5tAVLaXnSD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Another patch... The original fix broke more than just -stable. It broke all the makefiles including the .inc and assuming *_VNODE variables designated mdn or vnn where n is the unit number. The original author probably never tested that. I think this fixes all that. I can now "create" the boot image. At least try: /u/anarcat/src/ports/libh/work/libh-0.2/release/floppies/mmnt: write failed, file system is full install: /u/anarcat/src/ports/libh/work/libh-0.2/release/floppies/mmnt/sbin/tclh : No space left on device :) I guess 8Mb is a bit big eh? :) So here are the patches, untested on -current, but "seems-to-be-working-fine" on -stable. BTW: is it "mandatory" to develop libh on -current, or is it a good thing that I develop on -stable? I can't afford to crash my main (and only) workstation that is *not* backed-up regularly.. :-) Index: Makefile.1440 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/floppies/Makefile.1440,v retrieving revision 1.1 diff -u -r1.1 Makefile.1440 --- Makefile.1440 2001/01/20 20:46:07 1.1 +++ Makefile.1440 2001/10/11 01:53:21 @@ -14,8 +14,8 @@ dd of=3D${MFSFL_NAME} obs=3D1 seek=3D510 conv=3Dnotrunc @cd ${.CURDIR} && ${MAKE} vnconfig-mfsfl dd if=3D/boot/boot1 of=3D${MFSFL_NAME} conv=3Dnotrunc - disklabel -Brw -b /boot/boot1 -s /boot/boot2 ${MFSFL_VNODE}c fd1440 - newfs -i ${FLOPPY_INODES} -m 0 -p 0 -o space ${MFSFL_VNODE}c + disklabel -Brw -b /boot/boot1 -s /boot/boot2 ${MDEV}${MFSFL_VNODE}c fd1440 + newfs -i ${FLOPPY_INODES} -m 0 -p 0 -o space ${MDEV}${MFSFL_VNODE}c @cd ${.CURDIR} && ${MAKE} mount-mfsfl gzip -9cv ${MFS_NAME} > ${MFSFL_MP}/${MFS_NAME}.gz df -ik ${.CURDIR}/${MFSFL_MP} @@ -31,8 +31,8 @@ dd of=3D${KERN_NAME} obs=3D1 seek=3D510 conv=3Dnotrunc @cd ${.CURDIR} && ${MAKE} vnconfig-kern dd if=3D/boot/boot1 of=3D${KERN_NAME} conv=3Dnotrunc - disklabel -Brw -b /boot/boot1 -s /boot/boot2 ${KERN_VNODE}c fd1440 - newfs -i ${FLOPPY_INODES} -m 0 -p 0 -o space ${KERN_VNODE}c + disklabel -Brw -b /boot/boot1 -s /boot/boot2 ${MDEV}${KERN_VNODE}c fd1440 + newfs -i ${FLOPPY_INODES} -m 0 -p 0 -o space ${MDEV}${KERN_VNODE}c @cd ${.CURDIR} && ${MAKE} mount-kern @echo @echo "--> Copy files on KERN floppy" @@ -52,7 +52,7 @@ ${SRC}/sys/i386/conf/GENERIC.hints \ > ${KERN_MP}/boot/device.hints =20 - df -ik ${KERN_VNODE} + df -ik ${MDEV}${KERN_VNODE} @echo "- Install kernel" mkdir -p ${KERN_MP}/boot/kernel cp kernel.gz ${KERN_MP}/boot/kernel/kernel.gz Index: Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/floppies/Makefile.inc,v retrieving revision 1.2 diff -u -r1.2 Makefile.inc --- Makefile.inc 2001/10/10 19:56:58 1.2 +++ Makefile.inc 2001/10/11 01:53:21 @@ -14,6 +14,28 @@ KERN_MP =3D kmnt BOOT_MP =3D bmnt =20 +# Get __FreeBSD_version +# stolen from bsd.port.mk +.if !defined(OSVERSION) +.if exists(/sbin/sysctl) +OSVERSION!=3D /sbin/sysctl -n kern.osreldate +.else +OSVERSION!=3D /usr/sbin/sysctl -n kern.osreldate +.endif +.endif + +.if ${OSVERSION} < 500000 +MDCONFIG ?=3D vnconfig -s labels -c +MDUNCONFIG ?=3D vnconfig -u +MDEV ?=3D /dev/vn +MUNIT ?=3D ${MDEV} +.else +MDCONFIG ?=3D mdconfig -a -t vnode +MDUNCONFIG ?=3D mdconfig -d +MDEV ?=3D /dev/md +MUNIT ?=3D "-u " +.endif + # Information about mfs parameters # Size of mfs in kilobytes MFS_SIZE =3D 4500 @@ -48,53 +70,52 @@ =20 vnconfig-mfs: @cd ${.CURDIR} && ${MAKE} vnunconfig-mfs 2>/dev/null >&2 - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} ${MUNIT}${MFS_VNODE} ${MFS_NAME} vnconfig-mfsfl: @cd ${.CURDIR} && ${MAKE} vnunconfig-mfsfl 2>/dev/null >&2 - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} ${MUNIT}${MFS_VNODE} ${MFS_NAME} vnconfig-kern: @cd ${.CURDIR} && ${MAKE} vnunconfig-kern 2>/dev/null >&2 - mdconfig -a -t vnode -u ${KERN_VNODE} ${KERN_NAME} + ${MDCONFIG} ${MUNIT}${KERN_VNODE} ${KERN_NAME} =20 vnconfig-boot: @cd ${.CURDIR} && ${MAKE} vnunconfig-boot 2>/dev/null >&2 - vnconfig -s labels -c ${MFS_VNODE} ${MFS_NAME} - mdconfig -a -t vnode -u ${MFS_VNODE} ${MFS_NAME} + ${MDCONFIG} ${MUNIT}${MFS_VNODE} ${MFS_NAME} =20 vnunconfig-mfs: @cd ${.CURDIR} && ${MAKE} umount-mfs 2>/dev/null >&2 - @-mdconfig -d -u ${MFS_VNODE} 2>/dev/null + @-${MDCONFIG} ${MUNIT}${MFS_VNODE} 2>/dev/null vnunconfig-mfsfl: @cd ${.CURDIR} && ${MAKE} umount-mfsfl 2>/dev/null >&2 - @-mdconfig -d -u ${MFSFL_VNODE} 2>/dev/null + @-${MDCONFIG} ${MUNIT}${MFSFL_VNODE} 2>/dev/null vnunconfig-kern: @cd ${.CURDIR} && ${MAKE} umount-kern 2>/dev/null >&2 - @-mdconfig -d -u ${KERN_VNODE} 2>/dev/null + @-${MDCONFIG} ${MUNIT}${KERN_VNODE} 2>/dev/null vnunconfig-boot: @cd ${.CURDIR} && ${MAKE} umount-boot 2>/dev/null >&2 - @-mdconfig -d -u ${BOOT_VNODE} 2>/dev/null + @-${MDCONFIG} ${MUNIT}${BOOT_VNODE} 2>/dev/null =20 mount-mfs: ${MFS_MP} @cd ${.CURDIR} && ${MAKE} vnconfig-mfs - mount /dev/md${MFS_VNODE} ${MFS_MP} + mount ${MDEV}${MFS_VNODE} ${MFS_MP} mount-mfsfl: ${MFSFL_MP} @cd ${.CURDIR} && ${MAKE} vnconfig-mfs - mount /dev/md${MFSFL_VNODE} ${MFSFL_MP} + mount ${MDEV}${MFSFL_VNODE} ${MFSFL_MP} mount-kern: ${KERN_MP} @cd ${.CURDIR} && ${MAKE} vnconfig-kern - mount /dev/md${KERN_VNODE} ${KERN_MP} + mount ${MDEV}${KERN_VNODE} ${KERN_MP} mount-boot: ${BOOT_MP} @cd ${.CURDIR} && ${MAKE} vnconfig-boot - mount /dev/md${BOOT_VNODE} ${BOOT_MP} + mount ${MDEV}${BOOT_VNODE} ${BOOT_MP} =20 umount-mfs: - @-umount /dev/md${MFS_VNODE} 2>/dev/null >&2 + @-umount ${MDEV}${MFS_VNODE} 2>/dev/null >&2 umount-mfsfl: - @-umount /dev/md${MFSFL_VNODE} 2>/dev/null + @-umount ${MDEV}${MFSFL_VNODE} 2>/dev/null umount-kern: - @-umount /dev/md${KERN_VNODE} 2>/dev/null + @-umount ${MDEV}${KERN_VNODE} 2>/dev/null umount-boot: - @-umount /dev/md${BOOT_VNODE} 2>/dev/null + @-umount ${MDEV}${BOOT_VNODE} 2>/dev/null =20 ${MFS_MP} ${MFSFL_MP} ${KERN_MP} ${BOOT_MP}: @mkdir -p $@ Index: Makefile.mfsroot =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/libh/cvs/libh/release/floppies/Makefile.mfsroot,v retrieving revision 1.1 diff -u -r1.1 Makefile.mfsroot --- Makefile.mfsroot 2001/01/20 20:46:07 1.1 +++ Makefile.mfsroot 2001/10/11 01:53:21 @@ -13,8 +13,8 @@ dd of=3D${MFS_NAME} obs=3D1 seek=3D510 conv=3Dnotrunc 2> /dev/null @cd ${.CURDIR} && ${MAKE} vnconfig-mfs dd if=3D/boot/boot1 of=3D${MFS_NAME} conv=3Dnotrunc - disklabel -rw ${MFS_VNODE} minimum3 - newfs -i ${MFS_INODES} -m 0 -p 0 -o space ${MFS_VNODE}c + disklabel -rw ${MDEV}${MFS_VNODE} minimum3 + newfs -i ${MFS_INODES} -m 0 -p 0 -o space ${MDEV}${MFS_VNODE}c @echo @echo "--> Populating MFS image" @cd ${.CURDIR} && ${MAKE} mount-mfs A. --QRj9sO5tAVLaXnSD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvE/EAACgkQttcWHAnWiGebsACcCrVvbMCw+vDkB4aD9np7imKo mbMAn2Xl5pDjyc3dDknN/F2c6JsJPtJR =q1FR -----END PGP SIGNATURE----- --QRj9sO5tAVLaXnSD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Oct 11 2:35: 4 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 4ABFB37B403 for ; Thu, 11 Oct 2001 02:34:59 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9B9Ysj29385; Thu, 11 Oct 2001 11:34:54 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9B9Yso29381; Thu, 11 Oct 2001 11:34:54 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA24547; Thu, 11 Oct 2001 11:34:53 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 0B3F714A76; Thu, 11 Oct 2001 11:35:00 +0200 (CEST) Date: Thu, 11 Oct 2001 11:35:00 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: disklabel can now display sub parts Message-ID: <20011011113500.C48489@zerogravity.kawo2.rwth-aachen.de> References: <20011009192007.C601@shall.anarcat.dyndns.org> <20011010114108.E1967@zerogravity.kawo2.rwth-aachen.de> <20011010123956.B531@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011010123956.B531@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Oct 10, 2001 at 12:39:56PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > ok.. so hack listbox.. hmm... shouldn't we use a "table widget" as such? > as in QListView? Last time I looked none of the Qt widgets was able to do what I want to, that's why we need the hack. At least it wasn't obviously able to do it :) Let me see if that changed. Alex --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8Vnw7RIIUSeqRcRAQF42wgAmJMUpeT+tJYjTSWtPWm3NYeSj9EWQcFG kzROXGZkneVoYzfBaRHDukuql9A8INaA9+pOm/LqJusMQp3gKs4Oi4GnK9bTT22i JOfSUmD/bOOpKJvFdCUO6ffRub5dGoq0V2ySQmicGI8FslUZAH4alF2poAXrzQCr eW8wUMb9qi2Ng7YUdcvmZTbVlXZH1xgpG22SP6rL485B3V7aS2HQOaHmEYwJ81/y sLE4TtL0OFB2yLM4FaZuUhHv4yOWg8EWBCXWE89wu0vxF9D17wYJ9ZwSc5gRN7Z5 wYCTe4qZjZbqv91l1wS5Vs2RdAQqkb1zEa6AnYGckLpfeySNXZQigw== =jQUT -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Oct 11 2:40:58 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 8C10237B406 for ; Thu, 11 Oct 2001 02:40:54 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9B9eoj00632; Thu, 11 Oct 2001 11:40:50 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9B9eno00628; Thu, 11 Oct 2001 11:40:49 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA24779; Thu, 11 Oct 2001 11:40:50 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 734BB14A76; Thu, 11 Oct 2001 11:40:57 +0200 (CEST) Date: Thu, 11 Oct 2001 11:40:57 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: disklabel can now display sub parts Message-ID: <20011011114057.D48489@zerogravity.kawo2.rwth-aachen.de> References: <20011009192007.C601@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="TYecfFk8j8mZq+dy" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011009192007.C601@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Tue, Oct 09, 2001 at 07:20:07PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --TYecfFk8j8mZq+dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Just tested it. Well, it works, but I don't know what it is supposed to do :) Alex --TYecfFk8j8mZq+dy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8VpKLRIIUSeqRcRAQHcxQgAskwTcXlV3tk3Ak608RRQBF9ob9KDXEw+ f5nCayh1t1RebKnbKcE1+EOIFyrCYT2OFhOD/DuGRIlgdlUHNbVYc08o3cNnLg2g FNVg7I9mBxyDkQPFcCjLmjrD1lt7fKWC7e27Z+LefX8M+42109hhatG9sT134eZn upcbRFWxI/ms+lbqXs0CsSs58cAe/bBlYMv/sPItvyjnAF7Rl++hDEpkEZC8loaK w/WUXQuiYz4vobNPMiVbz9c9RL1BhY1K7PzCon1uuWlEHVybw6BygyTuZzO/gnPv f4ojxIiG+TLJ4dYVAMbje0wUGE/DEGSr4rknl3qcubsgIkKJKe8OlA== =bay5 -----END PGP SIGNATURE----- --TYecfFk8j8mZq+dy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Oct 11 2:42:19 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id E5EDA37B408 for ; Thu, 11 Oct 2001 02:42:15 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9B9gCj00940; Thu, 11 Oct 2001 11:42:12 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9B9gBo00936; Thu, 11 Oct 2001 11:42:11 +0200 (MEST) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id LAA24817; Thu, 11 Oct 2001 11:42:10 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 29B1E14A76; Thu, 11 Oct 2001 11:42:18 +0200 (CEST) Date: Thu, 11 Oct 2001 11:42:17 +0200 From: Alexander Langer To: The Anarcat Cc: Alexander Langer , libh@FreeBSD.ORG Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011011114217.E48489@zerogravity.kawo2.rwth-aachen.de> References: <200110101956.f9AJuw334989@usw4.freebsd.org> <20011010162202.D1233@shall.anarcat.dyndns.org> <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> <20011010182226.A6267@shall.anarcat.dyndns.org> <20011010215617.B6642@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011010215617.B6642@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Oct 10, 2001 at 09:56:18PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > :) I guess 8Mb is a bit big eh? :) Jup :) We need to use the Tvision version for this. > So here are the patches, untested on -current, but > "seems-to-be-working-fine" on -stable. great. I'll test + commit them. > BTW: is it "mandatory" to develop libh on -current, or is it a good > thing that I develop on -stable? I can't afford to crash my main (and > only) workstation that is *not* backed-up regularly.. :-) No, it's good to know that you are using -stable. Alex --zbGR4y+acU1DwHSi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO8VpeLRIIUSeqRcRAQGTawgArbQ0wefFMA0qNLEPaEI+9BV7/jmZgF0J gsbMsvKjvcSN8QLiPDlRCzqgjfz/KE6FXgXNyD+ar0mOBmY63aKXdeDxjTTqQLb4 VGk9ss2FrbwgYdQOPw6EKidNf6SxdDfXjv/fBnMWp9f5Za4beDkLzzlulPb/+lnq m/qSlQdPR/ODPJOuk4mqwckKkUGAEcllPqViOOiBaOAeplHeyzwqmrqOIJSHM5Eg +VC3e3vwnIU8qBFsdyOsyMWg8YCgsZYYXbNLBbTpFmsVRv01kzFy4CB49w4cPuQy 2LWJrH+hrFmAc7LObuvAWK94DaEr/K2QHcVRIRsyPaCxk96B1ixrSw== =6OWd -----END PGP SIGNATURE----- --zbGR4y+acU1DwHSi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Oct 11 9:49: 3 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts15-srv.bellnexxia.net (tomts15.bellnexxia.net [209.226.175.3]) by hub.freebsd.org (Postfix) with ESMTP id 3CC0937B408 for ; Thu, 11 Oct 2001 09:49:00 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts15-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011011164859.CVOL19401.tomts15-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Thu, 11 Oct 2001 12:48:59 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 79D151931; Thu, 11 Oct 2001 12:48:54 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id EC0D620B50; Thu, 11 Oct 2001 12:49:11 -0400 (EDT) Date: Thu, 11 Oct 2001 12:49:11 -0400 From: The Anarcat To: Alexander Langer Cc: Alexander Langer , libh@FreeBSD.ORG Subject: Re: cvs commit: libh/release/floppies Makefile.inc Message-ID: <20011011124911.B9658@shall.anarcat.dyndns.org> References: <200110101956.f9AJuw334989@usw4.freebsd.org> <20011010162202.D1233@shall.anarcat.dyndns.org> <20011011000940.E7311@zerogravity.kawo2.rwth-aachen.de> <20011010182226.A6267@shall.anarcat.dyndns.org> <20011010215617.B6642@shall.anarcat.dyndns.org> <20011011114217.E48489@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TiqCXmo5T1hvSQQg" Content-Disposition: inline In-Reply-To: <20011011114217.E48489@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu Oct 11, 2001 at 11:42:17AM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > :) I guess 8Mb is a bit big eh? :) >=20 > Jup :) We need to use the Tvision version for this. And it "works"? Does it fit on a smaller image (1.44)? > > So here are the patches, untested on -current, but > > "seems-to-be-working-fine" on -stable. >=20 > great. > I'll test + commit them. Well, if I have commit access, I might as well do it myself... :) > > BTW: is it "mandatory" to develop libh on -current, or is it a good > > thing that I develop on -stable? I can't afford to crash my main (and > > only) workstation that is *not* backed-up regularly.. :-) >=20 > No, it's good to know that you are using -stable. Cool. A. --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvFzYYACgkQttcWHAnWiGeQtwCfSil378z7qQehMPHVMznhgSJ/ xAQAoJEO/F4nZW4M2hY1+ivmVbjLFcv1 =hI43 -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 9:38:19 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts20-srv.bellnexxia.net (tomts20.bellnexxia.net [209.226.175.74]) by hub.freebsd.org (Postfix) with ESMTP id 9E05637B401 for ; Sat, 13 Oct 2001 09:34:15 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts20-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013163414.WUMN14703.tomts20-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sat, 13 Oct 2001 12:34:14 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 227A71931 for ; Sat, 13 Oct 2001 12:34:10 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 4D6E720B50; Sat, 13 Oct 2001 12:34:27 -0400 (EDT) Date: Sat, 13 Oct 2001 12:34:26 -0400 From: The Anarcat To: Libh Subject: where's doc.docbook.mk? Message-ID: <20011013123426.B739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi % make=20 "Makefile", line 13: Could not find doc.docbook.mk make: fatal errors encountered -- cannot continue % now where's that file anyways... % find /usr/doc -name doc.docbook.mk /usr/doc/share/mk/doc.docbook.mk %=20 now why isn't the makefile picking it up? $ make -I /usr/doc/share/mk =2E.. /usr/local/bin/jade:E: cannot open "/usr/local/share/sgml/docbook/dsssl/mod= ular/catalog" (No such file or directory) =2E.. And now I realize I must install the textproc/docproj port. :( For insane newbies like me, it might take a while to realize, especially since libh is not a "doc" project. :)=20 Maybe a tiny README or a note in the Makefile? Also, what is the "minimal dependency"? Is the hole textproc/docproj hierarchy needed? I find it a bit heavy to maintain a single file. :) A. --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIbREACgkQttcWHAnWiGfZ1QCeId1hrmT9pTJ1f3MqnzAQ3JrT +xcAoIjIxBHDIzmEaCvTYViPiiArdvhq =1r6w -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 10:10:14 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by hub.freebsd.org (Postfix) with ESMTP id 432E037B418 for ; Sat, 13 Oct 2001 10:06:09 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts9-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013170608.LBOZ19094.tomts9-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sat, 13 Oct 2001 13:06:08 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B7C261A68 for ; Sat, 13 Oct 2001 13:06:04 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 794EC20B50; Sat, 13 Oct 2001 13:06:20 -0400 (EDT) Date: Sat, 13 Oct 2001 13:06:19 -0400 From: The Anarcat To: Libh Subject: doc/hui Message-ID: <20011013130619.C739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S1BNGpv0yoYahz37" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --S1BNGpv0yoYahz37 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi The file hui.sgml (that I finally have been able to compile :) contains a Hello World example.. Nice one, it helped me get a rough idea of how things where working in Hui. Now the problem is that this file mentions "boxes". There are no boxes in the example (hello world). It is quite confusing. :) I guess that when it talks about "boxes" it really is talking about containers, which brings me to another point: I'm tring to make a tclh hui console here. And I'm trying to make a little box where you can type commands and a little button where you can hit "eval". :) I have been able to make the box little, only now. But it's ackward. And the call is: $cmd_cont resize "3 -1" Now I don't know, but this is odd. If I make this "1 -1", for example the Y dimension shrinks. Not x!!! Why? And what does the -1 *do* exactly? And what are the units for these dimensions??? Thanks, A. --S1BNGpv0yoYahz37 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIdIoACgkQttcWHAnWiGdvfACfUYmRciYTBshubtW4JGN8PJqe LvgAn3NQ62u5eW6+JBjLa86rW5E+5e4e =ofQ2 -----END PGP SIGNATURE----- --S1BNGpv0yoYahz37-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 10:44:33 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 4D7A837B414 for ; Sat, 13 Oct 2001 10:40:28 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9DHePj24697; Sat, 13 Oct 2001 19:40:25 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9DHeOo24693; Sat, 13 Oct 2001 19:40:24 +0200 (MEST) Received: from fump.kawo2.rwth-aachen.de (root@fump.kawo2.rwth-aachen.de [134.130.181.148]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id TAA19580; Sat, 13 Oct 2001 19:40:25 +0200 Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.11.3/8.11.3) id f9DHf1j77170; Sat, 13 Oct 2001 19:41:02 +0200 (CEST) (envelope-from alex) Date: Sat, 13 Oct 2001 19:41:00 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: doc/hui Message-ID: <20011013194100.A77141@fump.kawo2.rwth-aachen.de> References: <20011013130619.C739@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: <20011013130619.C739@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Sat, Oct 13, 2001 at 01:06:19PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > Now the problem is that this file mentions "boxes". There are no boxes > in the example (hello world). It is quite confusing. :) Yes, boxes have been removed by me about one year ago. > hit "eval". :) I have been able to make the box little, only now. But > it's ackward. And the call is: > $cmd_cont resize "3 -1" > Now I don't know, but this is odd. If I make this "1 -1", for example > the Y dimension shrinks. Not x!!! Why? And what does the -1 *do* > exactly? And what are the units for these dimensions??? -1 has a special meaning if you don't you free placement (=3D=3D arranging) of widgets. Arranging means, it raises the sub-widgets to max. possible size, giving all sub-widgets the same width/height (depending on if it is arranging horizontally or vertically). Now, if you for example want a fixed size of 2 for one widget, but the others shall be arranged automatically (you can still use "free" arranging and do everything manually...), use -1. So, if you want a fixed height of 2 for example, use resize "-1 2" =20 (resize "width height"). If you are using "free" arrangement (I believe you do), using -1 should have NO effect: void HuiQt::Widget::resize(const QSize& to, int is_arranging =3D 0) { if (to.width() =3D=3D -1 && to.height() =3D=3D -1) return; if (to.width() >=3D 0 && to.height() >=3D 0) { /* real resize */ if (qwidget()) qwidget()->resize(to); setsize(to); return; } if ((to.width() >=3D 0 || to.height() >=3D 0) && !is_arranging) { ContainerWidget *cp =3D dynamic_cast( (Hui::Widget*) parent()); GroupWidget *gp =3D dynamic_cast( (Hui::Widget*) parent()); mFixedSize =3D (to.width() < 0) ? to.height() : to.width(); /* arrange parent again since we changed the fixed size */ if (cp !=3D NULL) cp->arrange(); if (gp !=3D NULL) gp->arrange(); } } // HuiQt::Widget::resize So I don't know what's happening there, it should just do nothing. (Note that widgets still have a default size, probably given by Qt. So if this is the only resize statement you are using on this widget, it is probably using Qt's default size for that widget, which is the reason why it shrinks X and not Y :) Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 10:54:10 2001 Delivered-To: freebsd-libh@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 4C27737B409 for ; Sat, 13 Oct 2001 10:54:07 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f9DHs4j25883; Sat, 13 Oct 2001 19:54:04 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f9DHs3o25879; Sat, 13 Oct 2001 19:54:04 +0200 (MEST) Received: from fump.kawo2.rwth-aachen.de (root@fump.kawo2.rwth-aachen.de [134.130.181.148]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id TAA20156; Sat, 13 Oct 2001 19:54:05 +0200 Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.11.3/8.11.3) id f9DHsfj77209; Sat, 13 Oct 2001 19:54:41 +0200 (CEST) (envelope-from alex) Date: Sat, 13 Oct 2001 19:54:41 +0200 From: Alexander Langer To: The Anarcat Cc: Libh Subject: Re: where's doc.docbook.mk? Message-ID: <20011013195441.C77141@fump.kawo2.rwth-aachen.de> References: <20011013123426.B739@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: <20011013123426.B739@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Sat, Oct 13, 2001 at 12:34:26PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake The Anarcat (anarcat@anarcat.dyndns.org): > And now I realize I must install the textproc/docproj port. :( For > insane newbies like me, it might take a while to realize, especially > since libh is not a "doc" project. :)=20 Forget about all this sgml-stuff :) > Maybe a tiny README or a note in the Makefile? Better text-only doc for now, if we want any doc :) SGML formatting takes too long for now, there are more important tasks. Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 10:55:53 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts17-srv.bellnexxia.net (tomts17.bellnexxia.net [209.226.175.71]) by hub.freebsd.org (Postfix) with ESMTP id 2B4EA37B40C for ; Sat, 13 Oct 2001 10:55:50 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts17-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013175543.FCGB19597.tomts17-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Sat, 13 Oct 2001 13:55:43 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 5077C1AC5; Sat, 13 Oct 2001 13:55:39 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6402020B50; Sat, 13 Oct 2001 13:55:55 -0400 (EDT) Date: Sat, 13 Oct 2001 13:55:55 -0400 From: The Anarcat To: Alexander Langer Cc: Libh Subject: Re: where's doc.docbook.mk? Message-ID: <20011013135554.D739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh References: <20011013123426.B739@shall.anarcat.dyndns.org> <20011013195441.C77141@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <20011013195441.C77141@fump.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat Oct 13, 2001 at 07:54:41PM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > And now I realize I must install the textproc/docproj port. :( For > > insane newbies like me, it might take a while to realize, especially > > since libh is not a "doc" project. :)=20 >=20 > Forget about all this sgml-stuff :) >=20 > > Maybe a tiny README or a note in the Makefile? >=20 > Better text-only doc for now, if we want any doc :) > SGML formatting takes too long for now, there are more important > tasks. Very well then. Let's scrap this .sgml file and replace it with an .html equivalent. A. --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIgCoACgkQttcWHAnWiGc/6wCZAb99VIVEeDAdOLIw3fZ86NHR NHMAmwZQpZePDNFm9TdP0YSNvtGQQ1yb =KLo7 -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 11:16: 3 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 1CA0137B409 for ; Sat, 13 Oct 2001 11:15:57 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013181556.BEVQ2701.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Sat, 13 Oct 2001 14:15:56 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id D0F8D1AC5; Sat, 13 Oct 2001 14:15:49 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 00BEB20B50; Sat, 13 Oct 2001 14:16:05 -0400 (EDT) Date: Sat, 13 Oct 2001 14:16:05 -0400 From: The Anarcat To: Alexander Langer Cc: Libh Subject: Re: doc/hui Message-ID: <20011013141605.E739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh References: <20011013130619.C739@shall.anarcat.dyndns.org> <20011013194100.A77141@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gDGSpKKIBgtShtf+" Content-Disposition: inline In-Reply-To: <20011013194100.A77141@fump.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --gDGSpKKIBgtShtf+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat Oct 13, 2001 at 07:41:00PM +0200, Alexander Langer wrote: > Thus spake The Anarcat (anarcat@anarcat.dyndns.org): >=20 > > Now the problem is that this file mentions "boxes". There are no boxes > > in the example (hello world). It is quite confusing. :) >=20 > Yes, boxes have been removed by me about one year ago. Have they been replaced by "containers"? > > hit "eval". :) I have been able to make the box little, only now. But > > it's ackward. And the call is: > > $cmd_cont resize "3 -1" > > Now I don't know, but this is odd. If I make this "1 -1", for example > > the Y dimension shrinks. Not x!!! Why? And what does the -1 *do* > > exactly? And what are the units for these dimensions??? >=20 > -1 has a special meaning if you don't you free placement (=3D=3D arrangin= g) > of widgets. you=3D=3Duse? :) > Arranging means, it raises the sub-widgets to max. possible size, > giving all sub-widgets the same width/height (depending on > if it is arranging horizontally or vertically). Ok. How is that selected? > Now, if you for example want a fixed size of 2 for one widget, > but the others shall be arranged automatically (you can > still use "free" arranging and do everything manually...), > use -1. Now wait a minute... There are 2 "arrangement" here. "free" and "arranging", right? You said: "free placement (=3D=3D arranging) of widgets" and "Arranging means it raises the sub-widgets to max. possible size" but also: "use "free" arranging and do everything manually". "Free arranging", is that "manual" or "automatic"? > So, if you want a fixed height of 2 for example, use > resize "-1 2" =20 > (resize "width height"). But the fun thing is that this will make: "fixed width of 2", and "height max". > If you are using "free" arrangement (I believe you do), not so sure about that. I do not have to resize the widgets I place and they fill up the space unless I tell them so. > using -1 should have NO effect: >=20 > void > HuiQt::Widget::resize(const QSize& to, int is_arranging =3D 0) > { > if (to.width() =3D=3D -1 && to.height() =3D=3D -1) > return; [nitpick mode=3Don] This should be: if (to.width() <=3D -1 && to.height() <=3D -1) return; to make it clearer that this accepts arbitrary negative values. > if (to.width() >=3D 0 && to.height() >=3D 0) { > /* real resize */ > if (qwidget()) > qwidget()->resize(to); > setsize(to); > return; > } > if ((to.width() >=3D 0 || to.height() >=3D 0) && !is_arranging) { > ContainerWidget *cp =3D > dynamic_cast( (Hui::Widget*) parent()); >=20 > GroupWidget *gp =3D > dynamic_cast( (Hui::Widget*) parent()); >=20 > mFixedSize =3D (to.width() < 0) ? to.height() : to.width(= ); interesting.. is this where the "switch" would take place (ie y modifies x and so on)? > /* arrange parent again since we changed the fixed size */ > if (cp !=3D NULL) > cp->arrange(); > if (gp !=3D NULL) > gp->arrange(); > } >=20 > } // HuiQt::Widget::resize Looks fine. > So I don't know what's happening there, it should just do nothing. I think I'm not using "free arranging". > (Note that widgets still have a default size, probably given > by Qt. So if this is the only resize statement you are using > on this widget, it is probably using Qt's default size for > that widget, which is the reason why it shrinks X and not Y :) Again, I do not thing so. Modifying the first param changes y: set cmd_cont [$cons_w container "container"] $cmd_cont resize "3 -1" # the container is now of a given vertical size $cmd_cont resize "5 -1" # the container is now of a bigger vertical size :) > Alex A. --gDGSpKKIBgtShtf+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIhOQACgkQttcWHAnWiGclhgCfQrKswEBiEl8TKYO5cVVBKTl3 3PEAn0hqs0bgP+IapsLbmJHWyrpTsKg1 =ey2X -----END PGP SIGNATURE----- --gDGSpKKIBgtShtf+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 11:19:22 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id 0B1F037B40C for ; Sat, 13 Oct 2001 11:19:18 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013181916.DXEP4321.tomts10-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sat, 13 Oct 2001 14:19:16 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 5EA431AC5 for ; Sat, 13 Oct 2001 14:19:13 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id F1DA720B50; Sat, 13 Oct 2001 14:19:29 -0400 (EDT) Date: Sat, 13 Oct 2001 14:19:29 -0400 From: The Anarcat To: Libh Subject: tclh hui console ready! Message-ID: <20011013141929.F739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kjpMrWxdCilgNbo1" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --kjpMrWxdCilgNbo1 Content-Type: multipart/mixed; boundary="E7i4zwmWs5DOuDSH" Content-Disposition: inline --E7i4zwmWs5DOuDSH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I made a primitive hui console. It does not take care of stdout/err redirection yet, but does return the "value" of tcl commands and also the errors in such commands. How to use: source console.tcl open_console $hui or from command line: $ tclh console_init.tcl Anyways, anyone knows how I could *read* from *stdout*? :) A. --E7i4zwmWs5DOuDSH Content-Type: application/x-tcl Content-Description: console include code Content-Disposition: attachment; filename="console.tcl" Content-Transfer-Encoding: quoted-printable global cons_w=0A=0Aproc read_cmd {hui button data} {=0A=0A global comman= d=0A =0A catch [$command text] sid=0A cons_append $sid=0A =0A}= =0A=0Aproc cons_append {string} {=0A global cons_out=0A =0A # XXX: t= his is probably not the (c) good way=0A $cons_out text [format "%s%s" [$= cons_out text] $string]=0A if {$string !=3D "" && $string !=3D "\n"} {= =0A cons_append "\n"=0A }=0A}=0A=0A# make the console openable on= ly once=0Aproc open_console {hui} {=0A=0A global cons_w=0A if {[info = vars cons_w] =3D=3D "cons_w" &&=0A ![catch {set cons_w $cons_w}] &&= =0A ![H::is_null $cons_w]=0A } {=0A $cons_w show=0A = return=0A } else {=0A cons_make_main_win $hui=0A } =0A= =0A=0A}=0A=0A# Create the main-window and its elements=0A#=0A# do not call = this from outside console.tcl, use open_console instead=0Aproc cons_make_ma= in_win {hui} {=0A global command=0A global cons_out=0A global cons= _w=0A =0A set cons_w [$hui window cons_w "Console" "0 0" "25 20" "ver= tical"] =0A =0A set cmd_cont [$cons_w container "container"]=0A = =0A set command [$cmd_cont inputLine "Console Command" "" -1]=0A $cmd= _cont button "gobutton" "&Eval" {read_cmd ""} "default"=0A =0A set co= ns_out [$cons_w textEdit "Console Output" "" FALSE]=0A =0A $cmd_cont = resize "3 -1"=0A # Finally, show the window=0A $cons_w show=0A} --E7i4zwmWs5DOuDSH Content-Type: application/x-tcl Content-Description: console bootstrap code Content-Disposition: attachment; filename="console_init.tcl" Content-Transfer-Encoding: quoted-printable source console.tcl=0A=0A# Init UI=0Aset hui [Hui::open "auto"]=0A=0A# Creat= e the main-window=0Acons_make_main_win $hui=0A=0A# Run hui=0A$hui run --E7i4zwmWs5DOuDSH-- --kjpMrWxdCilgNbo1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIhbAACgkQttcWHAnWiGeE7gCeK+0EUSXItDyEdDeDORsDgJYZ rHAAn2Vgh7/6tFvttk0LQUVvvbOvBkzR =8XN+ -----END PGP SIGNATURE----- --kjpMrWxdCilgNbo1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Sat Oct 13 11:21:40 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by hub.freebsd.org (Postfix) with ESMTP id 3318237B40C for ; Sat, 13 Oct 2001 11:21:36 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts6-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011013182135.DAZP4990.tomts6-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sat, 13 Oct 2001 14:21:35 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 83B241931 for ; Sat, 13 Oct 2001 14:21:31 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 16A5F20B50; Sat, 13 Oct 2001 14:21:48 -0400 (EDT) Date: Sat, 13 Oct 2001 14:21:47 -0400 From: The Anarcat To: Libh Subject: Re: tclh hui console ready! Message-ID: <20011013142147.G739@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh References: <20011013141929.F739@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GBDnBH7+ZvLx8QD4" Content-Disposition: inline In-Reply-To: <20011013141929.F739@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --GBDnBH7+ZvLx8QD4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Description: console bootstrap code ... > cons_make_main_win $hui This should obviously be open_console $hui :) A. --GBDnBH7+ZvLx8QD4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvIhjoACgkQttcWHAnWiGc9cACcCxl07MrNQue2KQyW3Pe6SA0A TdAAoIcljjAvzIYiA+tqUrzQIM/b8YwH =6YEX -----END PGP SIGNATURE----- --GBDnBH7+ZvLx8QD4-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message