Skip to content

Commit

Permalink
Merge pull request #1733 from snmsts/less-pdcurses-in-ncurses
Browse files Browse the repository at this point in the history
Less pdcurses in ncurses
  • Loading branch information
cxxxr authored Jan 4, 2025
2 parents 28f62aa + 1ebd45c commit 1b40b1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
8 changes: 1 addition & 7 deletions frontends/ncurses/cl-charms-pdcurseswin32.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

(in-package :cl-charms/low-level)

(export '(getch
color-pair
resizeterm
*escdelay*
(export '(*escdelay*
*pdcurses-version-number*
*pdcurses-version-info*
PDC-save-key-modifiers))

;; add missing definitions
(defun getch () (wgetch *stdscr*))
(defun color-pair (n) (logand (ash n 24) #xff000000))
(setf (fdefinition 'resizeterm) #'resize-term)
(defvar *escdelay-dummy* 0)
(define-symbol-macro *escdelay* *escdelay-dummy*)

Expand Down
2 changes: 1 addition & 1 deletion frontends/ncurses/lem-ncurses.asd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lem"
"lem/extensions")
:serial t
:components (#+win32(:file "cl-charms-pdcurseswin32")
:components (#+pdcurses(:file "cl-charms-pdcurseswin32")
(:file "config")
(:file "term")
(:file "clipboard")
Expand Down
5 changes: 2 additions & 3 deletions frontends/ncurses/ncurses.lisp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(uiop:define-package :lem-ncurses
(:use :cl)
(:use-reexport :lem-ncurses/config)
(:export :*terminal-io-saved*
;; ncurses-pdcurseswin32.lisp
:input-polling-interval))
(:export :*terminal-io-saved*))

(in-package :lem-ncurses)

(pushnew :lem-ncurses *features*)
Expand Down

0 comments on commit 1b40b1e

Please sign in to comment.