Sublime Forum

Finally, a multi-platform Terminal running in Sublime Text

#176

Just the up arrow?

1 Like

#177

Terminal.app in OSX has a feature called “jump to previous mark” (cmd + UP) which is useful when you have a program that has a lot of output and you can have the terminal scroll back to the part where the last command was given.

I was wondering if Terminus had something similar.

0 Likes

#178

Oic, it’s not possible at the moment. But definitely a useful feature.

0 Likes

#179

I have a build system that opens the output in a new Terminus view/tab on macOS. I can then enter further commands in this new Terminus view/tab. However, when I press the up, down, right, or left arrows I get the following output respectively ^[[A, ^[[B, ^[[C, ^[[D.

Is it possible to change the output of the arrow keys to their default macOS behaviour in the new Terminus view/tab? This may be done in User Key Bindings. I would use this so I could press ‘command + left arrow’ to go the start of the line etc

0 Likes

#180

They are the correct sequences to be sent to the terminal when those keys are hit. You are seeing those sequences because your program doesn’t (or has not yet) interpret them. What do you mean when you said the default behaviour? Do you mean going up and down like a regular file?

0 Likes

#181

Thanks for the quick reply Randy. After the build opens the output in a new Terminus view/tab on macOS, I can then type in further commands. If for instance I’m typing one of these further commands and wish to go back to the start of the line to correct a mistake by pressing the left arrow, instead of moving the cursor I get the output of ^[[D. Is it possible so that pressing the arrow key moves the cursor as opposed to getting this output?

0 Likes

#182

It is the duty of the program you are using to handle the arrow keys and that’s not the job of the terminal emulator.

For instance, if you use Terminus to open ipython, the arrow keys will work as expected. It is because ipython is handling those key sequences and put the cursor in the correct location.

0 Likes

#183

Thanks Randy.

0 Likes

#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