Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CleanSerial
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mart Lubbers
CleanSerial
Commits
65f357c5
Commit
65f357c5
authored
Sep 25, 2018
by
Mart Lubbers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.science.ru.nl:mlubbers/CleanSerial
parents
641acfba
16e7ae6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
TTY.dcl
TTY.dcl
+1
-0
iTasksTTY.icl
iTasksTTY.icl
+0
-2
No files found.
TTY.dcl
View file @
65f357c5
...
...
@@ -93,6 +93,7 @@ TTYread :: !*TTY -> (!Int, !*TTY)
* @result new tty handle
*/
TTYreadline
::
!*
TTY
->
(!
String
,
!*
TTY
)
<<<<<<<
HEAD
/**
* Checks if the TTY device is available for reading
...
...
iTasksTTY.icl
View file @
65f357c5
...
...
@@ -105,14 +105,12 @@ where
getResource
=
iworldResource
(\
t
=:(
TTYd
p
_)->(
p
==
opts
.
devicePath
,
t
))
exc
=
ExceptionResult
o
exception
import
StdMisc
,
StdDebug
readWhileAvailable
::
!*
TTY
->
(
MaybeError
String
[
Char
],
!*
TTY
)
readWhileAvailable
tty
#
(
available
,
error
,
tty
)
=
TTYavailable
tty
|
error
=
(
Error
"TTY device disconnected"
,
tty
)
|
not
available
=
(
Ok
[],
tty
)
#
(
c
,
tty
)
=
TTYread
tty
|
not
(
trace_tn
(
"Read: "
+++
toString
c
))
=
undef
#
(
merr
,
tty
)
=
readWhileAvailable
tty
|
isError
merr
=
(
merr
,
tty
)
=
(
Ok
[
toChar
c
:
fromOk
merr
],
tty
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment