xterm.dart icon indicating copy to clipboard operation
xterm.dart copied to clipboard

Stuttering using interactive commands

Open t924417424 opened this issue 2 years ago β€’ 7 comments

Input will slow down when there are too many characters in the terminal System: windows10 TerminalSize: 1920*1080 example: vim、top...

t924417424 avatar Oct 26 '21 08:10 t924417424

Could you provide your flutter doctor output?

xtyxtyx avatar Oct 27 '21 13:10 xtyxtyx

δ½ θƒ½ζδΎ›δ½ ηš„flutter doctorθΎ“ε‡Ίε—οΌŸ

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19043.1288], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio η”Ÿζˆε·₯ε…· 2019 16.11.3)
[√] Android Studio (version 2020.3) [√] Connected device (3 available)

t924417424 avatar Oct 28 '21 06:10 t924417424

ζ•θŽ·

t924417424 avatar Oct 28 '21 06:10 t924417424

Any updates? I have the same issue.

vanoseva avatar Dec 09 '21 07:12 vanoseva

Two ideas from my side here:

  1. Do you use TerminalIsolate or Terminal in your application?
  2. If TerminalIsolate (which should already be more responsive than Terminal) then could you try the latest beta update of Flutter (they improved Isolate performance)

devmil avatar Dec 14 '21 22:12 devmil

Hi @devmil 1. Do you use TerminalIsolate or Terminal in your application?_ I am using Terminal 2. If TerminalIsolate (which should already be more responsive than Terminal) then could you try the latest beta update of Flutter (they improved Isolate performance) When I try TerminalIsolate (using isolate.dart in the example of xterm), I encountered the exception "Null check operator used on a null value" in terminal_isolate.dart file @override int get scrollOffsetFromBottom => _lastState!.scrollOffsetFromBottom;

xterm version: ^2.5.0-pre

And here is my flutter info: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.5.1, on Microsoft Windows [Version 10.0.22000.348], locale en-US) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) X cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. X Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.11.3) [√] Android Studio (version 4.1) [√] VS Code (version 1.63.0) [√] Connected device (3 available)

! Doctor found issues in 1 category.

vanoseva avatar Dec 15 '21 02:12 vanoseva

Sorry for the delay. I assume you did not start the isolate, did you? Like here: https://github.com/TerminalStudio/studio/blob/ec3920fe72db2e0a0ce243320ad8b644c92d15e1/studio/lib/main.dart#L139

I think we should get a better error message in that case though!

devmil avatar Dec 16 '21 07:12 devmil