all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#51912] [PATCH 0/2] gnu: Add cl-terminal-keypress.
@ 2021-11-17  5:44 Foo Chuan Wei
  2021-11-17  5:45 ` [bug#51912] [PATCH 1/2] gnu: Add cl-trivial-raw-io Foo Chuan Wei
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Foo Chuan Wei @ 2021-11-17  5:44 UTC (permalink / raw)
  To: 51912

Foo Chuan Wei (2):
  gnu: Add cl-trivial-raw-io.
  gnu: Add cl-terminal-keypress.

 gnu/packages/lisp-xyz.scm | 73 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)


base-commit: 02a67810e566e8402e0b927c81ae39391762767d
-- 
2.25.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#51912] [PATCH 1/2] gnu: Add cl-trivial-raw-io.
  2021-11-17  5:44 [bug#51912] [PATCH 0/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
@ 2021-11-17  5:45 ` Foo Chuan Wei
  2021-11-17  5:46 ` [bug#51912] [PATCH 2/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
  2021-11-19 10:04 ` bug#51912: [PATCH 0/2] " Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Foo Chuan Wei @ 2021-11-17  5:45 UTC (permalink / raw)
  To: 51912

* gnu/packages/lisp-xyz.scm (cl-trivial-raw-io, ecl-trivial-raw-io,
  sbcl-trivial-raw-io): New variables.
---
 gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4b17c173c9..b63c89012a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18719,6 +18719,37 @@ terminals.")
 (define-public ecl-clinenoise
   (sbcl-package->ecl-package sbcl-clinenoise))
 
+(define-public sbcl-trivial-raw-io
+  (let ((commit "b1a3c876305baa0dead419841de7b3e433a75867")
+        (revision "1"))
+    (package
+      (name "sbcl-trivial-raw-io")
+      (version (git-version "0.0.2" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/kingcons/trivial-raw-io")
+               (commit commit)))
+         (file-name (git-file-name "trivial-raw-io" version))
+         (sha256
+          (base32 "19290zw2b64k78wr62gv30pp7cmqg07q85vfwjknaffjdd73xwi1"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       `(("sbcl-alexandria" ,sbcl-alexandria)))
+      (home-page "https://github.com/kingcons/trivial-raw-io")
+      (synopsis "Trivial portability for raw *nix IO in Common Lisp")
+      (description
+       "For all your portable CL raw POSIX I/O needs!  We export three simple
+symbols: @code{with-raw-io}, @code{read-char}, and @code{read-line}.")
+      (license license:bsd-2))))
+
+(define-public cl-trivial-raw-io
+  (sbcl-package->cl-source-package sbcl-trivial-raw-io))
+
+(define-public ecl-trivial-raw-io
+  (sbcl-package->ecl-package sbcl-trivial-raw-io))
+
 (define-public sbcl-periodic-table
   (package
     (name "sbcl-periodic-table")
-- 
2.25.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#51912] [PATCH 2/2] gnu: Add cl-terminal-keypress.
  2021-11-17  5:44 [bug#51912] [PATCH 0/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
  2021-11-17  5:45 ` [bug#51912] [PATCH 1/2] gnu: Add cl-trivial-raw-io Foo Chuan Wei
@ 2021-11-17  5:46 ` Foo Chuan Wei
  2021-11-19 10:04 ` bug#51912: [PATCH 0/2] " Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Foo Chuan Wei @ 2021-11-17  5:46 UTC (permalink / raw)
  To: 51912

* gnu/packages/lisp-xyz.scm (cl-terminal-keypress,
  ecl-terminal-keypress, sbcl-terminal-keypress): New variables.
---
 gnu/packages/lisp-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b63c89012a..fbf1a0ac8e 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18750,6 +18750,48 @@ symbols: @code{with-raw-io}, @code{read-char}, and @code{read-line}.")
 (define-public ecl-trivial-raw-io
   (sbcl-package->ecl-package sbcl-trivial-raw-io))
 
+(define-public sbcl-terminal-keypress
+  (let ((commit "2ef48c045aa627229764b2aa393a83d392d93d08")
+        (revision "1"))
+    (package
+      (name "sbcl-terminal-keypress")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/eudoxia0/terminal-keypress")
+               (commit commit)))
+         (file-name (git-file-name "cl-terminal-keypress" version))
+         (sha256
+          (base32 "11c4krpq5x55qkchx6ykcnb455ssb4r3jjywx3c3irfrkj733ybp"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       `(("alexandria" ,sbcl-alexandria)
+         ("trivial-raw-io" ,sbcl-trivial-raw-io)))
+      (native-inputs
+       `(("fiveam" ,sbcl-fiveam)))
+      (home-page "https://github.com/eudoxia0/terminal-keypress")
+      (synopsis "Read keyboard events in the terminal from Common Lisp")
+      (description
+       "This is a library for reading semi-raw user input from terminals.
+Semi-raw as in, we can't detect if the user pressed the @code{Control} key
+alone, and the function keys are a mystery.  What is supported, however, is:
+
+@itemize
+@item Regular characters
+@item Control+[key]
+@item Alt+[key]
+@item Control+Alt+[key]
+@end itemize")
+      (license license:expat))))
+
+(define-public cl-terminal-keypress
+  (sbcl-package->cl-source-package sbcl-terminal-keypress))
+
+(define-public ecl-terminal-keypress
+  (sbcl-package->ecl-package sbcl-terminal-keypress))
+
 (define-public sbcl-periodic-table
   (package
     (name "sbcl-periodic-table")
-- 
2.25.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#51912: [PATCH 0/2] gnu: Add cl-terminal-keypress.
  2021-11-17  5:44 [bug#51912] [PATCH 0/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
  2021-11-17  5:45 ` [bug#51912] [PATCH 1/2] gnu: Add cl-trivial-raw-io Foo Chuan Wei
  2021-11-17  5:46 ` [bug#51912] [PATCH 2/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
@ 2021-11-19 10:04 ` Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Guillaume Le Vaillant @ 2021-11-19 10:04 UTC (permalink / raw)
  To: Foo Chuan Wei; +Cc: 51912-done

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

Patches pushed as 4cc345faf950fe47afd38ce9657ce8d5d69acaf9 and
following.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-19 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17  5:44 [bug#51912] [PATCH 0/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
2021-11-17  5:45 ` [bug#51912] [PATCH 1/2] gnu: Add cl-trivial-raw-io Foo Chuan Wei
2021-11-17  5:46 ` [bug#51912] [PATCH 2/2] gnu: Add cl-terminal-keypress Foo Chuan Wei
2021-11-19 10:04 ` bug#51912: [PATCH 0/2] " Guillaume Le Vaillant

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.