Sublime Forum

Finally, a multi-platform Terminal running in Sublime Text

#82

It may be problematic for full screen program such as vim though.

0 Likes

#83

Omg love this!! Just one issue tho, I’m using agnoster zsh theme (https://github.com/agnoster/agnoster-zsh-theme) in my terminal, which looks like this

This, however looks a bit odd in the Terminus :smiley:

The color discrepancy is minor thing, the bigger issue is probably the ‘notch’ part.

Other than that, everything is great. Adding multiple terminals as tabs in panel would also be cool to have :smiley:

0 Likes

#84

It’s not going to read your terminal theme and it’s using Sublime’s syntax coloring capabilities, so you’re not going to get the notch.

0 Likes

#85

If your sublime font is not the powerline patched font, you can set it specifically for Terminus, perhaps that’s it?

// Terminus.sublime-settings
"view_settings":
	{
		"font_face": "Fira Mono" // or whatever
	}
0 Likes

#86

Tried that, but it’s not working. It could be some special character

0 Likes

#87

I tried also with the default theme of Sublime, but the problem remains!

0 Likes

#88

@pichillilorenzo Did you upgrade to Terminus?

0 Likes

#89

Yes! I cloned your repo from your last commit https://github.com/randy3k/Terminus/commit/023c977b8ca1713f56ccb4f84f1a587db58fb403

0 Likes

#90

hmm forgot that the notch is rendered by the font, so it may be possible, but the font has to be an appropriate one…I haven’t looked at don’t options for this plugin.

0 Likes

#91

What version of Bash are you using? Could you turn on the debug option of the package and send me the logs? My bash uses \r\n for every newline, so there is no chance that it prints at the far edge of the panel.

0 Likes

#92

I don’t see exactly the same issue, but I do see an oddity in vim on the left side. The cursor draws at the same column when it is at both the first and second positions. Animation attached. Perhaps this is related somehow, but if not it’s not a big issue right now.

0 Likes

#93

Bash version: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)

Sublime console output:

reloading settings Packages/User/Terminus.sublime-settings
sent l
updating lines takes 0.0003960132598876953s
mode: [7, 25], cursor: 32.5
receieved: l
add 0 line(s) to scroll back history
screen is dirty: {5}
updating lines takes 0.0025839805603027344s
mode: [7, 25], cursor: 33.5
sent s
updating lines takes 0.0004000663757324219s
mode: [7, 25], cursor: 33.5
receieved: s
add 0 line(s) to scroll back history
screen is dirty: {5}
updating lines takes 0.0025920867919921875s
mode: [7, 25], cursor: 34.5
sent 
updating lines takes 0.00045299530029296875s
mode: [7, 25], cursor: 34.5
receieved: 
index.js			node_modules			package.json			test-ast.sublime-project	test-ast.sublime-workspace
MacBook-Pro-3:test-ast lorenzo$ 
add 3 line(s) to scroll back history
screen is dirty: {0, 1, 2, 3, 4, 5}
updating lines takes 0.005713939666748047s
mode: [7, 25], cursor: 32.5

Screenshot of the output panel:

0 Likes

#94

I noticed it yesterday and it should have been fixed.

0 Likes

#95

That’s strange. Given the logs, there should be only one line.

Edit: It’s seems an issue of tab stops. How about ls -T1? Could you also include the logs about the view size when the terminal starts?

0 Likes

#96

I get all files/folders in one column, like this:

MacBook-Pro-3:node_modules lorenzo$ ls -T1
@ava
@babel
@concordance
@mrmlnc
@nodelib
ajv
ansi-align
ansi-escapes
...
0 Likes

#98

Could you also include the logs about the view size or changing view size when the terminal starts? I subspect that the tab stops are not correctly placed because the view size is not correct.

0 Likes

#99

When I starts the output panel:

view size: (24, 80)
handle resize 24 80 -> 6 269
handle resize 23 187 -> 18 187add 0 line(s) to scroll back history
screen is dirty: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}
updating lines takes 0.008358955383300781s
mode: [7, 25], cursor: 0.0

add 0 line(s) to scroll back history
screen is dirty: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}
updating lines takes 0.0073850154876708984s
mode: [7, 25], cursor: 35.3
receieved: 
e[KMacBook-Pro-3:deps-report lorenzo$ 
add 0 line(s) to scroll back history
screen is dirty: {3}
updating lines takes 0.00273895263671875s
mode: [7, 25], cursor: 35.3
receieved: MacBook-Pro-3:deps-report lorenzo$ 
add 0 line(s) to scroll back history
screen is dirty: {0}
updating lines takes 0.003223896026611328s
mode: [7, 25], cursor: 35.0

When I resize the view:

handle resize 6 269 -> 6 179
add 0 line(s) to scroll back history
screen is dirty: {0, 1, 2, 3, 4, 5}
updating lines takes 0.003139972686767578s
mode: [7, 25], cursor: 35.0
receieved: 
e[KMacBook-Pro-3:deps-report lorenzo$ 
add 0 line(s) to scroll back history
screen is dirty: {0}
updating lines takes 0.0028841495513916016s
mode: [7, 25], cursor: 35.0
0 Likes

#100

Thanks. I guess I have nailed it.

0 Likes

#101

I agree with other, it is an issue of the font_face

Regarding multiple panels, it is actually possible but it requires running the command terminus_open manually. I don’t have a good way to allow a user to manage the panels, so keeping only one of them is easier. If you want to open more panels, check this

0 Likes

#102

Yeah! It is working now :thumbsup:

0 Likes