Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
63 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 63

more...

Support us!

Headlines

 
  Register To Post  

Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
In my user-startup i have:

Assign CON: DISMOUNT
Assign RAW: DISMOUNT

Mount CON: from DEVS:KingCON-mountlist
Mount RAW: from DEVS:KingCON-mountlist

Occasionly, when in doubt if KCON is not the cause of an existing problem
( i have a systematic error allready when closing all existing KCON windows) i would like to just use the system's console again.

How can this be done?

Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
It's easy. Comment each of these 4 lines by adding a ";" at the begin of each line.

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information
Look at the tool type of shell icon, if it says KCON: it opens king con if its CON: it opens the normal shell.

You don't need to change the user-startup unless you really really wont too.

Newshell kcon:

opens king con:

newshell con:

opens normal shell

newshell tcp:8080

creates a shell on network port 8080.

newshell ser:

you get the idea.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information
@JosDuchIt
I've found KingCON to be rock-solid. Are you using the AmiKit version (which fixes some bugs needed to work properly on OS4)?

Author of the PortablE programming language.
Go to top
Re: Switching from KCON: to CON:
Quite a regular
Quite a regular


See User information
I wanted to have the normal AmigaShell and KingCON available on my system. I use both CON: and KCON: windows.

I modified the script so that I did not dismount CON: or RAW: so that these would remain as implimented in OS4.

;This mounts KCON and KRAW
if exists DEVS:KingCON-mountlist
Mount KCON: from DEVS:KingCON-mountlist
Mount KRAW: from DEVS:KingCON-mountlist
endif

This allows me to use CON: windows or KCON: windows with my ARexx programs.

I also have the standard AmigaShell icon which uses CON: and a KingCON icon which uses KCON:.

---
redfox

Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
@redfox
Quote:
I wanted to have the normal AmigaShell and KingCON available on my system. I use both CON: and KCON: windows.

I've done the same. I don't even mount KRAW however. Any program that needs the raw console will get the system console. If they would just add a scollbar to the system console window I wouldn't really need KCON.

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
I do want to test an application which opens a CON: window switching between CON: & KCON for the same compiled source, as some problems seem too appear with KCON

I solved it using this

IF rcnum EQ 0
Assign CON
DISMOUNT
Assign RAW
DISMOUNT
Mount CON
from DEVS:KingCON-mountlist 
Mount RAW
from DEVS:KingCON-mountlist
ELSE
;
ENDIF


I will check the Amikit version


Thanks for your help

Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
MY sctipt did not work,

looking more closely in the DOS help I tried this (needed some time before i remembered that a " ` " is not a " ' "

How can i set up the IF test, which does not work neIther?

set rcnum `requestchoice  >NIL: "CON: or KCON:" "choose" "CON" "KCON"`
echo 
$rcnum
IF  $rcnum EQ 0  wrong nr of args ?????
echo 
"KCON"
ELSE
echo 
"CON"
;
ENDIF

Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information
requestchoice "CON: or KCON:" "choose" "CON" "KCON" > ENV:rcnum

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
@LiveforIt:
thanks that works

@ChrisH

I did replace the

L:KingCON-handler

with the one i did find in Amikit
Is there something else is should replace ?
( i did not find an archive i could download to patch the existing installation)


Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information
does your mount list look like this?


New Shell process 9
9.AmigaOS4.1.1:> type devs:KingCon-mountlist
/**     $VER: KingCON-mountlist 1.3 (31.05.94)
 **
 ** Mountlist-entries for KCON and KRAW.
 **
 ** Don't forget to Assign DISMOUNT both CON: and RAW: before
 ** you try to mount the new devices with the same names!!
 **
 **                                             David Larsson
 **/

KCON:
        
Handler L:KingCON-handler
        StackSize 
4096
        Priority 
5
        GlobVec 
= -1
#

KRAW:
        
Handler L:KingCON-handler
        StackSize 
4096
        Priority 
5
        GlobVec 
= -1
#

CON:
        
Handler L:KingCON-handler
        StackSize 
4096
        Priority 
5
        GlobVec 
= -1
#

RAW:
        
Handler L:KingCON-handler
        StackSize 
4096
        Priority 
5
        GlobVec 
= -1

#9.AmigaOS4.1.1:>


Mount KCON: from DEVS:KingCON-mountlist
Mount KRAW: from DEVS:KingCON-mountlist

do not dismount CON or RAW, just keep it as it is.

make a copy of sys;system/shell
rename the copy to "kingcon_shell"
check the icon tooltype

Change this line:

WINDOW=CON:50/50/600/350/AmigaShell/CLOSE

to:

WINDOW=KCON:50/50/600/350/Kingcon/CLOSE

save "kingcon_shell" icon settings.


Edited by LiveForIt on 2012/7/27 1:02:39
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information
requestchoice "CON: or KCON:" "choose" "CON|KCON" >ENV:rcnum 
IF  $rcnum EQ 0 
newshell KCON
:50/50/600/350/Kingcon/CLOSE
ELSE 
newshell CON:50/50/600/350/Shell/CLOSE
ENDIF


start the script whit iconx as tooltype command

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Switching from KCON: to CON:
Home away from home
Home away from home


See User information

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Switching from KCON: to CON:
Just can't stay away
Just can't stay away


See User information
@LiveForIt
Thanks for your help

Quote:
does your mount list look like this?

yes
Quote:

Mount KCON: from DEVS:KingCON-mountlist
Mount KRAW: from DEVS:KingCON-mountlist

do not dismount CON or RAW, just keep it as it is.

make a copy of sys;system/shell
rename the copy to "kingcon_shell"
check the icon tooltype

Change this line:

WINDOW=CON:50/50/600/350/AmigaShell/CLOSE

to:

WINDOW=KCON:50/50/600/350/Kingcon/CLOSE

save "kingcon_shell" icon settings.



This was approximately how i was using KCON and CON side by side before i tried switching them altogether/
I may revert to it? What i was after was having the best ability to detect problems with KCON that i wouldn't have with CON.


My problem is that the output windows are generated by 2 integrated apps
the loader for Gui4Cli & Gui4Cli itself. I wondered if there was interference with KCON that i did not have with CON.
Switching radically between them at satartup looked like the best method, as i wanted to use the same console type, whatever way i launched gui (the loader), gui4cli or a gui4cli script (eg from the Workbench execute menu (***) , the local menu, cli, workbench)


In the first program (gui.c) i have for example the 2 first lines below, in Gui4Cli the last lin, plus writing commands making use of this spec (or other provided by command line eg KCON: or tooltype.
It was using the last possibility that i started having problems
strcpy (output"con:0/12/400/80/Gui4Cli/auto/close/wait"); 
Write (Output(), "WB2.04+ Only!"13);

strcpy (Defconsolespec"con:300/20/450/80/Gui4Cli Output/CLOSE/AUTO/WAIT");



(***) I had to add a Newshell command in the user-startup to make the workbench execute menu produce KCON output
It now looks like
requestchoice  >ENV:rcnum "CON: or KCON:"choose CON|KCON

IF $rcnum EQ "0" VAL
Assign CON
DISMOUNT
Assign RAW
DISMOUNT
Mount CON
from DEVS:KingCON-mountlist 
Mount RAW
from DEVS:KingCON-mountlist
Newshell
ENDIF









Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project