TerminalFX icon indicating copy to clipboard operation
TerminalFX copied to clipboard

Does not correctly handle line rewrites

Open xeruf opened this issue 7 years ago • 7 comments

image

Gradle rewrites lines to create a progress indicator, but as you can see that doesn't work inside the terminal.

Expected behaviour

The current line is updated after the line return is sent.

Current behaviour

The lines are chained

xeruf avatar Feb 23 '18 18:02 xeruf

Can you try latest version?

rahmanusta avatar Nov 12 '18 10:11 rahmanusta

I work with @Xerus2000. I have just tried the latest version. No change in behavior, sadly.

sghpjuikit avatar Feb 16 '19 15:02 sghpjuikit

How can I reproduce it?

rahmanusta avatar Feb 17 '19 04:02 rahmanusta

Gradle seems to be using this feature. The way to reproduce this I know of is command ./gradlew run or ./gradlew test

@Xerus2000 can you think of a way to reproduce the problem without setting up an gradle project? Perhaps some bash program that uses the mentioned line rewrite feature?

sghpjuikit avatar Feb 17 '19 13:02 sghpjuikit

No idea. You could just checkout any gradle project (all of mine use it and I have a few small ones) and run it on there, doesn't seem like a big deal to me.

xeruf avatar Feb 20 '19 18:02 xeruf

The underlying problem is the same as in #17, due to line rewrites being implemented by ANSI escape codes.

It is necessary to first identify which library/component in the technology stack lacks the support for this. Perhaps it is hterm hterm escape sequences

sghpjuikit avatar Jun 19 '19 08:06 sghpjuikit

Reproduced on Linux & Windows

sghpjuikit avatar Jun 19 '19 08:06 sghpjuikit