Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
gforth
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
Bernd Paysan
gforth
Commits
3a8d70a6
Verified
Commit
3a8d70a6
authored
Mar 30, 2020
by
Bernd Paysan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Status Line
parent
8f78c629
Pipeline
#1246
passed with stage
in 10 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
kernel/input.fs
kernel/input.fs
+2
-0
kernel/int.fs
kernel/int.fs
+1
-1
status-line.fs
status-line.fs
+18
-9
No files found.
kernel/input.fs
View file @
3a8d70a6
...
...
@@ -32,6 +32,7 @@
:
.
scanning
(
--
)
.
" scanning for [THEN]"
cr
;
Defer
.
unstatus
'
noop
is
.
unstatus
:
noname
(
in
1
--
)
1
<>
-
12
and
throw
>
in
!
;
\
restore
-
input
...
...
@@ -41,6 +42,7 @@
[
has
?
file
[
IF
]
]
stdin
file
-
eof
?
IF
false
EXIT
THEN
[
[
THEN
]
]
scanning
?
IF
[
'
]
.
scanning
warning
-
color
color
-
execute
THEN
tib
max
#
tib
@
accept
#
tib
!
.
unstatus
input
-
start
-
line
true
1
loadline
+!
;
\
refill
:
noname
(
--
addr
u
)
tib
#
tib
@
;
\
source
...
...
kernel/int.fs
View file @
3a8d70a6
...
...
@@ -944,7 +944,7 @@ Defer 'cold ( -- ) \ gforth tick-cold
has
?
os
[
IF
]
:
bye
(
--
)
\
tools
-
ext
[
has
?
file
[
IF
]
]
script
?
0
=
IF
cr
THEN
script
?
0
=
IF
.
unstatus
cr
THEN
[
[
ELSE
]
]
cr
[
[
THEN
]
]
...
...
status-line.fs
View file @
3a8d70a6
...
...
@@ -19,14 +19,23 @@
\
along
with
this
program
.
If
not
,
see
http
://
www
.
gnu
.
org
/
licenses
/.
blue
>
bg
white
>
fg
or
bold
or
Value
status
-
attr
:
redraw
-
status
(
addr
u
--
)
.
\
"
\
e7"
0
rows
2
-
at
-
xy
cols
2
*
spaces
.
\
"
\
e[A
\n
"
status
-
attr
attr
!
type
default
-
color
attr
!
.
\
"
\
e8"
;
:
.
unstatus
-
line
(
--
)
.
\
"
\
e7"
0
rows
1
-
at
-
xy
cols
spaces
.
\
"
\
e8"
;
:
.
status
-
line
(
--
)
{
|
w
^
status
$
}
base
@
[:
.
" gforth 😷 | "
unused
u
.
.
" free | order: "
order
[:
.
" gforth 😷 | "
unused
1024
/
0
u
.
r
.
"
k
free | order: "
order
.
" | base="
.
.
" | "
depth
0
=
IF
.
"
∅"
ELSE
...
THEN
;]
[:
.
" gforth 😷 | "
unused
u
.
.
"
f
|o "
order
[:
.
" gforth 😷 | "
unused
1024
/
0
u
.
r
.
"
k free
|o "
order
.
" |b="
0
.
r
.
" | "
depth
0
=
IF
.
"
∅"
ELSE
...
THEN
;]
cols
100
>
select
...
...
@@ -42,10 +51,10 @@ blue >bg white >fg or bold or Value status-attr
r
>
I
-
+
LOOP
drop
THEN
THEN
.
\"
\
n
\
n
\
e
[
2
A
\
e7
"
0 rows 2 - at-xy cols spaces cr
status-attr attr! status$ $. default-color attr!
.
\"
\
e8"
.
\"
\
n
\
n
\
e
[
2
A
" status$ $@ redraw-status
status$ $free ;
'
.
status
-
line
is
.
status
: +status ['] .status-line is .status ['] .unstatus-line is .unstatus ;
: -status ['] noop is .status ['] noop is .unstatus ;
+status
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