You are not logged in.

#1 2007-12-20 13:20:28

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

dialog --editbox ??

'man dialog' says there is --editbox option but doesn't exist. Does it exist or I am missing something?


Markku

Offline

#2 2007-12-20 14:03:55

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: dialog --editbox ??

I think it is because dialog is compiled with the  --disable-Xdialog flag, though I'm not sure. If you want a Xwindow interface you can use xdialog, but that is probably not what you're looking for ?

Offline

#3 2007-12-20 14:41:28

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: dialog --editbox ??

pressh is right. I downloaded the source and this is the result:

./configure
make
./dialog --editbox README 30 30
No problem (it's not an X window though, it's in the term)

./configure --disable-Xdialog
make
./dialog --editbox README 30 30
Error: Unexpected option --editbox.

edit: forgot the --editbox

Last edited by Gilneas (2007-12-20 14:54:24)

Offline

#4 2007-12-20 16:33:00

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: dialog --editbox ??

Did a test by compiling without --disable-Xdialog, works fine. Gives other options as well.

--calendar
--dselect
--editbox
--fselect
--timebox

I will post a feature request, asking if possible to change the package configure.
http://bugs.archlinux.org/task/8984

PS.
I am developing one xorg.conf editing feature for hwd.


Markku

Offline

#5 2007-12-20 17:45:46

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: dialog --editbox ??

rasat wrote:

PS.
I am developing one xorg.conf editing feature for hwd.

nice big_smile
you always have interesting ideas !

Offline

#6 2007-12-21 18:33:42

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: dialog --editbox ??

I guess it would've been more easy to check the package with abs (or however it is correctly said?). The PKGBUILDs tell you straight away how a package has been compiled, so no need to compile just to test smile And one can easily make changes to PKGBUILD and then just run makepkg with the new PKGBUILD. Hmm.. am I starting to sound like TV-SHOP here? "Does this look familiar? Has this ever happened to you?" I'm just reading what ever it says in the arch wiki wink

Offline

#7 2007-12-22 11:10:25

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: dialog --editbox ??

sm4tik wrote:

The PKGBUILDs tell you straight away how a package has been compiled, so no need to compile just to test smile

The compilation was not my interest when testing. But how editbox works. Also the other options. The question, is it worthy to compile without the flag. In my opinion, yes. Why limiting the options.


Markku

Offline

#8 2007-12-26 03:26:58

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: dialog --editbox ??

rasat wrote:
sm4tik wrote:

The PKGBUILDs tell you straight away how a package has been compiled, so no need to compile just to test smile

The compilation was not my interest when testing. But how editbox works. Also the other options. The question, is it worthy to compile without the flag. In my opinion, yes. Why limiting the options.

Oh sorry,
..no need to compile just to test if the binary in the repos has been compiled with a specific flag or not..
my reply was aimed mostly at Gilneas and partly for your original question "am I missing something?" I have to be more precise next time!

Last edited by sm4tik (2007-12-26 03:30:29)

Offline

#9 2007-12-26 07:50:24

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: dialog --editbox ??

rasat wrote:

I am developing one xorg.conf editing feature for hwd.

why not use vim/nano rather than a clumsy edit box?

Offline

#10 2007-12-26 09:55:17

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: dialog --editbox ??

iphitus wrote:

why not use vim/nano rather than a clumsy edit box?

I also asked the same question. When putting myself in the shoes of less experienced linux users, especially in xorg, is a language by its own. xorg.conf is not easy to read without some experience.

'xorgconfig' and 'xorgcfg -textmode' (glad its back in the latest xorg-server again) do well when providing options and configs to select. With 'xorgconfig' you cannot post configure, only for new xorg.conf. Xorgcfg does, but what both are lacking you don't know what they do except seeing the end result of xorg.conf.

The hwd editor is similar to 'xorgcfg -textmode' dealing with each section separately but with an additional view window of the result. More options copied from Arch wiki (xorg). 'hwd -x' generates xorg.conf for different drivers, nice to have a menu list.

To use 'dialog --editbox' or vim/nano is a question of taste.

The editor is still a question, will be added only if does a good job.


Markku

Offline

#11 2007-12-26 15:16:43

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: dialog --editbox ??

sm4tik wrote:

I guess it would've been more easy to check the package with abs (or however it is correctly said?). The PKGBUILDs tell you straight away how a package has been compiled, so no need to compile just to test smile And one can easily make changes to PKGBUILD and then just run makepkg with the new PKGBUILD.

Surely my way was easier, no need to edit a PKGBUILD, the effects of the actual configure option were unknown so compilation was necessary, and it doesn't have to run 'make install' and a whole script around it.
It was also nice to be able to do a './configure --help' to see if there wasn't some sort of --enable-editbox option.

And, by the way, you can see the PKGBUILD online (don't need abs for that) (example)

Offline

Board footer

Powered by FluxBB