[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/10: gnu: Add cl-terminal-keypress.
From: |
guix-commits |
Subject: |
10/10: gnu: Add cl-terminal-keypress. |
Date: |
Fri, 19 Nov 2021 04:49:59 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit e3bba7f720d74320e24e752c9cdcb193a939480c
Author: Foo Chuan Wei <chuanwei.foo@hotmail.com>
AuthorDate: Wed Nov 17 05:46:38 2021 +0000
gnu: Add cl-terminal-keypress.
* gnu/packages/lisp-xyz.scm (cl-terminal-keypress,
ecl-terminal-keypress, sbcl-terminal-keypress): New variables.
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
---
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 128aefb..541af9b 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18953,6 +18953,48 @@ Lisp.")
(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")
- branch master updated (8dfab10 -> e3bba7f), guix-commits, 2021/11/19
- 03/10: gnu: Add cl-path-parse., guix-commits, 2021/11/19
- 10/10: gnu: Add cl-terminal-keypress.,
guix-commits <=
- 07/10: gnu: Add cl-trivial-open-browser., guix-commits, 2021/11/19
- 01/10: gnu: jgmenu: Update to 4.4.0., guix-commits, 2021/11/19
- 08/10: gnu: Add cl-which., guix-commits, 2021/11/19
- 09/10: gnu: Add cl-trivial-raw-io., guix-commits, 2021/11/19
- 04/10: gnu: Add cl-pileup., guix-commits, 2021/11/19
- 02/10: gnu: Add cl-genhash., guix-commits, 2021/11/19
- 05/10: gnu: Add cl-routes., guix-commits, 2021/11/19
- 06/10: gnu: Add cl-terminal-size., guix-commits, 2021/11/19