diff --git a/build.sbt b/build.sbt index efc8b3c..9a26031 100644 --- a/build.sbt +++ b/build.sbt @@ -1,10 +1,10 @@ name := "ncurses" -version := "0.2.5" +version := "0.2.6" description := "Scala Native bindings for the GNU Ncurses C library" -scalaVersion := "3.1.3" +scalaVersion := "3.2.0" enablePlugins(ScalaNativePlugin) @@ -55,20 +55,3 @@ homepage := Some(url("https://github.com/edadma/" + name.value)) publishMavenStyle := true Test / publishArtifact := false - -pomIncludeRepository := { _ => - false -} - -pomExtra := - - git@github.com:edadma/{name.value}.git - scm:git:git@github.com:edadma/{name.value}.git - - - - edadma - Edward A Maxedon, Sr - https://github.com/edadma - - diff --git a/project/build.properties b/project/build.properties index d738b85..1cfbe55 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version = 1.7.1 +sbt.version = 1.7.2 diff --git a/project/plugins.sbt b/project/plugins.sbt index 5c93709..8966100 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,3 @@ -addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.5") +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.7") addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3") diff --git a/src/main/scala/Main.scala b/src/main/scala/Main.scala index fb7bd5e..df33eb3 100644 --- a/src/main/scala/Main.scala +++ b/src/main/scala/Main.scala @@ -18,15 +18,15 @@ //} //ex 1 -//import io.github.edadma.ncurses._ -// -//object Main extends App { -// initscr /* Start curses mode */ -// printw("Hello World !!!") /* Print Hello World */ -// refresh /* Print it on to the real screen */ -// getch /* Wait for user input */ -// endwin /* End curses mode */ -//} +import io.github.edadma.ncurses._ + +object Main extends App { + initscr /* Start curses mode */ + printw("Hello World !!!") /* Print Hello World */ + refresh /* Print it on to the real screen */ + getch /* Wait for user input */ + endwin /* End curses mode */ +} //ex 4 //import io.github.edadma.ncurses._ diff --git a/src/main/scala/io/github/edadma/ncurses/Panel.scala b/src/main/scala/io/github/edadma/ncurses/Panel.scala index d0595e8..82805e8 100644 --- a/src/main/scala/io/github/edadma/ncurses/Panel.scala +++ b/src/main/scala/io/github/edadma/ncurses/Panel.scala @@ -2,7 +2,7 @@ package io.github.edadma.ncurses import io.github.edadma.ncurses.extern.{LibNcurses => nc} -class Panel private[ncurses] (private[ncurses] val pan: nc.PANEL) extends AnyVal { +class Panel private[ncurses] (val pan: nc.PANEL) extends AnyVal { def panel_above: Panel = new Panel(nc.panel_above(pan)) diff --git a/src/main/scala/io/github/edadma/ncurses/Window.scala b/src/main/scala/io/github/edadma/ncurses/Window.scala index 9c2bbea..910a2b9 100644 --- a/src/main/scala/io/github/edadma/ncurses/Window.scala +++ b/src/main/scala/io/github/edadma/ncurses/Window.scala @@ -6,7 +6,7 @@ import io.github.edadma.ncurses.varargs import scala.scalanative.unsafe._ import scala.scalanative.unsigned._ -class Window private[ncurses] (private[ncurses] val win: nc.WINDOW) extends AnyVal { +class Window private[ncurses] (val win: nc.WINDOW) extends AnyVal { def printw(fmt: String, args: Any*): Int = Zone(implicit z => nc.vw_printw(win, toCString(fmt), varargs(args)))