Page 1 of 1

Simulate a console inside an EditorGadget()

Posted: Tue Jan 23, 2024 3:16 pm
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

Re: Simulate a console inside an EditorGadget()

Posted: Tue Jan 23, 2024 8:15 pm
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

Re: Simulate a console inside an EditorGadget()

Posted: Wed Jan 24, 2024 12:11 pm
by juergenkulow
What additional benefits do your users have?
Have you tested Powershell and Scintilla?
What about font customization and resolution, 60x23?