Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| /* | |
| * Copyright 2014 Chris Banes | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /** | |
| * K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
| * | |
| * More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
| * https://github.com/KdotJPG/OpenSimplex2 | |
| */ | |
| public class OpenSimplex2S { | |
| private static final long PRIME_X = 0x5205402B9270C86FL; |
| /* | |
| * Copyright 2014 Johannes Homeier | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // You can use maven-publish-helper.gradle script without changes and even share it between multiple | |
| // modules. Just place the maven-publish-helper.gradle file in the root directory of your project, | |
| // then apply it at the bottom of your module's build.gradle file like this: | |
| // ...content of module's build.gradle file... | |
| apply from: '../maven-publish-helper.gradle' | |
| publishing { | |
| publications { |
| fun main(args: Array<String>) { | |
| launch { | |
| loadAllFiles() | |
| } | |
| } | |
| fun launch(block: suspend () -> Unit) { | |
| block.startCoroutine(object : Continuation<Unit> { | |
| override val context: CoroutineContext get() = EmptyCoroutineContext | |
| override fun resume(value: Unit) {} |
| android { | |
| onVariantProperties { | |
| val mainOutput = outputs.single { it.outputType == VariantOutputConfiguration.OutputType.SINGLE } | |
| tasks.register<CreateRenamedApk>("createRenamedApkFor${name}") { | |
| this.originalApkFolder.set(artifacts.get(ArtifactType.APK)) | |
| this.builtArtifactsLoader.set(artifacts.getBuiltArtifactsLoader()) | |
| this.newApkFolder.set(layout.buildDirectory.dir("outputs/renamed_apk/${[email protected]}")) | |
| this.versionCode.set(mainOutput.versionCode) | |
| this.versionName.set(mainOutput.versionName) | |
| } |