Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
clean-and-itasks
clean-platform
Commits
bb132681
Verified
Commit
bb132681
authored
Mar 20, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy editing System.Terminal.VT100
parent
ec1e59b2
Pipeline
#10185
passed with stage
in 1 minute and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/libraries/OS-Independent/System/Terminal/VT100.icl
src/libraries/OS-Independent/System/Terminal/VT100.icl
+1
-3
tests/linux64/test.icl
tests/linux64/test.icl
+1
-0
No files found.
src/libraries/OS-Independent/System/Terminal/VT100.icl
View file @
bb132681
implementation
module
System
.
Terminal
.
VT100
import
_SystemArray
from
StdFunc
import
o
,
flip
from
Data
.
Func
import
$
from
Text
import
class
Text
(
split
,
join
,
concat
),
instance
Text
String
...
...
@@ -44,15 +45,12 @@ instance zero VT100Settings where
]
}
import
_SystemArray
::
Cell
:==
(
Map
String
String
,
Char
)
::
*
Screen
:==
*{*{
Cell
}}
vt100render
::
VT100Settings
->
(
String
->
HtmlTag
)
vt100render
s
=
TtTag
[]
o
render
o
(\
c
->
rvt
{
createArray
(
s
.
cols
+1
)
('
DM
'.
newMap
,
' '
)\\_<-[
0
..
s
.
rows
+1
]}
0
0
'
DM
'.
newMap
c
)
o
fromString
where
//Thanks to camil
shift
::
!*{*{
Cell
}}
->
*{*{
Cell
}}
shift
arr
=
loop
(
s
.
rows
-1
)
arr
$
createArray
(
s
.
cols
+1
)
('
DM
'.
newMap
,
' '
)
where
...
...
tests/linux64/test.icl
View file @
bb132681
...
...
@@ -123,6 +123,7 @@ import qualified System.OS
import
qualified
System
.
OSError
import
qualified
System
.
Platform
import
qualified
System
.
Process
import
qualified
System
.
Terminal
.
VT100
import
qualified
System
.
TTS
import
qualified
System
.
Time
import
qualified
System
.
_FilePath
...
...
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