2020-09-11 19:22:55 +08:00
|
|
|
/*
|
2020-09-11 19:28:12 +08:00
|
|
|
* Copyright 2019-2020 Mamoe Technologies and contributors.
|
2020-09-11 19:22:55 +08:00
|
|
|
*
|
2020-09-11 19:28:12 +08:00
|
|
|
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
2020-10-28 13:35:15 +08:00
|
|
|
* Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 license that can be found through the following link.
|
2020-09-11 19:22:55 +08:00
|
|
|
*
|
2020-09-11 19:28:12 +08:00
|
|
|
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
2020-09-11 19:22:55 +08:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* @author Karlatemp <karlatemp@vip.qq.com> <https://github.com/Karlatemp>
|
|
|
|
*/
|
|
|
|
|
2020-09-18 12:43:57 +08:00
|
|
|
package net.mamoe.mirai.console.terminal
|
2020-09-11 19:22:55 +08:00
|
|
|
|
|
|
|
@Retention(AnnotationRetention.BINARY)
|
|
|
|
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
|
|
|
@Target(
|
|
|
|
AnnotationTarget.CLASS,
|
|
|
|
AnnotationTarget.TYPEALIAS,
|
|
|
|
AnnotationTarget.FUNCTION,
|
|
|
|
AnnotationTarget.PROPERTY,
|
|
|
|
AnnotationTarget.FIELD,
|
|
|
|
AnnotationTarget.CONSTRUCTOR
|
|
|
|
)
|
|
|
|
@MustBeDocumented
|
2020-09-18 12:43:57 +08:00
|
|
|
annotation class ConsoleTerminalExperimentalApi
|
2020-09-11 19:22:55 +08:00
|
|
|
|
2020-09-18 12:43:57 +08:00
|
|
|
@ConsoleTerminalExperimentalApi
|
2020-10-28 13:35:15 +08:00
|
|
|
object ConsoleTerminalSettings {
|
2020-09-11 19:22:55 +08:00
|
|
|
@JvmField
|
|
|
|
var setupAnsi: Boolean = System.getProperty("os.name")
|
|
|
|
.toLowerCase()
|
2020-09-11 20:52:50 +08:00
|
|
|
.contains("windows") // Just for Windows
|
2020-09-11 19:22:55 +08:00
|
|
|
|
|
|
|
@JvmField
|
|
|
|
var noConsole: Boolean = false
|
|
|
|
|
|
|
|
@JvmField
|
2020-09-11 20:52:50 +08:00
|
|
|
var noAnsi: Boolean = false
|
2020-09-11 19:45:26 +08:00
|
|
|
|
2020-09-11 19:22:55 +08:00
|
|
|
@JvmField
|
2020-09-11 20:52:50 +08:00
|
|
|
var noConsoleSafeReading: Boolean = false
|
2020-09-11 20:42:00 +08:00
|
|
|
|
|
|
|
@JvmField
|
|
|
|
var noConsoleReadingReplacement: String = ""
|
2020-09-11 19:22:55 +08:00
|
|
|
}
|