Skip to content

Commit

Permalink
Minor updates.
Browse files Browse the repository at this point in the history
Add a note to the README file, making it explicit that this is merely
a wrapper around the existing ncurses library.  Closes #4

In an attempt to fix issue #3, the wrapper no longer wraps the
KEY_EVENT key code.  Closes #3

Update the dependency on golang.org/x/sys to a more recent version.
  • Loading branch information
seehuhn committed Dec 14, 2023
1 parent 8b8039f commit c694e8e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Ncurses
=======

This Go package is a wrapper for the ncurses library. It provides
access to the ncurses terminal handling library functions.
To use the Go package, you need to have the ncurses library installed.
This must include the header files and the shared library.

Installation
------------

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module seehuhn.de/go/ncurses

go 1.16

require golang.org/x/sys v0.2.0
require golang.org/x/sys v0.15.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
2 changes: 1 addition & 1 deletion keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ var keyLookup map[C.int]rune = map[C.int]rune{
C.KEY_ENTER: KeyEnter,
C.KEY_EOL: KeyEol,
C.KEY_EOS: KeyEos,
C.KEY_EVENT: KeyEvent,
// C.KEY_EVENT: KeyEvent,
C.KEY_EXIT: KeyExit,
C.KEY_F0 + 10: KeyF10,
C.KEY_F0 + 11: KeyF11,
Expand Down

0 comments on commit c694e8e

Please sign in to comment.