Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
a5f1d74c
Commit
a5f1d74c
authored
7 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Use the new xbin_lib usage.
parent
1f7c0177
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
exec/xbimage.js
+5
-5
5 additions, 5 deletions
exec/xbimage.js
with
5 additions
and
5 deletions
exec/xbimage.js
+
5
−
5
View file @
a5f1d74c
...
...
@@ -77,7 +77,7 @@ function show(filename, xpos, ypos, fg_color, bg_color, delay, cycle, cleanup)
return
false
;
}
var
image
=
image_lib
.
read
(
file
);
var
image
=
image_lib
.
xbin
.
read
(
file
);
file
.
close
();
if
(
!
image
)
return
false
;
...
...
@@ -85,9 +85,9 @@ function show(filename, xpos, ypos, fg_color, bg_color, delay, cycle, cleanup)
// print(lfexpand(JSON.stringify(image, null, 4)));
// console.getkey();
var
result
=
cterm
.
xbi
mage
_draw
(
image
,
xpos
,
ypos
,
fg_color
,
bg_color
,
delay
,
cycle
);
var
result
=
cterm
.
xbi
n
_draw
(
image
,
xpos
,
ypos
,
fg_color
,
bg_color
,
delay
,
cycle
);
if
(
cleanup
)
cterm
.
xbi
mage
_cleanup
(
image
);
cterm
.
xbi
n
_cleanup
(
image
);
if
(
typeof
result
==
'
string
'
)
alert
(
result
);
...
...
@@ -136,7 +136,7 @@ function demo(filename, delay)
if
(
console
.
aborted
)
break
;
}
cterm
.
xbi
mage
_cleanup
();
cterm
.
xbi
n
_cleanup
();
if
(
global
.
name
)
{
print
(
"
\
1n
\
1hDemonstration concluded:
\
1y
"
+
global
.
name
);
console
.
inkey
(
0
,
delay
);
...
...
@@ -152,7 +152,7 @@ function info(filename, verbose)
}
printf
(
format
(
"
%-64s :
"
,
file
.
name
));
var
image
=
image_lib
.
read
(
file
);
var
image
=
image_lib
.
xbin
.
read
(
file
);
file
.
close
();
printf
(
"
%4u x %-4u Flags(%x) Fonts(%u) Char(%u)
\r\n
"
,
image
.
width
,
image
.
height
,
image
.
flags
,
image
.
font
.
length
,
image
.
charheight
);
...
...
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