[CQ32] Make any build system interactive with Terminus!
Why Stack Overflow recommends it
Stack Overflow users link it when someone needs to run code in Sublime Text that reads user input or needs a real terminal, which the standard build output panel cannot handle.
Recommended by 3 people across 3 different months, 2020 to 2022.
What it is
A 29-minute tutorial by OdatNurd showing how to convert any existing Sublime Text build system to run inside the Terminus terminal package. This makes builds interactive, so programs can read input and use terminal features like curses. It is part of the channel's 'Common Questions' series on Sublime Text.
What people said
Recommends OdatNurd · 2020-05 · Stack Overflow · on “Python SUblime Text 3 Curses”
Most likely this is due to the fact that curses is trying to determine what terminal type to use to do things like output colors and manipulate the cursor position. When you use a standard build system in Sublime Text, all it does is capture the output of your program and dump it to a panel; that is, it's not a terminal at all. So there's likely no TERM variable set, and even if there was it would be meaningless because curses isn't going to work anyway. An important note in this regard is that the "dumb terminal" that Sublime uses to dump output doesn't accept input, so if your program is expecting to gather some sort of input from the user to do something, that will also fail. To solve bot
Recommends Martin Nikolov · 2021-05 · Stack Overflow · on “How to run python code in Sublime Text 3?”
If you need non-interactive Build System, just follow the Official Guide [LINK] . If you plan to run code that contains something like input() , or you have any other way of interacting with your program you would need additional setup - Plugin + simple config. The steps of having proper/full build system are: Install "Package Control": Win/Linux: ctrl+shift+p , Mac: cmd+shift+p ▶ Type: Install Package Control ▶ ENTER Install Terminus [LINK] via Package Control: Win/Linux: ctrl+shift+p , Mac: cmd+shift+p ▶ Type: Package Control: Install Package ▶ ENTER ▶ Type: Terminus ▶ ENTER Create Build System for Python Tools ▶ Build System ▶ New Build System… menu item or the Build: New Build System ▶ P
Recommends viveooo · 2022-04 · Stack Overflow · on “sublime text 4 isn't printing the user input while running the python code”
Thankypu for this!! I took your word for it and went to youtube to look for interactive code in sublime text and find a valuable information regarding new system build. I'm now using terminus to run my code on ST4, took me hours to go through it but finally now able to run my program!! Love ye bro!! Edit: I found this useful channel tons of resources on ST4. Here's link to it [link] [this video]
Cites OdatNurd · 2021-01 · Stack Overflow · on “How to display the output panel in Sublime Text”
@Basj standard build systems use the `exec` command, which only displays its output into a panel; panels can be resized upwards, but only to about 3/4 of the window height. However it's possible for a build to use a custom `target` which changes the command used, and that command can display build output in a `view` instead. The prime example of that is using the `Terminus` package to run your build (see: [this video] ) though that package is ST3 and up only. For ST2, SublimeREPL is the way to go for that.