Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
ee6f0960
Commit
ee6f0960
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
#+clx'ed X only files.
parent
942cd4b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hemlock/input.lisp
+7
-3
7 additions, 3 deletions
hemlock/input.lisp
with
7 additions
and
3 deletions
hemlock/input.lisp
+
7
−
3
View file @
ee6f0960
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
;;;; Editor input from windowing system.
;;;; Editor input from windowing system.
#
|
#
+
clx
(
defstruct
(
windowed-editor-input
(
defstruct
(
windowed-editor-input
(
:include
editor-input
(
:include
editor-input
(
:get
#'
windowed-get-key-event
)
(
:get
#'
windowed-get-key-event
)
...
@@ -232,18 +232,21 @@
...
@@ -232,18 +232,21 @@
(
:clear
#'
windowed-clear-input
))
(
:clear
#'
windowed-clear-input
))
(
:print-function
(
:print-function
(
lambda
(
s
stream
d
)
(
lambda
(
s
stream
d
)
(declare (ignore s d
write
))
(
declare
(
ignore
s
d
))
(
write-string
"#<Editor-Window-Input stream>"
stream
)))
(
write-string
"#<Editor-Window-Input stream>"
stream
)))
(
:constructor
make-windowed-editor-input
(
:constructor
make-windowed-editor-input
(
&optional
(
head
(
make-input-event
))
(
tail
head
))))
(
&optional
(
head
(
make-input-event
))
(
tail
head
))))
hunks
)
; List of bitmap-hunks which input to this stream.
hunks
)
; List of bitmap-hunks which input to this stream.
#+
clx
(
defun
windowed-get-key-event
(
stream
ignore-abort-attempts-p
)
(
defun
windowed-get-key-event
(
stream
ignore-abort-attempts-p
)
(
editor-input-method-macro
))
(
editor-input-method-macro
))
#+
clx
(
defun
windowed-unget-key-event
(
key-event
stream
)
(
defun
windowed-unget-key-event
(
key-event
stream
)
(
un-event
key-event
stream
))
(
un-event
key-event
stream
))
#+
clx
(
defun
windowed-clear-input
(
stream
)
(
defun
windowed-clear-input
(
stream
)
(
loop
(
unless
(
system:serve-event
0
)
(
return
)))
(
loop
(
unless
(
system:serve-event
0
)
(
return
)))
(
without-interrupts
(
without-interrupts
...
@@ -255,6 +258,7 @@
...
@@ -255,6 +258,7 @@
*free-input-events*
next
)
*free-input-events*
next
)
(
setf
(
editor-input-tail
stream
)
head
)))))
(
setf
(
editor-input-tail
stream
)
head
)))))
#+
clx
(
defun
windowed-listen
(
stream
)
(
defun
windowed-listen
(
stream
)
(
loop
(
unless
(
system:serve-event
0
)
(
loop
(
unless
(
system:serve-event
0
)
;; If nothing is pending, check the queued input.
;; If nothing is pending, check the queued input.
...
@@ -263,7 +267,7 @@
...
@@ -263,7 +267,7 @@
;; Don't service anymore events if we just got some input.
;; Don't service anymore events if we just got some input.
(
return
t
))))
(
return
t
))))
|#
;;;; Editor input from a tty.
;;;; Editor input from a tty.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment