term-size


Лицензия

Лицензия

MIT
Группа

Группа

com.github.duhemm
Идентификатор

Идентификатор

term-size_2.11
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

term-size
term-size
Ссылка на сайт

Ссылка на сайт

https://github.com/Duhemm/term
Организация-разработчик

Организация-разработчик

com.github.duhemm
Система контроля версий

Система контроля версий

https://github.com/Duhemm/term

Скачать term-size_2.11

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.duhemm/term-size_2.11/ -->
<dependency>
    <groupId>com.github.duhemm</groupId>
    <artifactId>term-size_2.11</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.duhemm/term-size_2.11/
implementation 'com.github.duhemm:term-size_2.11:0.1.0'
// https://jarcasting.com/artifacts/com.github.duhemm/term-size_2.11/
implementation ("com.github.duhemm:term-size_2.11:0.1.0")
'com.github.duhemm:term-size_2.11:jar:0.1.0'
<dependency org="com.github.duhemm" name="term-size_2.11" rev="0.1.0">
  <artifact name="term-size_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.duhemm', module='term-size_2.11', version='0.1.0')
)
libraryDependencies += "com.github.duhemm" % "term-size_2.11" % "0.1.0"
[com.github.duhemm/term-size_2.11 "0.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.scala-lang : scala-library jar 2.11.12

provided (2)

Идентификатор библиотеки Тип Версия
org.scala-lang : scala-reflect jar 2.11.12
com.github.duhemm : sbt-jni-macros_2.11 jar 1.4.4

test (1)

Идентификатор библиотеки Тип Версия
org.scalatest : scalatest_2.11 jar 3.2.7

Модули Проекта

Данный проект не имеет модулей.

term-size - How large is the terminal window?

term-size exposes a platform-independent API to get the size of the current terminal window. On platform where the native library is available, term-size doesn't require forking a new process to get the terminal size. When the native library is unavailable, term-size uses tput to get the size of the current terminal.

Installation

term-size is available on Maven Central. Add the following to your build:

libraryDependencies += "com.github.duhemm" %% "term-size" % "<version>"

The latest version available is Maven Central

Example usage

object Main {
  def main(args: Array[String]): Unit = {
    val size = term.TermSize.size()
    println(s"Current terminal size: ${size.rows} rows and ${size.cols} columns.")
  }
}

Documentation: javadoc

Compatibility

Operating system / CPU architecture x86_64 x86_32 ARM
MacOS 🚀
Linux 🚀
Windows 🚀

🚀 : Available, native
: Available, via Tput
: Unavailable

Версии библиотеки

Версия
0.1.0
0.0.1