randy3k / Terminus

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

I'm not able to use Nushell #444

Open kurokirasama opened 1 week ago

kurokirasama commented 1 week ago

Hey, in sublime text 4 I'm using the terminus package with this settings:

{
   "256color": true,
   "theme": "user",
   "unix_term": "xterm-256color", 
   "user_theme_colors":
   {
      "background": "#000000",
      "caret": "#ffffff",
      "foreground": "#ffffff"
   },
   "view_settings":
   {
      "font_face": "Monocraft Nerd Font Regular",
      "font_size": 15
   },
   "default_config": {
        "linux": "Nushell",    // login shell
    },
    "shell_configs": [
        {
            "name": "Nushell",
            "cmd": ["nu", "-i", "-l"],
            "env": {},
            "enable": true,
            "platforms": ["linux"]
        },
        {
            "name": "Bash",
            "cmd": ["bash", "-i", "-l"],
            "env": {},
            "enable": true,
            "platforms": ["linux", "osx"]
        }
    ],
   "debug": true,
   "debug_output": true
}

however, i cannot run command nu (nushell) in the terminus terminal when Bash is the default, it stays frozen and i cannot interact with it. The same happens if i set nushell as the default_config shell.

Note that nushell works fine outside of sublime's terminus.

I also tried without the -l and -i flags, and with xterm instead of xterm-256color, and the problem persists.

the debug log shows, when nushell is the default_config this:

Terminus [DEBUG]: add 4 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
Terminus [DEBUG]: updating lines takes 0.012325048446655273s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.14
Terminus [DEBUG]: receieved: [?2004h
Terminus [DEBUG]: receieved: 
Terminus [DEBUG]: receieved: 
Terminus [DEBUG]: receieved: [?25l]133;A\  1.4MBChatGpt]133;B\ 7 17.88°C0.823s878[5 q[?25h
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0005261898040771484s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 33
Terminus [DEBUG]: set recent view: 33

and when running nu from Bash in the terminus terminal:

Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0010852813720703125s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: kill
Terminus [DEBUG]: renderer breaks
Terminus [DEBUG]: activating with offset 0
Terminus [DEBUG]: view size: (40, 80)
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: handle resize 40 80 -> 15 144
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: 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, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
Terminus [DEBUG]: updating lines takes 0.001855611801147461s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.0
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: receieved: ]0;kira@deathnote: ~/Yandex.Disk/ChatGptkira@deathnote:ChatGpt$ 
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0005125999450683594s
Terminus [DEBUG]: mode: [7, 25], cursor: 24.0
Terminus [DEBUG]: sent: n
Terminus [DEBUG]: receieved: n
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0008289813995361328s
Terminus [DEBUG]: mode: [7, 25], cursor: 25.0
Terminus [DEBUG]: sent: u
Terminus [DEBUG]: receieved: u
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.00045108795166015625s
Terminus [DEBUG]: mode: [7, 25], cursor: 26.0
Terminus [DEBUG]: sent:  
Terminus [DEBUG]: receieved:  
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0004258155822753906s
Terminus [DEBUG]: mode: [7, 25], cursor: 27.0
Terminus [DEBUG]: sent: -
Terminus [DEBUG]: receieved: -
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0004343986511230469s
Terminus [DEBUG]: mode: [7, 25], cursor: 28.0
Terminus [DEBUG]: sent: n
Terminus [DEBUG]: receieved: n
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0014388561248779297s
Terminus [DEBUG]: mode: [7, 25], cursor: 29.0
Terminus [DEBUG]: sent: 
Terminus [DEBUG]: receieved: 

Terminus [DEBUG]: updating lines takes 0.00011682510375976562s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.1
Terminus [DEBUG]: receieved: ]2;~/Yandex.Disk/ChatGpt]7;file://deathnote/home/kira/Yandex.Disk/ChatGpt\     __  ,
 .--()°'.' Welcome to Nushell,
'|, . ,'   based on the nu language,
 !_-(_\    where all data is structured!

Please join our Discord community at https://discord.gg/NtAbbGn
Our GitHub repository is at https://github.com/nushell/nushell
Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
5yrs 6months 1day 50mins 46secs 895ms 337µs 193ns 

Startup Time: 8ms 459µs 618ns

[?2004h
Terminus [DEBUG]: add 3 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
Terminus [DEBUG]: updating lines takes 0.002990245819091797s
Terminus [DEBUG]: mode: [7, 25, 2004], cursor: 0.14
Terminus [DEBUG]: receieved: 
Terminus [DEBUG]: receieved: [?25l]133;A\]133;B\> 711/11/2024 02:49:58 PM878[?25h
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0004150867462158203s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: set recent view: 20

Am I doing something wrong?