Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edadma committed Oct 25, 2022
1 parent 0444e85 commit 5cfb924
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 32 deletions.
21 changes: 2 additions & 19 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -55,20 +55,3 @@ homepage := Some(url("https://github.com/edadma/" + name.value))
publishMavenStyle := true

Test / publishArtifact := false

pomIncludeRepository := { _ =>
false
}

pomExtra :=
<scm>
<url>git@github.com:edadma/{name.value}.git</url>
<connection>scm:git:git@github.com:edadma/{name.value}.git</connection>
</scm>
<developers>
<developer>
<id>edadma</id>
<name>Edward A Maxedon, Sr</name>
<url>https://github.com/edadma</url>
</developer>
</developers>
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.7.1
sbt.version = 1.7.2
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")
18 changes: 9 additions & 9 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/io/github/edadma/ncurses/Panel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/io/github/edadma/ncurses/Window.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 5cfb924

Please sign in to comment.