Sublime Forum

Finally, a multi-platform Terminal running in Sublime Text

#184

In v0.3.0, there is a new command terminus_exec which better resembles the original build system.

https://github.com/randy3k/Terminus#terminus-build-system


(see the dynamic console)

2 Likes

#185

It doesn’t work if shell_cmd is specified but not cmd

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1050, in run_
    return self.run(**args)
  File "C:\Users\User\AppData\Roaming\Sublime Text 3\Packages\Terminus\terminus\core.py", line 389, in run
    raise Exception("'cmd' cannot be empty")
Exception: 'cmd' cannot be empty
0 Likes

#186

You are right. It doesn’t support shell_cmd (at least for now). You will need to either invoke your favorite shell or use the cmd argument.

0 Likes

#187

v0.3.1 is out. Terminus now supports shell_cmd.

4 Likes

#188

I think you meant terminus_exec here. Can you fix the misspelling? (so anyone searching can find it by its name)

1 Like

#189

fixed. Thanks for the note.

1 Like

#192

Hello. Is there any way to create build system which would open terminus in another row panel? I tried terminus_open command (as per packages readme) trying to add some extra arguments but got bunch of exceptions from python. Unfortunately, I’m not python specialist and therefore all that looks for me as black hole.

0 Likes

#196

Great extension! Is there a keyboard shortcut to switch the focus between the editing pane and Terminus? (I’m using Vintage mode and Mac OS)

1 Like

#198

I have been trying to find something lightweight that would work all the time, but no luck.
Since I operate the editor by voice, I finally came up with a spoken combination of focus neighboring group and go to anything based on the name of the Terminus window.

0 Likes

#200

i am getting out put of my c++ program
as its address maybe how to resove this

the problem occured as command line tools got updated in my mac and first it deleted xcrun file and then i had toh install it through xcode -select – install and now its not showing output as i want

however on executing in terminal it gives correct output

0 Likes

#201

i am getting out put of my c++ program
as its address maybe how to resove this

the problem occured as command line tools got updated in my mac and first it deleted xcrun file and then i had toh install it through xcode -select – install and now its not showing output as i want

however on executing in terminal it gives correct output
plz help sir
(upload://n5FNWMwdeyhbfhX9sAiLUFnCyQ9.jpeg)

0 Likes

#202

0 Likes

#205

i like yourr post

0 Likes

#207

Hello, I am French but I write in English.
could you help me on this error because it comes every time i compile my simple cpp code
here is the error:
‘gcc’ is not recognized as an internal command
or external, an executable program or a batch file.
[Finished in 91ms]

0 Likes

#208

If you want to use the built in C/C++ build system in Sublime, you need to install MinGW first; the error message is telling you that the build is trying to run a program (in this case the C compiler) but it’s not found.

0 Likes

#209

I’m also used to close the current view with Ctrl-W, which doesn’t work here. Ctrl-F4 works though.

0 Likes

#210

The README includes a key binding you can add if you want ctrl+w to close the tab instead of being given to the program running in the terminal:

{ 
    "keys": ["ctrl+w"], "command": "terminus_close", "context": [{ "key": "terminus_view"}]
}
0 Likes

#214

A decent terminal integration is very much needed. I am not satisfied with TerminalView and will immediately give your package a try.

0 Likes

#215

It’d be nice to have the console open in the current file’s directory, or perhaps set some environment variables about sublime’s open file / project or anything useful for use by shell scripts..

0 Likes

#216

terminus_open takes a paths parameter to provide the starting dir.

window.run_command("terminus_open", {"paths": ["/path/to/folder"]})
1 Like