Amiga-Development

Please login or register.

Login with username, password and session length
Advanced search  

News:

Created for developers of all Amiga camps

Author Topic: Opening a console window  (Read 239 times)

0 Members and 1 Guest are viewing this topic.

asrael22

  • Newbie
  • *
  • Posts: 31
    • View Profile
Opening a console window
« on: August 08, 2017, 10:26:09 PM »

Hi.

I need to bother you guys a bit more. :)

Now, I have opened a screen and a window in it.
Then I open CON: into that window:
Code: [Select]
DOSOpen(Format('CON://///WINDOW0x%p', [Win]));
That seems to be working.

But there is no Shell in there. Just a cursor, and I can type. Well, that's already something...
How do I get a full Shell in there?


Manfred
Logged

ALB42

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Opening a console window
« Reply #1 on: August 08, 2017, 10:51:43 PM »

hmm no idea

maybe
Code: [Select]
SystemTagList(PChar(Format('newshell CON://///WINDOW0x%p', [Win])), nil);

???
but I' not sure if this is what you want ;)
Logged

magorium

  • Full Member
  • ***
  • Posts: 221
  • Programming is an art form that fights back
    • View Profile
Re: Opening a console window
« Reply #2 on: August 09, 2017, 12:20:47 AM »

As could be noted from ALB42's post: a con: window <> a full shell command interpreter.

I'm also a bit puzzled about what it is you actually wish to accomplish but ALB42's smiley on his shell example seems to suggest that he at least has some sort of clue ?

if ALB42's example does not really accomplish what it is that you wish to do, then could you please try to describe what you would like to accomplish ?
Logged

asrael22

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Opening a console window
« Reply #3 on: August 09, 2017, 11:48:17 AM »

Yeah, ALB42's is exactly what I wanted.

Open my own CLI on the screen.
The CON: alone seems to just give a console window where you have to implement reading and writing via the file handle.


Manfred
Logged

magorium

  • Full Member
  • ***
  • Posts: 221
  • Programming is an art form that fights back
    • View Profile
Re: Opening a console window
« Reply #4 on: August 10, 2017, 08:30:24 PM »

Splendid ! Glad that you got that sorted out :)
Logged