OS4.1 update 5 - Shell issues

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Fri Aug 05, 2011 12:08 am
Location: Norway

OS4.1 update 5 - Shell issues

Post by jostein_aarbakk »

After upgrading to update 5 of OS4.1, I have experienced problems with the default Shell.
There are 2 issues:
1) Copying text from the shell doesn't work (but paste does).
2) When shrinking the size of the shell window, and then making the window larger, all text that got cleared during the shrinking process are gone (the previously non-visible text are not redrawn into the window).

The issues were not present in update 4.


My system:
HW: Sam440ep (667MHz, 512MB RAM, onboard Radeon M9 Gfx card).
OS: Amiga OS4.1 update 5.
User avatar
samo79
Posts: 580
Joined: Sat Jun 18, 2011 12:13 am
Location: Italy

Re: OS4.1 update 5 - Shell issues

Post by samo79 »

The point 2 was present also under Update 4 altrough maybe in a different way, for example if you are compliling a project and then at the same time you resize the window
The text will got a very strange allineation and sometimes disapper completely
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1483
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: OS4.1 update 5 - Shell issues

Post by tonyw »

You are somehow opening the console window with "Smart" refresh. Please tell how you are opening the Shell.
cheers
tony
User avatar
samo79
Posts: 580
Joined: Sat Jun 18, 2011 12:13 am
Location: Italy

Re: OS4.1 update 5 - Shell issues

Post by samo79 »

@Tony

You ask me ?

Personally i always start the shell from AmiDock and yes i have smart refresh active in GUI/Prefs
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Fri Aug 05, 2011 12:08 am
Location: Norway

Re: OS4.1 update 5 - Shell issues

Post by jostein_aarbakk »

tonyw wrote:You are somehow opening the console window with "Smart" refresh. Please tell how you are opening the Shell.
The Shell is started by clicking on the Shell-icon in my AmiDock (the same that is available from the Workbench/System folder).

Below are tests that shows what happens with different GUI options.

Test 1:
GUI-prefs options:
- Window refresh type: Smart
- Force synchronous refresh of window contents

(These are the options I have always used, including with update 4).

Afterwards, here is what I did:
a) Started the AmigaShell
b) Wrote something in the shell
c) Reduced the window vertical size by dragging the lower right corner of the shell window
d) Increased the window vertical size

Result:
- Only the part of the shell that were visible after I did c) contained any text. The new part (after I increased the window size) contained only an empty area.
- It was not possible to copy text from the Shell.


Test 2:
Same as test 1, except that I first changed the GUI-preference option "Window refresh type" from "Smart" to "Simple".
I confirmed the changes by pressing the "Use"-button in the GUI-preferences window.

Result:
- Exactly the same result as in test 1.


Test 3:
Same as test 2, but saved the GUI-preference option after changing it, and rebooted.

Result:
- Exactly the same result as in test 2.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1483
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: OS4.1 update 5 - Shell issues

Post by tonyw »

It seems the default GUI prefs setting of "Smart" is being used to open the console window. It must be opened with "Simple" mode.

I suggest that you change the tooltype in the Shell icon to add "Simple", like this:

Old: WINDOW=CON:50/50/600/350/AmigaShell/CLOSE
New: WINDOW=CON:50/50/600/350/AmigaShell/CLOSE/Simple (upper/lower case, doesn't matter)

That should force a Simple mode for the console window and fix the problem. I don't know why this problem has only appeared in Update 5 - it seems some change to another component has changed the default window mode.
cheers
tony
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Fri Aug 05, 2011 12:08 am
Location: Norway

Re: OS4.1 update 5 - Shell issues

Post by jostein_aarbakk »

tonyw wrote:..I suggest that you change the tooltype in the Shell icon to add "Simple"..
Ok. Now I have changed the WINDOW tooltype as you described it, and made a new test, but the behaviour is still the same.
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Fri Aug 05, 2011 12:08 am
Location: Norway

Re: OS4.1 update 5 - Shell issues

Post by jostein_aarbakk »

Now it works, even when:
1) the Shell is configured to use the old window tooltype (WINDOW=CON:50/50/600/350/AmigaShell/CLOSE)
and
2) the GUI Preference option "Window refresh type" is set to "Smart" (the "GUI preferences window, subsystem "Options").

In the "GUI preferences" window, subsystem "Controls", the flag "Force smart refresh" was ON.
When I switched this one OFF, the Shell worked as it should.
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: OS4.1 update 5 - Shell issues

Post by chris »

jostein_aarbakk wrote:In the "GUI preferences" window, subsystem "Controls", the flag "Force smart refresh" was ON.
When I switched this one OFF, the Shell worked as it should.
Yes, that's the important one to change as it forces ALL windows to be smart refresh.

The other toggle only sets the default window type when it isn't specified by the application (AFAIK most applications assume smart refresh anyway, so don't change this - applications need to have special handling for simple refresh windows).
Post Reply