console: multi-line input #170

Closed
opened 2026-01-03 20:18:20 +00:00 by john · 1 comment
Owner

the python console is great, but it's impossible to define functions or multi-line blocks with it.

objective: a little button on the python console's title bar ("^") that splits it into a multi-line input (with execute button) and the REPL below. When the execute button is clicked or we press ctrl+enter in the multi-line input, it goes to the REPL and executes.

Why imgui? As part of the Python console, we want this system to be invisible to screenshots and sidestep the UIDrawable ecosystem.

the python console is great, but it's impossible to define functions or multi-line blocks with it. objective: a little button on the python console's title bar ("^") that splits it into a multi-line input (with execute button) and the REPL below. When the execute button is clicked or we press ctrl+enter in the multi-line input, it goes to the REPL and executes. *Why imgui?* As part of the Python console, we want this system to be invisible to screenshots and sidestep the UIDrawable ecosystem.
Author
Owner

additional features in-work:

  • multi-line text editor with ctrl+enter to execute Python
  • locking imgui windows in position (should allow select and copy/paste from the console)
  • text size adjustment
additional features in-work: * multi-line text editor with ctrl+enter to execute Python * locking imgui windows in position (should allow select and copy/paste from the console) * text size adjustment
john closed this issue 2026-01-07 03:42:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#170
No description provided.