English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 24 September 2018, 19:08   #281
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Quote:
Originally Posted by kolla View Post
For example, I would require them to have command line template (the ".key") defined, so that the shell can extract that without even running the binary, and offer them for completion.
That's just for starters. I have been led to believe the IBM AS/400 has an intelligent shell/cli that can parse and react to all commands.
That would indicate that if you want to use a command that interacts with a disk/mount it will cycle (or pop up a list) through only disks - if you use a command that needs a screenmode option it can cycle through choices or pop up a screenmode selector.

Now that would be an intelligent shell!
NorthWay is offline  
Old 24 September 2018, 20:02   #282
Locutus
Registered User
 
Join Date: Jul 2014
Location: Finland
Posts: 1,175
Look up Fish' intelligent autocompleter and be amazed ;-)
Locutus is offline  
Old 24 September 2018, 20:30   #283
amigo1
Registered User
 
Join Date: Nov 2016
Location: Cork/Gallia
Posts: 27
Quote:
Originally Posted by hexaae View Post
One of most wanted feature missing in Amiga Shell unfortunately.
On the Amiga Shell you can only use "+" with Run to execute multiple commands in one go (RETURN at the end of each line):
run List +
echo Ciao! +
dir +
...
Wasn't there a way to do that with "ctrl-j"?
e.g.:

dir [ctrl-j]
copy directory/#?.iff to ram: [ctrl-j]
delete ram:#?.iff [return/enter]
amigo1 is offline  
Old 24 September 2018, 22:18   #284
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
There's a slight difference.
Ctrl-j breaks the lines and executes the commands separately. Just the same as if you executed them one AFTER another "buffered".

Run <cmd> +
<cmd2> +

executes everything in one go: you'll notice the difference in CON: output history (with KCON for example) and their output will be consecutive.
hexaae is offline  
Old 24 September 2018, 22:26   #285
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Surely if via Shell you are going to stack up numerous lines / commands then you'd put them in a script file and run that?
DamienD is offline  
Old 24 September 2018, 23:27   #286
desiv
Registered User
 
desiv's Avatar
 
Join Date: Oct 2009
Location: Salem, OR
Posts: 1,767
Quote:
Originally Posted by NorthWay View Post
I have been led to believe the IBM AS/400 has an intelligent shell/cli that can parse and react to all commands.
Now that would be an intelligent shell!
There are lots of things to appreciate about an AS/400.
Anything involving "shell/CLI" is not in that list IMHO. ;-)
Yeah, there is the PACE environment for kind of shell work, but it is FAR from anything that people who are used to shells will appreciate... ;-)


I know my AS/400 stuff is more than a bit rusty, but I think you have been led somewhere errantly. ;-)


desiv
desiv is offline  
Old 25 September 2018, 07:20   #287
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Quote:
Originally Posted by DamienD View Post
Surely if via Shell you are going to stack up numerous lines / commands then you'd put them in a script file and run that?
In a bourne compatible shell it's quite common to do longer scripts in interactive mode. Sometimes as a oneliner, piping commands into each other, sometimes with the commands on multiple lines. It's a quick way to loop through a bunch of files or lines in a text file, or what have you.

I sorely miss this in cmd and also somewhat in powershell. I find that I often have to declare functions first and then make my "oneliner" out of the functions I declared beforehand in powershell.
Jope is online now  
Old 25 September 2018, 10:08   #288
kolla
Banned
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
In AmigaShell it's not even possible to make functions
(though using [] in aliases to some very small degree make up for that)

I also don't bother much with temporary scripts in AmigaShell, but rather use lformat, sed, earg and pipes.
kolla is offline  
Old 25 September 2018, 12:01   #289
bubbob42
Registered User
 
Join Date: Oct 2012
Location: Germany
Posts: 585
Quote:
Originally Posted by Daedalus View Post
Ooh, it's like a lo-fi version of the 3.9 prefs
At first, I tried to imitate the look of the OS3.9 prefs as much as possible. Problem is - from a designer's perspective, most OS3.9 ReAction-based prefs are not very beautiful. Sometimes it looks like the gadgets have just been thrown all over the window - ok, I'm exaggerating here.

Also some things are not possible with GadTools or - like font sensitivity - require lots of changes. So we now have another, very classic look for most of the Prefs. Some will like it, some probably not.
bubbob42 is offline  
Old 25 September 2018, 12:47   #290
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
Quote:
Originally Posted by bubbob42 View Post
...So we now have another, very classic look for most of the Prefs. Some will like it, some probably not. ....
Me like it !!!
peceha is offline  
Old 25 September 2018, 12:59   #291
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Quote:
Originally Posted by bubbob42 View Post
So we now have another, very classic look for most of the Prefs. Some will like it, some probably not.
Based on what I've heard so far, this takes exactly the relevant improvements from 3.9 and ditches reaction, so I'm happy. :-D
Jope is online now  
Old 25 September 2018, 14:02   #292
kolla
Banned
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
GTlayout.library could be used, I hear the author is still active and reachable
kolla is offline  
Old 25 September 2018, 15:51   #293
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by bubbob42 View Post
At first, I tried to imitate the look of the OS3.9 prefs as much as possible. Problem is - from a designer's perspective, most OS3.9 ReAction-based prefs are not very beautiful. Sometimes it looks like the gadgets have just been thrown all over the window - ok, I'm exaggerating here.

Also some things are not possible with GadTools or - like font sensitivity - require lots of changes. So we now have another, very classic look for most of the Prefs. Some will like it, some probably not.
OpenTriton on Aminet is a powerful lib that simply makes things much easier for coders (e.g. font-sensitive gui etc.) and still uses GadTools (even SYSIHack, MCP or Visualprefs will still work fine)…
Doesn't need subclasses or complex installation, just triton.library (50KB) in LIBS: and will simplify any GadTools GUI creation. It could be rewritten/modified and included in the OS maybe.

Last edited by hexaae; 25 September 2018 at 16:00.
hexaae is offline  
Old 25 September 2018, 16:26   #294
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 424
GTLayout? OpenTriton? IMHO bad ideas, I would like to be able to use preferences programs without installing 3rd party libraries. The OS 3.1.4 team did it the only reasonable way.
Romanujan is offline  
Old 25 September 2018, 16:42   #295
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by Romanujan View Post
GTLayout? OpenTriton? IMHO bad ideas, I would like to be able to use preferences programs without installing 3rd party libraries. The OS 3.1.4 team did it the only reasonable way.
The problem is that GadTools is complicated. The reason why they kept fixed size windows + topaz.font is because of this. "Something" to simplify the life of developers, giving at the same time the users a better interface respecting GadTools standards and compatibility would be appreciated.
OpenTriton is free software under GPL and maybe could become part of the OS.
hexaae is offline  
Old 25 September 2018, 17:17   #296
kolla
Banned
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
In case it wasn't obvious, I mentioned gtlayout.library because it was made by Olaf Barthel, so not exactly third party
kolla is offline  
Old 25 September 2018, 17:52   #297
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Quote:
Originally Posted by bubbob42 View Post
At first, I tried to imitate the look of the OS3.9 prefs as much as possible. Problem is - from a designer's perspective, most OS3.9 ReAction-based prefs are not very beautiful. Sometimes it looks like the gadgets have just been thrown all over the window - ok, I'm exaggerating here.

Also some things are not possible with GadTools or - like font sensitivity - require lots of changes. So we now have another, very classic look for most of the Prefs. Some will like it, some probably not.
Oh, don't get me wrong, I've no problem with the plain GadTools look (and even use it in some of my own programs) on a 3.1 system - it fits right in and I'm looking forward to seeing the other updated programs too. It's just funny seeing those options laid out that way when I'm so used to seeing the 3.9 version.
Daedalus is offline  
Old 25 September 2018, 18:04   #298
bubbob42
Registered User
 
Join Date: Oct 2012
Location: Germany
Posts: 585
Quote:
Originally Posted by hexaae View Post
The problem is that GadTools is complicated. The reason why they kept fixed size windows + topaz.font is because of this.
Let's say it's limited, because it has no layout functions. You can implement your own layouting, as I did in the past for other projects, but it will blow up the code. Funny sidenote: parts of the new interface - e.g. the frames around the sections - are already size sensitive, because that was easier to code than fixed coordinates. The user just won't notice it.

Using a gadget toolkit in ROM for basic OS applications is also a strong argument, as it'll save a lot of memory. As a consequence, 3.1.4 will work even with low-end machines, though the memory requirements surpass 3.1 a bit.
bubbob42 is offline  
Old 25 September 2018, 23:28   #299
AC/DC HACKER!
Registered User
 
AC/DC HACKER!'s Avatar
 
Join Date: Aug 2016
Location: Earth
Posts: 883
Quote:
Originally Posted by hexaae View Post
There's a slight difference.
Ctrl-j breaks the lines and executes the commands separately. Just the same as if you executed them one AFTER another "buffered".

Run <cmd> +
<cmd2> +

executes everything in one go: you'll notice the difference in CON: output history (with KCON for example) and their output will be consecutive.
Hmmm... I've always just used:

Program1[CTRL+Enter]
Program2[CTRL+Enter]
Program3[CTRL+Enter]
Program4[Enter]

Then First runs, exit it if needed then the other one runs, and so on. It's a simple way to use Shell for simple projects. I haven't use "+" at all. I also adore KCON. I remember one day doing something and I pressed and held CTRL for something and went for another key besides Enter and..voila! I wondered, "Whhhhaaat?? It's not......executing ?anything?" and then I entered in another program name after and pressed return. I thought it to be very cool.

Not long after that I applied this to other stuff.. AmigaDOS is very good at passing commands to stuff and "buffering" them ready for the next program. Once you get good at it, it can looks like there's a "Ghost in The Machine", haha! I showed it to some people where I lived at the time. Glad to see this post, I had wondered through the years how many others knew about it. With "+" or not.
AC/DC HACKER! is offline  
Old 26 September 2018, 00:44   #300
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Run <cmd> +
<cmd2> +

is different though as explained above.
Ctrl+j or Ctrl+Enter is the same.
hexaae is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Available now: AmigaOS 3.1.4 bubbob42 Amiga scene 1002 14 August 2021 23:22
Would AmigaOS 3.9 be ok for me? stu232 support.Hardware 12 02 October 2013 18:20
AmigaOS 3.9 PoLoMoTo support.WinUAE 8 27 August 2011 18:06
AmigaOS 3.5 or 3.9 maddoc666 support.Apps 12 22 February 2010 08:02
AmigaOS XL sturme New to Emulation or Amiga scene 4 15 January 2002 02:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:52.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.25540 seconds with 16 queries