Simulate a console inside an EditorGadget()

Just starting out? Need help? Post your questions and find answers here.
danny88
User
User
Posts: 38
Joined: Sun Jan 21, 2024 8:13 am

Simulate a console inside an EditorGadget()

Post by danny88 »

Hello everyone,

I want to make an EditorGadget look like a command prompt (Console) which would look like this :
  • The cursor position is always at the end of text
  • The text before the cursor can't be edited
  • User input will be always at cursor position (At the end of text)
Image

https://imgur.com/a/UObsHpt
infratec
Always Here
Always Here
Posts: 7664
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Simulate a console inside an EditorGadget()

Post by infratec »

Ok, then do it. :wink:

Or search a bit in the forum.

Btw. have you tried my version for your read problem?
If you add a Print(output$) you nearly have what you want.
And I don't use a fixed delay to break the program flow.

https://www.purebasic.fr/english/viewtopic.php?t=80555
https://www.purebasic.fr/english/viewtopic.php?t=64556
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: Simulate a console inside an EditorGadget()

Post by juergenkulow »

What additional benefits do your users have?
Have you tested Powershell and Scintilla?
What about font customization and resolution, 60x23?
Post Reply