Sublime Forum

Cursor stays in top half of window when running program

#1

Hello.

I’m new to Sublime Text.
When I run a simple python program (by clicking Tools > Build) with input( ), the program runs in the bottom half of the window, but the cursor remains in the top half of the window.
When I manually move the cursor to the bottom half by left-clicking, my user input text does not work.

When I run my program, how do I make it so the cursor automatically moves to the bottom half of the window so I can input user text?

Thank you for your help!

0 Likes

#2

The short version of the answer to this is that Sublime doesn’t support interactive builds out of the box; the panel at the bottom shows output, but you can’t get input into it. In order to do that, you need to use an external package or run your program outside of Sublime.

The longer answer (to how to do that first part) can be found in this video, which covers how to use the Terminus package to do this very thing:

0 Likes