randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Terminal wraps characters to min_columns when max/minimising the window #270

Open liijit opened 3 years ago

liijit commented 3 years ago

Might be similar to #236

Issue

This issue seems to exist if a sublime theme has "title_bar" with "bg" and "fg" values. With ST4 supporting themed title bars that use the colours set to "bg" and "fg", Terminus acts differently. Replacing the bg and fg lines with "theme": "dark" solves the issues (but of course, removes the themed title bar).

Example

Packages Installed:

Key Binding

{
    "keys": ["ctrl+shift+alt+t"],
    "command": "toggle_terminus_panel",
    "args":
    {
        "title": "Command Prompt",
        "config_name": "Default",
        "shell_cmd": "cmd.exe -cmd /K & H: & cls",
        "cwd": "$folder"
    }
},

Issue Vid

https://user-images.githubusercontent.com/5007796/113418012-889c2000-93bc-11eb-8982-1a3e6c46bda7.mp4

https://user-images.githubusercontent.com/5007796/113418037-9782d280-93bc-11eb-8df7-fe20db4d4ce7.mp4

Enviroment

Windows 10 x64 20H2 Sublime Text 4099

randy3k commented 3 years ago

It seems to be caused by a momentarily change of the window size. Not sure how we should address it. Could you share your .sublime-theme?

liijit commented 3 years ago

https://pastebin.com/jZHx7hHh Here you go :) Rename the json to .sublime-theme

randy3k commented 3 years ago

For some reasons, you theme is broken on my macOS ST build 4099.

Screen Shot 2021-04-02 at 5 29 46 PM
liijit commented 3 years ago

Oh that's odd, I copied the pastebins and pasted it back into my theme and it works hmm. Try installing the Ayu Theme from Package Control and then select Ayu Mirage Theme

liijit commented 3 years ago

Can reproduce, just realised that Ayu Theme is packaged with assets.

image

Installing the theme with Package Control and using PackageResourceViewer to navigate the package to the .sublime-theme would be better

https://user-images.githubusercontent.com/5007796/113464264-3d692800-9423-11eb-8046-c01c06901ca2.mp4

mataha commented 1 year ago

Have to bump this as I keep hitting the same problem.

image

Terminus 0.3.28; I'm using ayu as well.