Shell background color

AMIGASYSTEM · 1100

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
on: October 15, 2022, 01:55:34 AM
I have created 3 Shell-Startups that set the color White, Black and Gray on the Shell, everything works fine, but there is a gray part of the Shell (see screenshot, txt New Shell Process) that apparently cannot be changed by the Shell-Startup.

Does anyone know where to edit that Gray area?


o1i

  • Newbie
  • *
    • Posts: 41
    • Karma: +6/-0
Reply #1 on: October 15, 2022, 04:22:31 AM
This output happens before the shell startup. Maybe you can clear the window in the shell startup, so the text disappears at once?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #2 on: October 15, 2022, 06:12:14 AM
Doesn't work, when you run the CLI it looks for Shell Startup in S:, if Shell Startup doesn't exist, the Shell opens all in Gray and and additions anyways the text "New Shell Process N°.x" .

Same thing happens if you run NewCLI and NewShell, it is probably a common library that adds the text "New Shell Process N°.x" in the prompt.
« Last Edit: October 15, 2022, 08:24:41 AM by AMIGASYSTEM »



o1i

  • Newbie
  • *
    • Posts: 41
    • Karma: +6/-0
Reply #3 on: October 15, 2022, 09:25:02 AM
Just do a "cls" as a first command in the user startup. No idea if there is sth like cls in aros, maybe "clear" or so. "echo ^L" might work too.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #4 on: October 15, 2022, 12:25:00 PM
"cls" and "clear" they don't exist on AROS x86, i couldn't find them anywhere, the "echo ^L" command seems not to be recognized, so it doesn't work :(


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #5 on: October 15, 2022, 03:45:14 PM
Nice news, on Aminet I found the CLS OS3 software with sogente, I am not a developer, but I tried to compile it with GCC installed on AROS One x86, and to my amazement I was able to compile it.

http://aminet.net/package/util/cli/cls

During the compilation I got a little error, but the compiled CLS worked perfectly, basically I entered the command "CLS" in the individual Shell-Startup (Shell-Startup-Black and Shell-Startup-White).

I did this so that the Normal Shell would open in the usual standard way, while and the Colored Shells would only work if launched from specific Icon.

I would like to point out though that on AROS running The Shell from Icon in "WB" mode is not a good thing, I have reported the problem in the past, it works excellently instead if the Shell is run from Icon in "CLI" mode.

One example out of all is to run the GCC Command will not be found if executed from a Shell open in WB mode, it will instead be found automatically if the Shell is open in WB mode.

For clarification I could redo a comprehensive video.
« Last Edit: October 15, 2022, 03:48:54 PM by AMIGASYSTEM »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #6 on: October 16, 2022, 02:19:21 AM
CLS that I compiled for AROS X86 works fine, just for possible improvement, I attach a screenshot showing the error found during compilation, maybe someone can help me to eliminate or correct the error.


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #7 on: October 16, 2022, 02:30:59 AM
It's a small warning - nothing to worry about. Change code from

main(void)

to

void main(void)



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #8 on: October 16, 2022, 04:21:35 AM
Perfect deadwood now the source compiled perfectly without errors.

I attach here the archive with the "CLS" compiled with GCC v6.50 on AROS One x86, inside the archive is the correct code and the original readme from the developer.

If there are no copyright issues you can put the archive on archives.aros


o1i

  • Newbie
  • *
    • Posts: 41
    • Karma: +6/-0
Reply #9 on: October 16, 2022, 01:31:24 PM
I am not a developer, but I tried to compile it with GCC installed on AROS One x86, and to my amazement I was able to compile it.

Now you are a developer  ;)