Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle unicode input in raw mode #218

Merged
merged 6 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- Split the library up into modules, so you can produce smaller JVM artifacts by only using the parts you need.
- Added support for raw mode and input events to JS and wasmJS targets when running on node.js.
- Added tvOS and watchOS native targets to all modules except the new `mordant-markdown` module.
- Added ability to control raw mode with the `TerminalRecorder`.
- Added support for unicode input in raw mode.

### Changed
- **Breaking Change** Moved `Terminal.info.width` and `height` to `Terminal.size.width` and `height`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class CoroutinesAnimatorTest {
job.isActive shouldBe false
}

@Test
@JsName("stop_and_clear")
@[Test JsName("stop_and_clear")]
fun `stop and clear`() = runTest {
val a = progressBarLayout(spacing = 0, textFps = 1) {
completed()
Expand All @@ -86,8 +85,7 @@ class CoroutinesAnimatorTest {
vt.fullNormalizedOutput() shouldBe "$HIDE_CURSOR 0/10\r${CSI}0J$SHOW_CURSOR"
}

@Test
@JsName("unit_animation")
@[Test JsName("unit_animation")]
fun `unit animation`() = runTest {
var i = 1
var fin = false
Expand All @@ -111,8 +109,7 @@ class CoroutinesAnimatorTest {
job.isActive shouldBe false
}

@Test
@JsName("multi_progress_animation")
@[Test JsName("multi_progress_animation")]
fun `multi progress animation`() = runTest {
val layout = progressBarLayout { completed(fps = 1) }
val animation = MultiProgressBarAnimation(t).animateInCoroutine()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Keep rules for those who are using ProGuard.

-dontwarn org.graalvm.**
-dontwarn com.oracle.svm.core.annotate.**
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }
-keepattributes RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,RuntimeVisibleTypeAnnotations,AnnotationDefault
Loading