randy3k / Terminus

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

Input pauses when using Terminus in panel #442

Open bitmagewb opened 2 weeks ago

bitmagewb commented 2 weeks ago

When using Terminus in the panel the input pauses and lags on my Macbook. If I hold down a key and let it repeat this can be seen in bursts of aaaaaaa(pause)aaaaaaaa(pause). It also occurs in normal typing.

Running Terminus in a tab is much less laggy. Non-Terminus (ex: iTerm2) terminals have no lag.

Environment: Sublime Text, Build 4180 Macbook Pro, Sonoma 14.6.1

The debug output from holding down 'a' seems to show input 'piling up' at intervals with multiple aaa's being processed in a block:

sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009667873382568359s
mode: [7, 25, 1, 2004], cursor: 81.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.001188039779663086s
mode: [7, 25, 1, 2004], cursor: 82.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0011589527130126953s
mode: [7, 25, 1, 2004], cursor: 83.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.001138925552368164s
mode: [7, 25, 1, 2004], cursor: 84.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.001209259033203125s
mode: [7, 25, 1, 2004], cursor: 85.1
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
receieved: aaaaaaaaa
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009551048278808594s
mode: [7, 25, 1, 2004], cursor: 94.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009491443634033203s
mode: [7, 25, 1, 2004], cursor: 95.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.001154184341430664s
mode: [7, 25, 1, 2004], cursor: 96.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009479522705078125s
mode: [7, 25, 1, 2004], cursor: 97.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009720325469970703s
mode: [7, 25, 1, 2004], cursor: 98.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009610652923583984s
mode: [7, 25, 1, 2004], cursor: 99.1
sent: a
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009391307830810547s
mode: [7, 25, 1, 2004], cursor: 100.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009222030639648438s
mode: [7, 25, 1, 2004], cursor: 101.1
sent: a
receieved: aa
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009338855743408203s
mode: [7, 25, 1, 2004], cursor: 103.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009348392486572266s
mode: [7, 25, 1, 2004], cursor: 104.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009281635284423828s
mode: [7, 25, 1, 2004], cursor: 105.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.00092315673828125s
mode: [7, 25, 1, 2004], cursor: 106.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009429454803466797s
mode: [7, 25, 1, 2004], cursor: 107.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0011298656463623047s
mode: [7, 25, 1, 2004], cursor: 108.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009491443634033203s
mode: [7, 25, 1, 2004], cursor: 109.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009417533874511719s
mode: [7, 25, 1, 2004], cursor: 110.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0010831356048583984s
mode: [7, 25, 1, 2004], cursor: 111.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0011420249938964844s
mode: [7, 25, 1, 2004], cursor: 112.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009660720825195312s
mode: [7, 25, 1, 2004], cursor: 113.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0011241436004638672s
mode: [7, 25, 1, 2004], cursor: 114.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0010218620300292969s
mode: [7, 25, 1, 2004], cursor: 115.1
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
sent: a
receieved: aaaaaaaaa
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009448528289794922s
mode: [7, 25, 1, 2004], cursor: 124.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009458065032958984s
mode: [7, 25, 1, 2004], cursor: 125.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0011420249938964844s
mode: [7, 25, 1, 2004], cursor: 126.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009779930114746094s
mode: [7, 25, 1, 2004], cursor: 127.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009827613830566406s
mode: [7, 25, 1, 2004], cursor: 128.1
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [1]
updating lines takes 0.0009570121765136719s
mode: [7, 25, 1, 2004], cursor: 129.1
sent: a
receieved: a
add 0 line(s) to scroll back history